Install OpenClaw on macOS or Linux

getting started

// what it does

The install script downloads the openclaw CLI and its bundled agent runtime; on Windows run the PowerShell one-liner instead. If you already run Node 24.15+ (22 LTS 22.22.3+ or 25.9+ also work), npm install -g openclaw@latest is equivalent and keeps upgrades under your package manager. Either way the binary is openclaw and everything it creates lives under ~/.openclaw.

// shell

$ curl -fsSL https://openclaw.ai/install.sh | bash
$ npm install -g openclaw@latest

// gotcha

OpenClaw needs Node 24.15+ (or 22.22.3+/25.9+); older Node fails at startup. On Windows it runs under WSL2, not native PowerShell beyond the installer itself.

// resources