OpenClaw Linux Deployment Guide

openclaw
linux
install
deploy
ai
automation
Complete Linux server installation steps and caveats for OpenClaw.

I. Prerequisites

1.1 Install Git

Update the system and install Git:

sudo apt update
sudo apt install git -y

1.2 Install Node.js (version ≥ 22)

Install NVM (Node Version Manager):

Mainland China servers (Gitee mirror):

curl -o- https://gitee.com/RubyMetric/nvm-cn/raw/main/install.sh | bash

Overseas servers (official source):

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash

Reload environment variables:

source ~/.bashrc

Install Node.js 22:

nvm install 22

Verify: run node -v. If it prints v22.x.x, you are good.

II. Install OpenClaw

Run the official one-line installer:

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

Notes:

III. Initialize configuration (Onboarding)

After installation, the onboarding wizard starts automatically. Choose:

IV. Verify service status

Check whether services are running:

clawdbot status

If you see “Gateway service: running” and “Node service: running”, services are up.

V. Access the Web UI

Create an SSH tunnel (run on your local machine):

ssh -N -L 18789:127.0.0.1:18789 username@server_ip

Enter the server password to connect.

Get the dashboard URL by running clawdbot dashboard on the server and copy the “Dashboard URL”.

Open the URL in your local browser to access OpenClaw Web UI. On first run you can set the assistant name and your name (e.g., “Name: Openclaw”, “My Name: Boss”).