Skip to content

Install OpenClaw on WSL

This guide walks you through installing Ubuntu 24.04 via WSL2 on Windows and deploying OpenClaw inside it. Perfect if you want to run OpenClaw on your Windows machine with a full Linux environment.

  • OS: Windows 10 2004+ or Windows 11
  • Memory: 8 GB or more recommended (WSL2 consumes a share of it)
  • CPU: Virtualization enabled (VT-x / SVM in BIOS)

Step 1: Enable WSL2 and install Ubuntu 24.04

Section titled “Step 1: Enable WSL2 and install Ubuntu 24.04”

Open PowerShell or Windows Terminal as Administrator and run:

Terminal window
wsl --install -d Ubuntu-24.04

The first run enables WSL2 and downloads Ubuntu 24.04. Reboot when it finishes.

After reboot, Ubuntu starts automatically — set up your username and password.

To verify the WSL version, run in PowerShell:

Terminal window
wsl --status

Default Version: 2 means WSL2 is ready.

Inside the Ubuntu terminal:

Terminal window
sudo apt update && sudo apt upgrade -y

The official installer detects your OS, provisions the required Node runtime, and installs OpenClaw:

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

Re-login (or run source ~/.bashrc) and verify:

Terminal window
openclaw --version

Skip the onboarding wizard with: curl -fsSL https://openclaw.ai/install.sh | bash -s -- --no-onboard

Run the setup wizard — pick your model provider and paste your API key:

Terminal window
openclaw onboard --install-daemon

--install-daemon registers the Gateway as a systemd service with auto-start on boot. Modern WSL2 enables systemd by default.

Check the status:

Terminal window
openclaw status

WSL2 forwards localhost ports to Windows automatically, so open in your browser:

http://localhost:18789

Force it in PowerShell:

Terminal window
wsl --set-default-version 2

Run source ~/.bashrc or re-login. Still missing? Check Node:

Terminal window
node -v

Run openclaw uninstall inside WSL, or remove the whole distro from PowerShell:

Terminal window
wsl --unregister Ubuntu-24.04