OpenClaw operations guide
Install OpenClaw on Windows with WSL2
To install OpenClaw on Windows with WSL2, install Ubuntu from PowerShell. Inside Ubuntu, enable systemd, run the Linux installer and choose Quick start. Let onboarding install the Gateway as a background service, then open the dashboard and send a message to check for a model reply.
Last updated · Published
By CWYN · Nov 26, 2026 · Checked against docs, not run · WSL2 setup in the OpenClaw Windows guide and OpenClaw first-run guide
1. Install Ubuntu from PowerShell
In PowerShell, run wsl --list --verbose. If Ubuntu already shows version 2, open it and continue to step 2. For a new installation, run wsl --install -d Ubuntu-24.04 in an administrator PowerShell window. Follow the Windows prompts, open Ubuntu and finish setting up your Linux user. The OpenClaw Windows guide covers this manual WSL2 setup.
2. Enable systemd in Ubuntu
Inside Ubuntu, open /etc/wsl.conf with an editor that can save system files. Set systemd=true under [boot]. If the file already has a boot section, add or update the setting there and keep the other settings. Save your work in WSL, run wsl --shutdown from PowerShell, then reopen Ubuntu.
3. Run the Linux installer inside Ubuntu
Run the Linux installer in the Ubuntu terminal. It opens onboarding. Choose Quick start and follow the provider sign-in prompts if needed. When asked whether to keep OpenClaw running in the background, choose Yes to install the Gateway as a systemd user service.
curl -fsSL https://openclaw.ai/install.sh | bash
4. Check the Gateway and send a test message
In Ubuntu, run openclaw gateway status and check that the Gateway is reachable. Run openclaw dashboard to open the Control UI. If the browser does not open, follow the terminal’s instructions and keep the link private. Send a short message in the chat and look for a reply.
5. Troubleshooting the WSL2 install
Ubuntu cannot find OpenClaw. If npm installed the CLI, its executable directory may be missing from your Ubuntu shell’s PATH. Locate the npm launcher and check PATH in Ubuntu. See the official installation troubleshooting steps.
The Gateway only runs while the terminal is open. If Quick start left the Gateway running there, press Ctrl+C to stop it. Run openclaw gateway install in Ubuntu, then openclaw gateway start and check the status again. If the status names a Windows Scheduled Task, inspect the native Windows Gateway task. The first-run guide explains both service types.
The dashboard asks for pairing. Match the pending Gateway request to your browser, then return to the chat.