All guides
Installation5 min read

Install Guide: Linux

Step-by-step guide to setting up OpenClaw on Ubuntu/Debian Linux.

Installing OpenClaw on Linux

Ubuntu/Debian

Step 1: Install Node.js

curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -

sudo apt-get install -y nodejs

Step 2: Install OpenClaw

sudo npm install -g openclaw

Step 3: Install and Run a Build

mkdir my-agent && cd my-agent

openclaw install agentforge/personal-chef

echo "ANTHROPIC_API_KEY=sk-ant-your-key" > .env

openclaw start

Docker (All Distributions)

docker pull openclaw/openclaw:latest

docker run -e ANTHROPIC_API_KEY=sk-ant-your-key openclaw/openclaw

Running as a Service

To keep your agent running in the background:

Using systemd

sudo nano /etc/systemd/system/openclaw.service

Add the service configuration, then:

sudo systemctl enable openclaw

sudo systemctl start openclaw

bash
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash - sudo apt-get install -y nodejs
bash
sudo npm install -g openclaw
bash
mkdir my-agent && cd my-agent openclaw install agentforge/personal-chef echo "ANTHROPIC_API_KEY=sk-ant-your-key" > .env openclaw start
bash
docker pull openclaw/openclaw:latest docker run -e ANTHROPIC_API_KEY=sk-ant-your-key openclaw/openclaw
bash
# Using systemd sudo nano /etc/systemd/system/openclaw.service
bash
sudo systemctl enable openclaw sudo systemctl start openclaw