Install OpenClaw on
Mac & Windows
Deploy a self-hosted AI agent on your machine in minutes. Choose your OS, follow the steps, and you'll have an always-on digital operator running locally.
Before You Begin
OpenClaw needs a few things in place on your Mac. The installer handles most automatically.
Apple Silicon Mac
M1, M2, M3, or M4. Intel Macs have limited support.
RequiredmacOS Up to Date
System Settings → General → Software Update.
RequiredAPI Key
From a supported LLM provider (e.g., Anthropic).
RequiredXcode CLI Tools
Needed for Node.js and dependencies. Step 1 below.
Auto-installedWSL2 gives you a full Linux environment on Windows — the most stable way to run OpenClaw.
Windows 10/11
Fully updated via Settings → Windows Update.
RequiredWSL2 + Ubuntu
We'll install it in Step 1 if you don't have it.
RecommendedAPI Key
From a supported LLM provider (e.g., Anthropic).
RequiredGit
Installed automatically via apt inside WSL.
Auto-installedThe native PowerShell path works but is less tested. Proceed if you prefer to stay in Windows natively.
Windows 10/11
Fully updated via Settings → Windows Update.
RequiredGit for Windows
Install via Chocolatey or direct download.
RequiredAPI Key
From a supported LLM provider (e.g., Anthropic).
RequiredBuild Tools
C++ toolchain for native npm modules. Step 2 below.
Step 2Deploy OpenClaw
Three steps: Xcode CLI tools, optional Homebrew, and the one-liner.
Install Xcode Command Line Tools
Open Terminal and run:
xcode-select --install
Click Install in the dialog and wait for it to finish.
Install Homebrew (if needed)
Check with brew --version. If not installed:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Run the OpenClaw Installer
One command — downloads the CLI, installs Node.js if needed, and launches onboarding.
curl -fsSL https://openclaw.ai/install.sh | bash
Install WSL2, enable systemd, get Node.js, then run the one-liner inside Ubuntu.
Install WSL2
Open PowerShell as Administrator:
wsl --install
Restart your computer. After reboot, Ubuntu opens — create a username and password.
wsl --list --verbose. If VERSION shows 1, upgrade: wsl --set-version Ubuntu 2.Enable systemd
Inside your WSL Ubuntu terminal:
sudo tee /etc/wsl.conf >/dev/null <<'EOF' [boot] systemd=true EOF
Then in PowerShell: wsl --shutdown and reopen Ubuntu.
Install Node.js 22+
sudo apt update curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash - sudo apt-get install -y nodejs # Verify node -v # Should show v22.x.x+
Run the OpenClaw Installer
curl -fsSL https://openclaw.ai/install.sh | bash
Install dependencies, then run the PowerShell one-liner.
Install Git & Node.js
Via Chocolatey or direct downloads.
# Install Chocolatey (if needed) Set-ExecutionPolicy Bypass -Scope Process -Force [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072 iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) # Install Git and Node.js choco install git nodejs --version=22.0.0 -y
Close and reopen PowerShell so PATH updates take effect.
Install Build Tools
npm install -g windows-build-tools
Run the OpenClaw Installer
iwr -useb https://openclaw.ai/install.ps1 | iex
Onboarding Wizard
After the installer finishes, the wizard guides you through setup. These prompts are the same on every platform.
Security Acknowledgment
Select "I understand this is powerful and inherently risky".
Choose Local vs. Remote
Select "This Mac" or "QuickStart" for a local-only Gateway.
Select Your LLM
Choose your AI model and paste your API key when prompted (e.g., from console.anthropic.com).
Gateway Settings
Accept defaults. Default port is 18989.
Channel Setup (Optional)
Connect WhatsApp, Telegram, Discord, Slack, or iMessage (macOS only). Or skip and use the browser Control UI.
Install the Daemon
Select Yes so OpenClaw auto-starts on boot.
openclaw onboard --install-daemon
Confirm It's Running
Three quick commands to validate your deployment.
# Check for config issues openclaw doctor # Confirm gateway is running openclaw status # Open browser Control UI openclaw dashboard
Dashboard opens at http://127.0.0.1:18789/. If it prompts for auth:
openclaw config get gateway.token✅ Verification Checklist
openclaw doctor — no critical errorsopenclaw status — Gateway runningCommon Issues
Mac-specific problems and fixes.
WSL-specific problems and fixes.
Native Windows problems and fixes.
You're Operational
OpenClaw is live. Here's where to go from here.
Connect Channels
Link WhatsApp, Telegram, Discord, Slack, or iMessage (macOS) to chat from anywhere.
Install Skills
Extend capabilities — file management, browsing, code execution. Vet plugins carefully.
Companion Apps
macOS menu bar app or Windows Terminal for a better CLI experience.
Read the Docs
Multi-agent routing, workspace isolation, Docker, and advanced config.
# Health check openclaw doctor # Gateway status openclaw status # Open Control UI openclaw dashboard # Update npm update -g openclaw # Connect channels openclaw channels login # Restart gateway openclaw gateway restart # View config cat ~/.openclaw/openclaw.json # Follow logs openclaw logs --follow