OpenClaw Installation Guide
OpenClaw supports multiple installation methods. Choose the one that best fits your needs.
Requirements
- Node.js: 22.x or higher
- Operating System: macOS, Linux, Windows (via WSL2)
- Optional: Tailscale (for remote access)
Quick Install
macOS / Linux
The easiest way is using the install script:
curl -fsSL https://openclaw.ai/install.sh | bash
Or using npm/pnpm:
npm install -g openclaw@latest
# or
pnpm add -g openclaw@latest
Windows (PowerShell)
iwr -useb https://openclaw.ai/install.ps1 | iex
Initial Setup
After installation, run the onboarding wizard:
openclaw onboard --install-daemon
The wizard will guide you through:
- Auth configuration: Set up API keys or OAuth
- Gateway settings: Configure gateway port and service
- Channel connection: Connect messaging platforms
- Skills installation: Select and install needed skills
Install as System Service
Use --install-daemon to install OpenClaw as a background service:
openclaw onboard --install-daemon
This creates a user-level service (launchd or systemd) that ensures OpenClaw always runs.
Run Gateway Manually
If you prefer not to install as a service:
openclaw gateway --port 18789 --verbose
Docker Installation
If you prefer Docker, refer to the official Docker deployment documentation.
Build from Source
If you want to contribute or customize OpenClaw:
git clone https://github.com/openclaw/openclaw.git
cd openclaw
pnpm install
pnpm ui:build
pnpm build
pnpm openclaw onboard --install-daemon
Note: pnpm is used for builds. TypeScript can run directly via tsx.
Verify Installation
After installation, you can:
Check Gateway status:
openclaw gateway statusOpen Control UI:
openclaw dashboardOr visit
http://127.0.0.1:18789/in your browserSend a test message (requires channel setup):
openclaw message send --target +15555550123 --message "Hello from OpenClaw"
Update OpenClaw
OpenClaw has three release channels:
- stable: Official releases (recommended)
- beta: Pre-release versions
- dev: Development builds
Switch channels:
openclaw update --channel stable|beta|dev
After updating, run:
openclaw doctor
Common Commands
| Command | Description |
|---|---|
openclaw onboard | Run initial setup wizard |
openclaw gateway start | Start Gateway |
openclaw gateway status | Check Gateway status |
openclaw dashboard | Open Control UI |
openclaw agent --message "..." | Send message to assistant |
openclaw message send --to xxx --message "xxx" | Send a message |
openclaw doctor | Diagnose and fix issues |
openclaw update | Update OpenClaw |
Environment Variables
For custom configuration locations:
OPENCLAW_HOME: Sets the home directoryOPENCLAW_STATE_DIR: Overrides state directoryOPENCLAW_CONFIG_PATH: Overrides config file path
Troubleshooting
Installation fails?
- Ensure Node.js version >= 22
- Check network connection
- Run
openclaw doctorfor diagnosis
How to uninstall?
- Stop the Gateway service
- Remove the installation directory
- Clean up config files
