Updated August 20, 2026
📑Table of Contents
The current OpenClaw installer documentation supports Node.js 22.22.3+, 24.15+, or 25.9+. Fresh macOS/Linux installs may provision Node 26. Windows also has an official PowerShell installer (`install.ps1`), so choose the path that matches your OS and release. Use the official installer documentation as the source of truth.
With over 310,000 GitHub stars, OpenClaw is one of the most popular open-source AI assistants. Installing it on Mac or Linux takes just a single command.
This guide covers installation steps for macOS, Linux, and Windows, plus Docker and VPS deployment options. For security reasons, we strongly recommend running OpenClaw in a dedicated environment rather than on your everyday machine.
System Requirements (2026)
| Requirement | Details |
|---|---|
| Node.js | Node 24 (recommended), Node 23.11+, or Node 22.19+ (LTS) |
| Package Manager | npm / pnpm / bun (any) |
| Supported OS | macOS / Linux / Windows (via WSL2) |
Platform Compatibility
| OS | Support | Rating | Notes |
|---|---|---|---|
| macOS | Full | ★★★ Best | Native app, TCC permissions, Voice Wake |
| Linux | Full | ★★★ Recommended | Ideal for Docker/K8s isolated deployments |
| Windows | Native (公式PowerShellインストーラー) / WSL2 also supported | ★★☆ Supported | 公式PowerShellインストーラー (no-admin native app) added in 2026, making setup much easier |
Installing on macOS / Linux (Recommended)
Method 1: Installer Script (Easiest)
🏆 Recommended — One command, fully automated
The installer handles Node.js detection, installation, and onboarding setup in a single step.
curl -fsSL https://openclaw.ai/install.sh | bash
The interactive onboarding wizard starts automatically, guiding you through Gateway, workspace, channel, and skill configuration. The daemon is registered via launchd on macOS or systemd on Linux.
Method 2: Install via npm / pnpm / bun
If you already have Node.js installed, you can use your preferred package manager.
npm:
npm install -g openclaw@latest
openclaw onboard --install-daemon
pnpm:
pnpm add -g openclaw@latest
pnpm approve-builds -g
openclaw onboard --install-daemon
bun:
bun add -g openclaw@latest
openclaw onboard --install-daemon
⚠️ Sharp Build Errors
If you encounter Sharp build errors due to a system-installed libvips, set this environment variable:
SHARP_IGNORE_GLOBAL_LIBVIPS=1 npm install -g openclaw@latest
Method 3: Build from Source (For Developers)
For customization or contributing to the project, build from source.
git clone https://github.com/openclaw/openclaw.git
cd openclaw
pnpm install
pnpm ui:build
pnpm build
pnpm link --global
After building, pnpm link --global makes the openclaw command available system-wide.
Installing on Windows
🆕 2026 update — native support arrives
OpenClaw used to require WSL2 since it didn’t run natively on Windows. In 2026, the team shipped 公式PowerShellインストーラー, an official native WinUI app that installs without administrator privileges. You now have three installation options depending on your workflow.
Option A: 公式PowerShellインストーラー (recommended, GUI)
A native app for Windows 10 20H2+ and Windows 11. Download the signed x64 or ARM64 installer from the OpenClaw GitHub releases page. It includes a system tray icon, a native chat window, and Command Center diagnostics, and it automatically provisions its own WSL Gateway on first launch (your existing Ubuntu distro, if any, is left untouched).
Option B: PowerShell CLI installer (for terminal-first users)
iwr -useb https://openclaw.ai/install.ps1 | iex
Verify the install with:
openclaw --version
openclaw doctor
openclaw gateway status --json
Option C: WSL2 Gateway (best Linux compatibility, server use cases)
If you need the most Linux-compatible runtime, or want to run OpenClaw as a headless always-on service, WSL2 is still a solid option. The security boundary between WSL2 and the host Windows system is somewhat ambiguous, so if security isolation matters most, also consider a dedicated VPS or Docker deployment.
curl -fsSL https://openclaw.ai/install.sh | bash
Docker Installation
🛡️ Security-First — Isolated container deployment
Docker provides complete isolation from the host OS, making it a recommended choice for security-conscious deployments. See our OpenClaw security guide for detailed configuration.
- Official Docker docs: docs.openclaw.ai/install/docker
- Podman (rootless containers) is also supported
- Kubernetes deployment is available for production environments
VPS Deployment
🌐 Recommended — Fully separated from your PC
A VPS (Virtual Private Server) provides a completely separate environment from your personal computer. With 24/7 uptime, it’s ideal for running the OpenClaw Gateway around the clock.
- The official docs recommend using a clean Ubuntu LTS installation with the installer script, rather than third-party marketplace images
- Installation is the same as Linux:
curl -fsSL https://openclaw.ai/install.sh | bash - Affordable plans start from just a few dollars per month
Post-Installation Setup
Verify Your Installation
After installation, verify everything is configured correctly with these commands:
# Detect configuration issues
openclaw doctor
# Check Gateway status
openclaw gateway status
# Launch the browser interface
openclaw dashboard
Basic Usage
# Start the Gateway
openclaw gateway --port 18789 --verbose
# Chat with the agent
openclaw agent --message "Hello" --thinking high
# Send a message
openclaw message send --to +1234567890 --message "Hello from OpenClaw"
Environment Variables (Optional)
Customize paths using environment variables as needed.
| Variable | Purpose |
|---|---|
OPENCLAW_HOME |
Internal directory paths |
OPENCLAW_STATE_DIR |
Mutable state storage location |
OPENCLAW_CONFIG_PATH |
Configuration file location |
Updating OpenClaw
# Update to stable release
openclaw update --channel stable
# Switch to beta
openclaw update --channel beta
# Switch to dev
openclaw update --channel dev
OpenClaw releases security patches frequently. Regular updates are strongly recommended to stay protected.
FAQ — Installing OpenClaw
Conclusion
One command on macOS / Linux — that’s all it takes
For security, run OpenClaw in a dedicated environment (dedicated Mac, VPS, or Docker).
On Windows, you can now install natively via 公式PowerShellインストーラー (added in 2026) or through WSL2.
After installation, run openclaw doctor to verify your setup.
For detailed security configuration, check out our companion guide:
👉 Is OpenClaw Dangerous? A Complete Guide to Safe Setup and Operation
Official documentation: https://docs.openclaw.ai/install
Author
krona23
Over 20 years in the IT industry, serving as Division Head and CTO at multiple companies running large-scale web services in Japan. Experienced across Windows, iOS, Android, and web development. Currently focused on AI-native transformation. At DevGENT, sharing practical guides on AI code editors, automation tools, and LLMs in three languages.
📚 Related Articles
🔥 Most Popular
- Claude Desktop Won't Install? Windows & Mac Fixes That Worked (2026)
- Claude Pricing: Free, Pro, Max & Team Plans Compared (August 2026)
- Claude Cowork Automation — 5 Real Use Cases (2026)
- AI Code Editor Comparison 2026: 6 Tools Tested, Why I Use Zed + Claude Code
- Cursor Pricing 2026: Plans & Real Costs After 3 Years of Pro





![Harden Claude Code CLI: 9 Proven Steps for Business Use [2026]](https://i0.wp.com/devgent.org/wp-content/uploads/2026/03/claude-code-security-eyecatch.webp?fit=300%2C167&ssl=1)




Leave a Reply