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
Global Installation (Recommended)
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
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
~/.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
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 adocker-compose.yml file:
Building from Dockerfile
The Dockerfile in the repository supports custom builds:Docker Configuration
Mount your configuration file:Configuration
After installation, configure OpenClaw:Using the Wizard
- AI model selection (Anthropic or OpenAI)
- Gateway configuration
- Channel setup (WhatsApp, Telegram, etc.)
- Security settings
Manual Configuration
Edit~/.openclaw/openclaw.json:
Updating OpenClaw
Global Installation
Source Installation
After Updating
Run diagnostics and migrations:Troubleshooting
Command not found: openclaw
Command not found: openclaw
The OpenClaw binary is not in your PATH.For npm global installs, ensure For pnpm, add the pnpm global bin directory:
npm prefix -g is in your PATH:Permission denied errors
Permission denied errors
Don’t use sudo with global npm install. Fix permissions:Then reinstall OpenClaw:
Node version too old
Node version too old
OpenClaw requires Node.js ≥ 22.12.0. Install via nvm:
pnpm build fails
pnpm build fails
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

