Skip to main content

Installation

OpenClaw can be installed globally via npm, built from source, or run with Docker. This guide covers all installation methods and platform-specific notes.

System Requirements

Runtime

Node.js ≥ 22.12.0 (LTS recommended)

Package Manager

npm, pnpm, or bun

Operating System

macOS, Linux, or Windows (WSL2)

AI Provider

Anthropic or OpenAI subscription
Windows users must use WSL2 (Windows Subsystem for Linux). Native Windows support is not available.
Install OpenClaw globally for easy access from anywhere:

Verify Installation

Platform-Specific Setup

macOS

On macOS, OpenClaw can run as a menu bar app or as a daemon service.
1

Install OpenClaw

2

Install the daemon

This creates a launchd service that starts automatically on login.
3

Optional: Install macOS app

Download the macOS app from the releases page for menu bar control, Voice Wake, and Canvas support.
The macOS app requires signed builds for TCC permissions (camera, microphone, screen recording) to persist across updates.

Linux

Linux installation uses systemd for the daemon service.
1

Install Node.js 22+

Using nvm:
Or using your package manager:
2

Install OpenClaw

3

Install systemd service

This creates a systemd user service at ~/.config/systemd/user/openclaw-gateway.service.
4

Manage the service

Windows (WSL2)

Windows users must use WSL2. Native Windows is not supported.
1

Install WSL2

Open PowerShell as Administrator and run:
Restart your computer when prompted.
2

Open Ubuntu terminal

Launch Ubuntu from the Start menu.
3

Install Node.js 22+

4

Install OpenClaw

WSL2 networking allows you to access the Gateway from Windows browsers at http://127.0.0.1:18789.

Installation from Source

For development or customization, build OpenClaw from source.
1

Clone the repository

2

Install dependencies

Source builds require pnpm. Bun can also be used for running TypeScript directly.
3

Build the UI and core

4

Run the onboarding wizard

5

Development mode

For auto-reload on code changes:

Build Commands

Docker Installation

Run OpenClaw in a Docker container for isolated deployment.

Using Docker Compose

Create a docker-compose.yml file:
Start the container:

Building from Dockerfile

The Dockerfile in the repository supports custom builds:
Docker containers bind to localhost by default. Use --bind lan to allow external connections, but ensure you set authentication tokens.

Docker Configuration

Mount your configuration file:
See the Docker guide for detailed configuration options.

Configuration

After installation, configure OpenClaw:

Using the Wizard

The wizard will guide you through:
  1. AI model selection (Anthropic or OpenAI)
  2. Gateway configuration
  3. Channel setup (WhatsApp, Telegram, etc.)
  4. Security settings

Manual Configuration

Edit ~/.openclaw/openclaw.json:
See the configuration guide for all options.

Updating OpenClaw

Global Installation

Source Installation

After Updating

Run diagnostics and migrations:
See the updating guide for detailed upgrade instructions.

Troubleshooting

The OpenClaw binary is not in your PATH.For npm global installs, ensure npm prefix -g is in your PATH:
For pnpm, add the pnpm global bin directory:
Don’t use sudo with global npm install. Fix permissions:
Then reinstall OpenClaw:
OpenClaw requires Node.js ≥ 22.12.0. Install via nvm:
Clear caches and reinstall:

Next Steps

Configure OpenClaw

Set up your AI model, channels, and security settings

Connect Channels

Add WhatsApp, Telegram, Discord, and more

Deploy to Production

Run OpenClaw on a VPS or cloud instance

Platform Apps

Install the macOS app or mobile nodes