OpenClaw Installation: Environment Checks and Verification

Check official Node.js and package-manager requirements, choose an installation method, onboard, and verify the OpenClaw Gateway.

3 minute read

OpenClaw runs a Gateway on your own device and connects it to messaging channels and model services. This guide follows the official CLI workflow: check the environment, choose an installation method, run onboarding, and verify the result.

Check the environment first

The official requirements list Node.js 22.22.3+, 24.15+, or 25.9+, with Node 26 recommended. Windows options include the native Windows Hub, PowerShell CLI, and WSL2; this article focuses on the CLI.

Record your actual versions before choosing a command:

1
2
node --version
npm --version

Model authentication depends on the provider. Complete it locally through the onboarding flow and keep credentials out of screenshots, shared links, and issue reports. Installation, onboarding, and daemon setup change the local environment.

Option 1: a package manager

For npm 12 or npm 11.16+, the current official command explicitly permits OpenClaw’s own lifecycle scripts:

1
npm install -g openclaw@latest --allow-scripts=openclaw

npm 11.15 and earlier do not support that option:

1
npm install -g openclaw@latest

For pnpm, the current global installation command is:

1
pnpm add -g --allow-build=openclaw openclaw@latest

pnpm approve-builds -g is not the supported global installation flow. Because latest changes, use a reviewed explicit release number when reproducibility matters, and record Node.js, package-manager, and operating-system versions.

Option 2: the official installer

The installer may install or select Node.js, install OpenClaw, and start onboarding. Download and inspect it before execution; verify any publisher-provided checksums or signatures as well.

macOS / Linux / WSL2

1
2
3
4
5
installer_path="$(mktemp)"
curl -fL https://openclaw.ai/install.sh -o "$installer_path"
less "$installer_path"
# Run only after reviewing the script
bash "$installer_path"

Windows PowerShell

1
2
3
4
5
$installerPath = Join-Path $env:TEMP 'openclaw-install.ps1'
Invoke-WebRequest -Uri 'https://openclaw.ai/install.ps1' -OutFile $installerPath
Get-Content -LiteralPath $installerPath
# Run only after reviewing the script
& $installerPath

This guide uses the official OpenClaw distribution. Third-party forks and mirrors can differ in package names, configuration, and versions; follow their own installation documentation. For source builds, follow the matching pnpm requirements on the official installation page.

Onboarding and verification

If the installer has not already completed onboarding:

1
openclaw onboard --install-daemon

This configures model access, the Gateway, and background startup. Check the CLI and service separately:

1
2
3
4
openclaw --version
openclaw doctor
openclaw gateway status
openclaw dashboard

doctor is a diagnostic entry point; some releases may offer configuration migrations or repairs. Read the output before accepting changes. A version number does not prove that the Gateway is running, and opening the Dashboard does not prove a successful model request.

Common failures and next steps

  • openclaw is not found: reopen the terminal, inspect npm prefix -g and command resolution, and confirm that you are using the Node environment that installed it.
  • Lifecycle scripts are blocked: check the package-manager version and the matching approval option above instead of approving unrelated packages.
  • The Gateway is unavailable: inspect service and connection details in openclaw gateway status before following the official troubleshooting guidance.

The next article explains the three browser connection modes. Use the JSON tool for ordinary JSON examples; full JSON5 configurations still require OpenClaw’s own diagnostics.

Official references

Licensed under CC BY-NC-SA 4.0
Last updated on Sep 07, 2026 00:00 +0800
äēē間ぎå‘ŊがこんãĒãĢįŸ­ã„ã“ã¨ã¯ã€ãšãŖã¨å‰ã‹ã‚‰įŸĨãŖãĻいたぎãĢ、ãĒãœã‚‚ãŖã¨åŊŧã‚’į†č§Ŗã—ã‚ˆã†ã¨ã—ãĒã‹ãŖãŸãŽã ã‚ã†
Built with Hugo
Theme Stack designed by Jimmy