Ubuntu and Linux guide · Independent guidance

Install OpenClaw on Ubuntu or Linux

The official shell installer is the shortest Ubuntu/Linux path. Verify the CLI and doctor report first, then install the managed Gateway as a systemd user service. On a remote server, keep the Gateway bound and authenticated according to the official network model.

Current snapshotUpdated 2026-08-24Official docs main snapshot · OpenClaw 2026.8.1
01

Install without a root-owned home

  1. 1

    Install as the intended service user

    Avoid creating config and workspace files as root unless root is the long-term owner.

    curl -fsSL https://openclaw.ai/install.sh | bash
  2. 2

    Inspect version and config

    Confirm supported Node/CLI and read-only health.

    node -v
    openclaw --version
    openclaw doctor
  3. 3

    Install the user service

    Run as the account that should own state and workspaces.

    openclaw gateway install
    openclaw gateway status --json
02

Headless-server boundaries

  • Enable user lingering only when the Gateway must survive logout.
  • Do not publish an unauthenticated Gateway port to the internet.
  • Back up state, workspace, auth profile data, and secret-provider material together.
  • Use `openclaw gateway status --require-rpc` when monitoring must prove more than a listening process.

Primary sources

Verify against the owner.

Content snapshot follows official docs main at the recorded commit; the current package metadata reported 2026.8.1 when verified. Your installed release and live CLI schema remain authoritative.