Pre: Minimum Requirements
- VPS with Ubuntu 22.04 or 24.04
- Minimum 2 vCPU and 4 GB RAM
- Minimum 20 GB disk space
- A domain name (optional, but recommended)
To install and configure OpenClaw and N8N on your VPS, follow these steps:
Step 1 – Update the system Connect to your VPS via SSH and run:
apt update && apt upgrade -y
Step 2 – Install Docker
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
Verify that Docker is working:
docker --version
Also install Docker Compose:
apt install docker-compose-plugin -y
docker compose version
Step 3 – Install OpenClaw Create a directory for OpenClaw
mkdir -p /opt/openclaw && cd /opt/openclaw
Create the docker-compose.yml file:
nano docker-compose.yml
Add the following content:
version: '3.8'
services:
openclaw:
image: openclaw/openclaw:latest
container_name: openclaw
restart: always
ports:
- "3000:3000"
volumes:
- openclaw_data:/app/data
environment:
- NODE_ENV=production
volumes:
openclaw_data:
Save the file (Ctrl+O, Enter, Ctrl+X) and start the container:
docker compose up -d
Verify it is running:
docker ps
OpenClaw is now accessible at http://YOUR_VPS_IP:3000.
