OpenClaw Windows Installation Guide (WSL2)

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.

System Requirements

Installation Steps

1. Enable WSL2

2. Install Node.js

3. Run OpenClaw Installation Script

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.

4. Install Gateway Service

To ensure OpenClaw runs 24/7 as a background service, run:

openclaw onboard --install-daemon

5. Configure Integrations

Common Issues and Solutions

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.

Cloud Deployment

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.