Install openclaw.ai on Windows 10/11

Beginner ⏱ 20 minutes 📅 Updated Aug 2026

This guide will walk you through installing openclaw.ai on Windows 10 or Windows 11. No prior experience required — just follow the steps and you'll have openclaw.ai running in about 20 minutes.

💡

Pro Tip

If you prefer using Linux tools on Windows, check out our WSL2 installation guide for the best of both worlds!

📋 Prerequisites Checklist

Make sure you have the following before starting:

1

Install Node.js

openclaw.ai requires Node.js 22.22.3+, 24.15+, or 25.9+; Node 26 is recommended. The official OpenClaw installer can install Node automatically, or you can install it manually:

powershell
# Download and install Node.js from nodejs.org
# Or install via winget:
winget install OpenJS.NodeJS.LTS

Verify installation:

powershell
node --version
npm --version
✅ Expected Output
v26.x.x
11.x.x or newer
2

Open PowerShell

Open Windows PowerShell as Administrator:

  1. Press Win + X
  2. Select Terminal (Admin) or Windows PowerShell (Admin)
  3. Click Yes on the UAC prompt
💡

Tip

You can also search for "PowerShell" in the Start menu and right-click → Run as Administrator.

3

Install openclaw.ai

Install openclaw.ai using the official install script:

powershell
iwr -useb https://openclaw.ai/install.ps1 | iex

Or install via npm:

powershell
npm install -g openclaw@latest
4

Run Onboarding

Start the onboarding wizard to configure your agent:

powershell
openclaw onboard --install-daemon

Follow the prompts to set your agent name, choose an LLM provider, and connect messaging channels.

5

Configure API Keys

Set up your LLM provider API keys. You can use cloud providers or local LLMs:

powershell
# Set environment variable for your chosen provider
$env:OPENAI_API_KEY = "sk-your-key-here"

# Or for Anthropic
$env:ANTHROPIC_API_KEY = "sk-ant-your-key-here"
💡

Local LLMs

Want to run fully offline? Use Ollama or LM Studio instead of cloud APIs.

6

Verify Installation

Verify everything is working:

powershell
openclaw --version
✅ Expected Output
openclaw 2026.7.1-2 or newer

Check the installed Gateway service and open the Control UI:

powershell
openclaw gateway status
openclaw dashboard
🎉

Congratulations!

openclaw.ai is now running on your Windows machine!

🔧 Troubleshooting

❌ "npm install" is very slow ▼

Cause: Slow internet or firewall blocking connections.

Solutions:

  • Try a different npm registry mirror: npm install -g openclaw --registry https://registry.npmmirror.com
  • Temporarily disable Windows Defender or antivirus
  • Disconnect from VPN
  • Check your internet connection
❌ "Running scripts is disabled on this system" ▼

Cause: PowerShell script execution policy is restricted.

Solution: Run this command in PowerShell:

powershell
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

Then try running the install command again.

❌ "openclaw: command not found" ▼

Cause: Node.js global bin not in PATH or openclaw wasn't installed.

Solution:

  1. Check your PATH environment variable
  2. Restart your terminal
  3. Reinstall: npm install -g openclaw@latest

🚀 Next Steps

Now that you have openclaw.ai installed, here's what you can do next:

❓ FAQ

How do I update openclaw.ai? ▼

Run: npm install -g openclaw@latest

Can I use openclaw.ai with WSL? ▼

Yes! Check out our WSL2 installation guide for Linux-native performance on Windows.

How do I uninstall openclaw.ai? ▼

Run npm uninstall -g openclaw to remove the package. You can also delete the ~/.openclaw configuration folder to remove everything.

Does openclaw.ai work with Windows Sandbox? ▼

Yes, you can install openclaw.ai in Windows Sandbox for testing. Just follow the same steps as regular Windows installation.

What's the difference between PowerShell and Command Prompt? ▼

PowerShell is more powerful and is Microsoft's recommended shell. This tutorial uses PowerShell, but most commands also work in Command Prompt.