How to install OpenClaw in minutes on a VPS

how to install openclaw on ububtu 24

Here is the high-efficiency, compact guide to deploying OpenClaw on a Speedhub.eu OpenVZ S Plan (2 CPU / 4GB RAM) for 8.41 Euro/month using coupon VPS15. Here are the steps, after you have installed Ubuntu 24:

1. User Setup (Run as Root)

Create a non-root environment to secure the AI agent’s permissions.

adduser clawuser && usermod -aG sudo clawuser && su - clawuser

2. Environment & Core Install (Run as clawuser)

Inject Node.js 22, system dependencies, and the OpenClaw gateway.

curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash - && \
sudo apt update && sudo apt install -y nodejs git socat curl && \
curl -fsSL https://openclaw.ai/install.sh | bash

Config: Choose QuickStart, bind to 127.0.0.1, and paste your LLM API Key.

3. Secure Bridge (Run on Local PC)

Tunnel the remote dashboard to your local browser via SSH.

ssh -L 18789:127.0.0.1:18789 clawuser@your_vps_ip

4. Access Credentials (Run on VPS)

Retrieve the unique gateway token for the web login.

openclaw gateway token

Dashboard URL: [http://127.0.0.1:18789](http://127.0.0.1:18789)


Operations commands

TaskCommand
Service Statussystemctl status openclaw
Restart Agentsudo systemctl restart openclaw
Live Logsjournalctl -u openclaw -f
Debug Toolopenclaw doctor

Would you like the command to automate this SSH tunnel so it runs as a background process on your local machine?