Next-Gen App & Browser Testing Cloud
Trusted by 2 Mn+ QAs & Devs to accelerate their release cycles

Learn how to install OpenClaw on macOS, Linux, and Windows . Step-by-step commands, prerequisites, onboarding setup, and security tips.

Prince Dewani
Author
March 23, 2026
OpenClaw is an open-source, self-hosted AI agent gateway that connects LLMs to your local system and messaging platforms. It runs as a persistent background service, letting you interact with AI agents through WhatsApp, Telegram, Discord, or a web dashboard. You can install OpenClaw on macOS, Linux, or Windows in under 10 minutes.
Overview
OpenClaw is an open-source, self-hosted AI agent gateway that connects large language models to your local system and messaging platforms like WhatsApp, Telegram, and Discord.
Step 1: Ensure Node.js 24 (recommended) or 22.16+ is installed.
Step 2: Run: curl -fsSL https://openclaw.ai/install.sh | bash
Step 3: Complete the onboarding wizard with your API key and model selection.
Step 4: Verify with openclaw --version and openclaw gateway status.
Step 1: Install WSL2 by running wsl --install in PowerShell as administrator.
Step 2: Enable systemd in WSL, then install Node.js 22.16+ inside Ubuntu.
Step 3: Run npm install -g openclaw@latest and then openclaw onboard --install-daemon.
Step 4: Access the dashboard at http://localhost:18789 from your Windows browser.
To install OpenClaw on macOS or Linux, run the one-line installer script that detects your OS, installs Node.js if needed, sets up the CLI, and launches the onboarding wizard automatically.
Step 1: Open Terminal and run the official installer script.
curl -fsSL https://openclaw.ai/install.sh | bashThis script detects your OS, installs Node.js if missing, installs the OpenClaw CLI globally via npm, and launches the onboarding wizard.
Step 2: Complete the onboarding wizard.
The wizard walks you through these configuration steps:
Step 3: The installer registers OpenClaw as a background daemon automatically.
On macOS, it uses launchd. On Linux, it uses systemd. [1] The agent survives reboots and stays always-on. If you ran the installer without onboarding, you can set up the daemon separately:
openclaw onboard --install-daemonStep 4: Verify the installation.
openclaw --version
openclaw doctor
openclaw gateway statusAll three commands should return valid output. Open the web dashboard with:
openclaw dashboardThis opens your browser to the Control UI at http://localhost:18789.
If you already manage Node.js yourself and prefer manual control:
npm install -g openclaw@latest
openclaw onboard --install-daemonNote: Explore AI-native Software Testing. Try TestMu AI Now!
OpenClaw on Windows requires WSL2 (Windows Subsystem for Linux). WSL2 provides a full Linux environment where the CLI and gateway run with complete compatibility. Native Windows support is limited and still improving.
Step 1: Install WSL2 with Ubuntu.
Open PowerShell as Administrator and run:
wsl --installThis installs WSL2 with Ubuntu by default. Restart your computer when prompted. After reboot, Ubuntu opens automatically. Set your Linux username and password.
Step 2: Enable systemd (required for the gateway daemon).
Inside the Ubuntu terminal, enable systemd for the OpenClaw gateway service: [2]
sudo tee /etc/wsl.conf >/dev/null <<'EOF'
[boot]
systemd=true
EOFThen restart WSL from PowerShell:
wsl --shutdownReopen the Ubuntu terminal and verify systemd is running:
systemctl --user statusStep 3: Install OpenClaw inside WSL.
You can use the same one-line installer as macOS/Linux:
curl -fsSL https://openclaw.ai/install.sh | bashOr install manually via npm:
sudo apt update && sudo apt upgrade -y
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
sudo apt install -y nodejs
npm install -g openclaw@latest
openclaw onboard --install-daemonComplete the onboarding wizard with your API key, model selection, and channel setup.
Step 4: Verify and access the dashboard.
openclaw --version
openclaw gateway status
openclaw dashboardWSL2 automatically forwards ports. Open http://localhost:18789 in your Windows browser. If the browser shows "unauthorized," copy the tokenized URL printed in the terminal output.
OpenClaw also provides a PowerShell installer for native Windows. [2] This works for basic CLI and gateway use, but WSL2 remains the recommended path for full compatibility:
iwr -useb https://openclaw.ai/install.ps1 | iexAlways work inside /home/youruser/ in WSL, not /mnt/c/Users/. Windows-mounted directories are significantly slower and cause performance issues with the OpenClaw gateway.
OpenClaw has shell access and file permissions on your system. Treat it as a high-privilege gateway and configure security settings before connecting it to messaging platforms.
OpenClaw is a powerful tool with real system-level access. That means real security risks. Here is what to configure immediately after installation.
[1] OpenClaw Official Installation Documentation
[2] OpenClaw Windows (WSL2) Platform Documentation
[3] CVE-2026-25253: OpenClaw Auth Token Theft Leading to RCE (CVSS 8.8) - NVD, February 2026
[4] 135K OpenClaw AI Agents Exposed to Internet - Bitdefender / SecurityScorecard STRIKE (February 2026)
[5] ToxicSkills: 36% Prompt Injection in ClawHub Skills - Snyk Security Research (February 2026)
Author
Prince Dewani is a Community Contributor at TestMu AI specializing in AI agents, software testing, QA, and SEO. He is certified in Selenium, Cypress, Playwright, Appium, Automation Testing, and KaneAI, and presented academic research on AI agents at PBCON-01. At TestMu AI, he has also carried out extensive cross-browser research on the support of modern web technologies such as WebGPU, WebAssembly, WebXR, WebGL2 and other web technologies, validating their compatibility and feature parity across major browsers and rendering engines through rigorous hands-on testing. Prince has hands-on experience building AI agent workflows using Anthropic Claude, Google Antigravity, n8n, LangChain, and other agentic frameworks, and works regularly with MCP and A2A protocols. He shares his work with 5,500+ QA engineers, developers, DevOps experts, tech leaders, and AI agent practitioners on LinkedIn.
Did you find this page helpful?
More Related Blogs
TestMu AI forEnterprise
Get access to solutions built on Enterprise
grade security, privacy, & compliance