OpenClaw Setup on Ubuntu#
This guide covers the simplest supported way to install OpenClaw on Ubuntu.
Recommended Ubuntu versions#
- Ubuntu 22.04 LTS
A clean Ubuntu LTS install is preferred.
Requirements#
- Internet access
- A user account with
sudoaccess curlinstalled
OpenClaw requires Node 24 (recommended) or Node 22.14+, but the installer handles Node automatically.
Option 1: Recommended installer script#
Run:
curl -fsSL https://openclaw.ai/install.sh | bashWhat this does:
- Detects your OS
- Installs Node if needed
- Installs OpenClaw
- Launches onboarding
If you want to install without starting onboarding immediately:
curl -fsSL https://openclaw.ai/install.sh | bash -s -- --no-onboardOption 2: Install with npm#
Use this if you already manage Node yourself.
1. Check Node#
node -v
npm -vIf Node is missing, install Node 24 first.
2. Install OpenClaw globally#
npm install -g openclaw@latest3. Run onboarding and install the daemon#
openclaw onboard --install-daemonVerify the install#
Run these commands:
openclaw --version
openclaw doctor
openclaw gateway statusExpected result:
openclaw --versionprints a versionopenclaw doctorhelps identify config issuesopenclaw gateway statusconfirms whether the Gateway is running
Linux service behavior#
On Ubuntu, openclaw onboard --install-daemon installs a systemd user service so OpenClaw can start more reliably in the background.
Useful command:
openclaw gateway statusIf openclaw is not found#
Check:
node -v
npm prefix -g
echo "$PATH"If the global npm bin directory is missing from your PATH, add this to ~/.bashrc or ~/.zshrc:
export PATH="$(npm prefix -g)/bin:$PATH"Then restart the terminal or run:
source ~/.bashrcTroubleshooting npm install issues#
If sharp fails during install because of a global libvips, try:
SHARP_IGNORE_GLOBAL_LIBVIPS=1 npm install -g openclaw@latestUseful next steps#
After installation, you may want to run:
openclaw help
openclaw status
openclaw configureOfficial references#
- Install docs: https://docs.openclaw.ai/install
- CLI docs: https://docs.openclaw.ai/cli