dl-openclaw.is
English
简体中文繁體中文EnglishРусскийفارسی

HomeDownloadCommand line

Command-line install

Installing OpenClaw from the command line: the curl install script for macOS, Linux and WSL2, install.ps1 for Windows PowerShell, npm, pnpm and bun commands when Node is already installed, and how to confirm it worked.

The one-line script

The recommended route is the install script: it detects your system, installs Node if missing, installs OpenClaw and starts onboarding.

macOS / Linux / WSL2
curl -fsSL https://openclaw.ai/install.sh | bash
Windows PowerShell
iwr -useb https://openclaw.ai/install.ps1 | iex

To 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 12 or 11.16 and later
npm install -g openclaw@latest --allow-scripts=openclaw
openclaw onboard --install-daemon

npm 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.

Text scrolling on a terminal screen: the command-line version has no GUI, the dashboard opens in a browser
Text scrolling on a terminal screen: the command-line version has no GUI, the dashboard opens in a browser Skylarstrickland, CC BY-SA 3.0

Node versions

NodeStatusMinimum
26Recommended26.1.0 (26.12.1 advised)
24Supported24.16.0 (24.22.1 advised)
27Development line27.0.0
25, and 22 or olderNot 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

Check the install
openclaw --version
openclaw status
openclaw doctor

status 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.

Also worth reading

Topics on this page: OpenClaw install command, OpenClaw npm install, install.sh OpenClaw