OpenClaw is an open-source AI agent platform that runs on Windows via WSL2 (Windows Subsystem for Linux) to ensure compatibility and consistency. For security, we recommend installing it in an isolated environment. This step-by-step guide is for Windows 10/11 users.
wsl --install (if WSL is not yet installed).wsl --install -d Ubuntu.sudo apt update && sudo apt upgrade.sudo apt install nodejs npm or use NVM for the latest version.Execute the following command in your WSL terminal:
curl -fsSL https://openclaw.ai/install.sh | bash
The script will automatically detect your system, install dependencies, and launch the onboarding wizard.
To ensure OpenClaw runs 24/7 as a background service, run:
openclaw onboard --install-daemon
| Issue | Description | Solution |
|---|---|---|
| WSL2 Failure | WSL2 fails to install or is not detected. | Enable Virtualization in BIOS. Run DISM commands to enable WSL and VirtualMachinePlatform features, then restart. |
| Script Errors | Permission denied or network issues during installation. | Run terminal as Administrator. Ensure curl is installed. Check firewall settings or
use a VPN if the network is throttled. |
| API Configuration | Keys fail to load or models won't start. | Verify keys on provider dashboards. Run openclaw test-model to check specific keys.
Check quotas (e.g., Google Antigravity). |
| Security Risks | Concerns about data leaks or prompt injection. | Highly Recommended: Install on a dedicated VM (like Azure) or isolated PC. Use read-only permissions and regularly update OpenClaw. |
| Gateway Issues | Service fails to start or crashes. | Check logs with openclaw logs. Ensure Node.js version compatibility. Restart WSL if
necessary. |
For even greater isolation, consider deploying on a Windows 11 VM in Azure. You can use the Azure CLI and deployment scripts to automate the entire process safely.