From Zero to AI Assistant in 5 Minutes
Choose your platform and follow along. You'll be chatting with your AI in no time.
Installing on macOS
The fastest way to get started. Requires Node.js 18+.
Install OpenClaw
npm install -g openclaw Run the Setup Wizard
This will walk you through API key configuration and basic settings.
openclaw init Start the Gateway
The gateway is OpenClaw's background service that handles all connections.
openclaw gateway start Say Hello!
openclaw chat "Hello! What can you do?" Installing on Windows
OpenClaw runs great on Windows via WSL2 (recommended) or native Node.js.
Set Up WSL2 (Recommended)
If you don't have WSL2 installed, open PowerShell as Admin and run:
wsl --install Restart your computer after installation.
Install Node.js in WSL
Open your WSL terminal (Ubuntu) and install Node.js:
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt install -y nodejs Install OpenClaw
npm install -g openclaw Initialize and Start
openclaw init
openclaw gateway start
openclaw chat "Hello!" Installing on Linux
Works on any distro with Node.js 18+. Perfect for servers!
Install Node.js (if needed)
"comment"># Ubuntu/Debian
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt install -y nodejs
"comment"># Arch
sudo pacman -S nodejs npm Install OpenClaw
npm install -g openclaw Initialize and Start
openclaw init
openclaw gateway start Test It
openclaw chat "Hello! What can you do?" Installing with Docker
Great for isolation and easy deployment. Works anywhere Docker runs.
Pull the Image
docker pull openclaw/openclaw:latest Run the Setup Wizard
docker run -it \
-v openclaw-config:/home/openclaw/.openclaw \
openclaw/openclaw:latest init Start the Gateway
docker run -d \
--name openclaw \
--restart unless-stopped \
-v openclaw-config:/home/openclaw/.openclaw \
openclaw/openclaw:latest gateway start Chat
docker exec -it openclaw openclaw chat "Hello!" Deploy to the Cloud
One-click deployments for always-on availability.
Get Your API Key
OpenClaw needs an API key from your preferred AI provider.
Troubleshooting
Common issues and how to fix them.
Command not found: openclaw
Make sure npm's global bin directory is in your PATH. Try:
npm config get prefix
Add the returned path + /bin to your shell's PATH variable.
Gateway won't start
Check if the port is already in use. The gateway runs on port 3000 by default.
lsof -i :3000 # macOS/Linux
netstat -ano | findstr :3000 # Windows
You can also try restarting: openclaw gateway restart
API key not working
Verify your API key is correctly set:
openclaw config show
Make sure there are no extra spaces. You can reset it with openclaw init.
WhatsApp QR code not appearing
The WhatsApp QR code is shown in the terminal. Make sure you run the command in a terminal that supports QR display. If issues persist, see the official WhatsApp docs.
Still stuck?
🎉 You're All Set!
Now that OpenClaw is running, here's what to do next: