The one-line script
The recommended route is the install script: it detects your system, installs Node if missing, installs OpenClaw and starts onboarding.
curl -fsSL https://openclaw.ai/install.sh | bashiwr -useb https://openclaw.ai/install.ps1 | iexTo install without starting onboarding on macOS and Linux, use bash -s -- --no-onboard. To try the beta, use bash -s -- --beta.
Node already installed
If you manage Node yourself, use a package manager directly. npm 12 blocks package install scripts by default, so allow them explicitly:
npm install -g openclaw@latest --allow-scripts=openclaw
openclaw onboard --install-daemonnpm 11.15 and earlier do not know this option; drop --allow-scripts=openclaw. With pnpm use pnpm add -g --allow-build=openclaw openclaw@latest; with bun use bun add -g --trust openclaw@latest.

Node versions
| Node | Status | Minimum |
|---|---|---|
| 26 | Recommended | 26.1.0 (26.12.1 advised) |
| 24 | Supported | 24.16.0 (24.22.1 advised) |
| 27 | Development line | 27.0.0 |
| 25, and 22 or older | Not supported | — |
The patch versions in brackets reject a set of certificate public keys leaked in October 2026; anything below them still runs but warns at startup. Paste the output of node -v into the Node version check to see whether yours is fine.
Confirm the install
openclaw --version
openclaw status
openclaw doctorstatus shows the health of the Gateway and the assistant, and doctor checks and fixes common configuration problems. If all is well, open http://127.0.0.1:18789/ in a browser for the dashboard.
Should I run the install script with sudo?
No. The script handles what it needs. If a command someone gave you adds sudo, find out why first.
Can I install with Docker?
Yes. The docs cover Docker and Docker Compose for people who want isolation. For most users the script is simpler.
What does a source install need?
pnpm, and a full build needs a Node heap of at least 4352 MiB, which a 4 GB machine cannot provide. This route is mainly for contributors.