Skip to content

OpenClaw on Windows — Complete Installation Guide for Windows 10/11

Setting up OpenClaw on Windows is straightforward — but there are a few Windows-specific quirks you should know about. I’ve tested both the native PowerShell method and the WSL2 approach, and I’ll walk you through both.

TL;DR: WSL2 is the only officially stable path. PowerShell works for quick testing but has limitations.


Before you start, make sure you have:

  • Windows 10 (version 1903+) or Windows 11
  • PowerShell 5.1 or later (pre-installed on modern Windows)
  • An API key from Anthropic, OpenAI, or Google — or use Ollama for free local models

The installer will handle Node.js for you if it’s not installed.


⚠️ Note: PowerShell native installation is untested by the official team and may have tool compatibility issues. For production use, prefer WSL2.

Open PowerShell as Administrator and run:

Terminal window
iwr -useb https://openclaw.ai/install.ps1 | iex
  1. ✅ Checks for Node.js 22+ (installs via winget/Chocolatey/Scoop if missing)
  2. ✅ Runs npm install -g openclaw@latest
  3. ✅ Launches the setup wizard

The PowerShell installer supports two methods:

Terminal window
# Default: npm install (recommended)
iwr -useb https://openclaw.ai/install.ps1 | iex
# Alternative: Install from GitHub source
iwr -useb https://openclaw.ai/install.ps1 | iex -InstallMethod git
# With custom directory for git install
iwr -useb https://openclaw.ai/install.ps1 | iex -InstallMethod git -GitDir "C:\openclaw"

Section titled “Method 2: WSL2 (Recommended for Heavy Use)”

If you’re planning to use OpenClaw heavily or want the most stable experience, WSL2 is the way to go. It gives you a full Linux environment inside Windows.

Open PowerShell as Administrator:

Terminal window
wsl --install

Restart your computer when prompted.

After restart, open Ubuntu and run:

Terminal window
# Enable systemd for OpenClaw gateway
sudo nano /etc/wsl.conf

Add these lines:

[boot]
systemd=true

Save (Ctrl+O, Enter, Ctrl+X), then restart WSL:

Terminal window
# In PowerShell
wsl --shutdown
wsl

After restart, Ubuntu will launch automatically. Create your username and password.

Inside your Ubuntu terminal:

Terminal window
curl -fsSL https://openclaw.ai/install.sh | bash

That’s it. You now have OpenClaw running in a proper Linux environment.


Once installed, the setup wizard starts automatically. You’ll configure:

ProviderNotes
Anthropic (Claude)Best overall, requires API key
OpenAIGreat for coding
Google GeminiFree tier available
Ollama100% free, runs locally

Choose how you’ll talk to OpenClaw:

  • WhatsApp, Telegram, Discord, or iMessage

When asked, choose to install the gateway as a daemon:

Terminal window
openclaw onboard --install-daemon

This keeps OpenClaw running in the background.


Terminal window
# Check version
openclaw --version
# Run diagnostics
openclaw doctor
# Open the dashboard
openclaw dashboard

Your npm global bin folder isn’t in PATH.

Fix:

Terminal window
# Find your npm prefix
npm config get prefix
# Add the result + \bin to your PATH
# Usually: %AppData%\npm

Then reopen PowerShell.

Git for Windows is required for source installs.

Fix:

  1. Download Git from git-scm.com/download/win
  2. Install with default settings
  3. Reopen PowerShell and retry

If you have an older Node.js:

Terminal window
# Using winget
winget install OpenJS.NodeJS.LTS
# Or Chocolatey
choco install nodejs-lts
# Or Scoop
scoop install nodejs-lts

Add an exclusion for the OpenClaw directory:

  1. Open Windows Security → Virus & threat protection
  2. Click “Manage settings” under Virus & threat protection settings
  3. Scroll to “Exclusions” → Add or remove exclusions
  4. Add folder: %AppData%\npm\node_modules\openclaw

Still stuck? Our AI Setup Assistant is trained on all OpenClaw documentation and can help troubleshoot your specific Windows issue in real-time.


PowerShell vs WSL2: Which Should You Choose?

Section titled “PowerShell vs WSL2: Which Should You Choose?”
AspectPowerShellWSL2
Setup time2 minutes10 minutes
StabilityGoodExcellent
Shell toolsLimitedFull Linux
UpdatesSimpleSimple
Best forQuick setupPower users

My recommendation: Start with PowerShell. If you run into issues or want more control, switch to WSL2.



Need help? Join the OpenClaw Discord or check the official docs.

OpenClaw

OpenClaw Expert

Still stuck?

If this page didn't answer your case, ask OpenClaw Expert for step-by-step guidance.