Complete guide to installing and using OpenClaw (formerly Clawdbot and Moltbot) on Windows
Recommended: OpenClaw runs best on Windows via WSL2 (Windows Subsystem for Linux). Native Windows support is also available, but WSL2 is strongly recommended for best compatibility and performance.
WSL2 provides the best experience on Windows:
If you don't have WSL2 installed:
wsl --install
Restart your computer when prompted.
Open WSL2 terminal and run:
curl -fsSL https://openclaw.ai/install.sh | bash
openclaw onboard --install-daemon
If you prefer native Windows (not recommended):
# Install Node.js first if needed
# Then install OpenClaw
npm install -g openclaw@latest
# Run onboarding
openclaw onboard
Note: Some features may have limited support on native Windows. WSL2 is strongly recommended.
Run OpenClaw as a Windows service:
In WSL2, use systemd (if available) or run manually:
# In WSL2
openclaw onboard --install-daemon
For native Windows, you can use NSSM (Non-Sucking Service Manager) or Task Scheduler:
If Gateway runs in WSL2, access it from Windows:
wsl hostname -Ihttp://<WSL2-IP>:18789Forward WSL2 port to Windows:
netsh interface portproxy add v4tov4 listenport=18789 listenaddress=0.0.0.0 connectport=18789 connectaddress=<WSL2-IP>
/mnt/c/\\wsl$\Use Windows Terminal for best WSL2 experience:
If WSL2 doesn't start:
wsl --updateIf you can't access Gateway from Windows:
wsl hostname -Iwsl openclaw statusIf performance is slow: