Here’s the clean, correct, Hostcarts‑friendly way to install OpenClaw on your VPS.
I’ll give you the exact commands, the required environment, and the recommended production setup — all aligned with the latest OpenClaw installation guides.
(OpenClaw requires Node.js 22+, Git, and a Linux VPS — Hostcarts VPS is perfect.)
sudo apt update && sudo apt upgrade -y
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
sudo apt install -y nodejs
Verify:
node -v
Should show v22.x.x
sudo apt install -y git
According to the latest OpenClaw VPS installation guides vpswala.org:
curl -fsSL https://raw.githubusercontent.com/openclawhq/openclaw/main/install.sh | bash
This script will:
/opt/openclawcd /opt/openclaw
npm install
npm run start
You can now access the dashboard at:
http://YOUR_SERVER_IP:18789
This ensures OpenClaw stays online 24/7 — essential for WhatsApp/Telegram bots.
Create service file:
sudo nano /etc/systemd/system/openclaw.service
Paste:
[Unit]
Description=OpenClaw Gateway
After=network.target
[Service]
Type=simple
User=root
WorkingDirectory=/opt/openclaw
ExecStart=/usr/bin/npm run start
Restart=always
[Install]
WantedBy=multi-user.target
Enable + start:
sudo systemctl daemon-reload
sudo systemctl enable openclaw
sudo systemctl start openclaw
Check status:
systemctl status openclaw
From the official guide vpswala.org:
sudo ufw allow 22
sudo ufw allow 18789
sudo ufw enable
OpenClaw dashboard → Channels → choose WhatsApp or Telegram.
The official guide confirms both are supported vpswala.org.
OpenClaw supports:
Dashboard → Models → Add API key.
cd /opt/openclaw
git pull
npm install
systemctl restart openclaw