Install
Install
Section titled “Install”Recommended: installer script
Section titled “Recommended: installer script”The fastest way to install. It detects your OS, installs Node if needed, installs OpenClaw, and launches onboarding.
curl -fsSL https://openclaw.ai/install.sh | bashiwr -useb https://openclaw.ai/install.ps1 | iexTo install without running onboarding:
curl -fsSL https://openclaw.ai/install.sh | bash -s -- --no-onboard& ([scriptblock]::Create((iwr -useb https://openclaw.ai/install.ps1))) -NoOnboardFor all flags and CI/automation options, see Installer internals.
System requirements
Section titled “System requirements”- Node 24 (recommended) or Node 22.14+ — the installer script handles this automatically
- macOS, Linux, or Windows — both native Windows and WSL2 are supported; WSL2 is more stable. See Windows.
pnpmis only needed if you build from source
Alternative install methods
Section titled “Alternative install methods”npm or pnpm
Section titled “npm or pnpm”If you already manage Node yourself:
npm install -g openclaw@latestopenclaw onboard --install-daemonpnpm add -g openclaw@latestpnpm approve-builds -gopenclaw onboard --install-daemonTroubleshooting: sharp build errors (npm)
If sharp fails due to a globally installed libvips:
SHARP_IGNORE_GLOBAL_LIBVIPS=1 npm install -g openclaw@latestFrom source
Section titled “From source”For contributors or anyone who wants to run from a local checkout:
git clone https://github.com/openclaw/openclaw.gitcd openclawpnpm install && pnpm ui:build && pnpm buildpnpm link --globalopenclaw onboard --install-daemonOr skip the link and use pnpm openclaw ... from inside the repo. See Setup for full development workflows.
Install from GitHub main
Section titled “Install from GitHub main”npm install -g github:openclaw/openclaw#mainContainers and package managers
Section titled “Containers and package managers”Containerized or headless deployments.
Rootless container alternative to Docker.
Declarative install via Nix flake.
Automated fleet provisioning.
CLI-only usage via the Bun runtime.
Verify the install
Section titled “Verify the install”openclaw --version # confirm the CLI is availableopenclaw doctor # check for config issuesopenclaw gateway status # verify the Gateway is runningHosting and deployment
Section titled “Hosting and deployment”Deploy OpenClaw on a cloud server or VPS:
Any Linux VPS
Shared Docker steps
K8s
Fly.io
Hetzner
Google Cloud
Azure
Railway
Render
Northflank
Update, migrate, or uninstall
Section titled “Update, migrate, or uninstall”Keep OpenClaw up to date.
Move to a new machine.
Remove OpenClaw completely.
Troubleshooting: openclaw not found
Section titled “Troubleshooting: openclaw not found”If the install succeeded but openclaw is not found in your terminal:
node -v # Node installed?npm prefix -g # Where are global packages?echo "$PATH" # Is the global bin dir in PATH?If $(npm prefix -g)/bin is not in your $PATH, add it to your shell startup file (~/.zshrc or ~/.bashrc):
export PATH="$(npm prefix -g)/bin:$PATH"Then open a new terminal. See Node setup for more details.