Caricamento in corso...
Caricamento in corso...
Last synced: Today, 22:00
Technical reference for the OpenClaw framework. Real-time synchronization with the official documentation engine.
Use this file to discover all available pages before exploring further.
OpenClaw supports both native Windows and WSL2. WSL2 is the more stable path and recommended for the full experience — the CLI, Gateway, and tooling run inside Linux with full compatibility. Native Windows works for core CLI and Gateway use, with some caveats noted below.
Native Windows companion apps are planned.
Native Windows CLI flows are improving, but WSL2 is still the recommended path.
What works well on native Windows today:
install.ps1openclaw --versionopenclaw doctoropenclaw plugins list --jsonpowershellopenclaw agent --local --agent main --thinking low -m "Reply with exactly WINDOWS-HATCH-OK."
Current caveats:
openclaw onboard --non-interactive--skip-healthopenclaw onboard --non-interactive --install-daemonopenclaw gateway installschtasksIf you want the native CLI only, without gateway service install, use one of these:
powershellopenclaw onboard --non-interactive --skip-health openclaw gateway run
If you do want managed startup on native Windows:
powershellopenclaw gateway install openclaw gateway status --json
If Scheduled Task creation is blocked, the fallback service mode still auto-starts after login through the current user's Startup folder.
Inside WSL2:
textopenclaw onboard --install-daemon
Or:
textopenclaw gateway install
Or:
textopenclaw configure
Select Gateway service when prompted.
Repair/migrate:
textopenclaw doctor
For headless setups, ensure the full boot chain runs even when no one logs into Windows.
Inside WSL:
bashsudo loginctl enable-linger "$(whoami)"
Inside WSL:
bashopenclaw gateway install
In PowerShell as Administrator:
powershellschtasks /create /tn "WSL Boot" /tr "wsl.exe -d Ubuntu --exec /bin/true" /sc onstart /ru SYSTEM
Replace
Ubuntupowershellwsl --list --verbose
After a reboot (before Windows sign-in), check from WSL:
bashsystemctl --user is-enabled openclaw-gateway.service systemctl --user status openclaw-gateway.service --no-pager
WSL has its own virtual network. If another machine needs to reach a service running inside WSL (SSH, a local TTS server, or the Gateway), you must forward a Windows port to the current WSL IP. The WSL IP changes after restarts, so you may need to refresh the forwarding rule.
Example (PowerShell as Administrator):
powershell$Distro = "Ubuntu-24.04" $ListenPort = 2222 $TargetPort = 22 $WslIp = (wsl -d $Distro -- hostname -I).Trim().Split(" ")[0] if (-not $WslIp) { throw "WSL IP not found." } netsh interface portproxy add v4tov4 listenaddress=0.0.0.0 listenport=$ListenPort ` connectaddress=$WslIp connectport=$TargetPort
Allow the port through Windows Firewall (one-time):
powershellNew-NetFirewallRule -DisplayName "WSL SSH $ListenPort" -Direction Inbound ` -Protocol TCP -LocalPort $ListenPort -Action Allow
Refresh the portproxy after WSL restarts:
powershellnetsh interface portproxy delete v4tov4 listenport=$ListenPort listenaddress=0.0.0.0 | Out-Null netsh interface portproxy add v4tov4 listenport=$ListenPort listenaddress=0.0.0.0 ` connectaddress=$WslIp connectport=$TargetPort | Out-Null
Notes:
ssh user@windows-host -p 2222127.0.0.1openclaw status --alllistenaddress=0.0.0.0127.0.0.1Open PowerShell (Admin):
powershellwsl --install # Or pick a distro explicitly: wsl --list --online wsl --install -d Ubuntu-24.04
Reboot if Windows asks.
In your WSL terminal:
bashsudo tee /etc/wsl.conf >/dev/null <<'EOF' [boot] systemd=true EOF
Then from PowerShell:
powershellwsl --shutdown
Re-open Ubuntu, then verify:
bashsystemctl --user status
For a normal first-time setup inside WSL, follow the Linux Getting Started flow:
bashgit clone https://github.com/openclaw/openclaw.git cd openclaw pnpm install pnpm build pnpm ui:build pnpm openclaw onboard --install-daemon
If you are developing from source instead of doing first-time onboarding, use the source dev loop from Setup:
bashpnpm install # First run only (or after resetting local OpenClaw config/workspace) pnpm openclaw setup pnpm gateway:watch
Full guide: Getting Started
We do not have a Windows companion app yet. Contributions are welcome if you want contributions to make it happen.
© 2024 TaskFlow Mirror
Powered by TaskFlow Sync Engine