Native vs Docker

On a machine you actually use — your daily-driver Linux box or a workstation — I install OpenClaw natively, not in a container. The reason is friction: the agent's whole point is touching your real files, scripts, and browser. Put it in Docker and every one of those becomes a mount-and-permission puzzle. Docker makes sense on a fleet, covered in the Docker guide; here I'll do the direct install.

Install Node.js

OpenClaw needs Node 22.16 or newer, and the version apt ships is usually too old. On Ubuntu or Debian, pull the current one from NodeSource:

curl -fsSL https://deb.nodesource.com/setup_24.x | sudo -E bash -
sudo apt-get install -y nodejs
node -v

Confirm it prints v24.x before moving on. An old Node is the most common reason an install "works" but then misbehaves.

Install OpenClaw

Run the official installer and follow the onboarding. It'll ask for a model credential and a message channel, so have those ready.

# copy the current one-line install command from openclaw.ai/install

The installer changes between releases, so I won't paste a version here that might be stale. Grab the current command from the official install page, not a blog.

Run and verify

Start it and send yourself a test message through whatever channel you wired up. If it replies, you're done. If it starts but is silent, the two usual suspects are an old Node version and a half-configured channel (token set, enabled flag not).

openclaw

If this box is always on and you want the agent to survive reboots, add a systemd unit next — the native install makes that cleaner than the Docker path.