DeploymentVPS Quickstart

VPS Quickstart

Deploy ClawNex to a VPS (Ubuntu 22.04/24.04 LTS or Debian 12+) using the automated installer.

Prerequisites

  • Ubuntu 22.04/24.04 LTS or Debian 12+
  • Root or sudo access
  • OpenClaw installed on the VPS (~/.openclaw/ with openclaw.json)
  • Internet access for package installation

Deployment

Create the deployment package (on your local machine)

cd ~/sentinel
bash deploy/package.sh

Transfer to VPS

scp ~/sentinel/deploy/clawnex-v0.6.1-deploy.tar.gz user@your-vps:~/

SSH in and extract

ssh user@your-vps
tar -xzf clawnex-v0.6.1-deploy.tar.gz
cd clawnex-v0.6.1-deploy

Run the installer

bash install-vps.sh

What the Installer Does

StepAction
1Detect OS (Ubuntu/Debian version and architecture)
2Install system packages (Node.js 20, Python 3.12, build-essential, git)
3Detect OpenClaw (~/.openclaw/, ~/.config/openclaw/, $OPENCLAW_HOME)
4Install ClawNex to ~/sentinel/, archive existing DB if upgrading
5Install dependencies (npm install + pip install litellm==1.83.0)
6Generate .env with detected paths and settings
7Production build (npx next build)
8Create systemd services (clawnex.service + clawnex-litellm.service)
9Open firewall (port 5001 via UFW)
10Optional CVE sync (108 CVEs from GitHub)

Post-Deployment

Access the dashboard at http://YOUR_VPS_IP:5001 and work through the Setup Wizard.

Service Management

sudo systemctl status clawnex
sudo systemctl restart clawnex
sudo journalctl -u clawnex -f
 
sudo systemctl status clawnex-litellm
sudo journalctl -u clawnex-litellm -f

Ports

PortServiceBindingPurpose
5001Dashboard0.0.0.0 (public)ClawNex web interface
4001LiteLLM127.0.0.1 (localhost)AI model proxy with shield scanning
⚠️

Port 4001 is localhost-only. Port 5001 is public — consider adding a reverse proxy (nginx) with HTTPS for production use.

Upgrading

# Local machine: create new package
cd ~/sentinel && bash deploy/package.sh
 
# Transfer and install on VPS
scp ~/sentinel/deploy/clawnex-v0.6.1-deploy.tar.gz user@your-vps:~/
ssh user@your-vps
tar -xzf clawnex-v0.6.1-deploy.tar.gz
cd clawnex-v0.6.1-deploy && bash install-vps.sh

The installer detects the existing installation, archives the database, and upgrades in place. Configuration and data are preserved.

Troubleshooting

IssueSolution
Dashboard won’t startsudo journalctl -u clawnex -f
Port 5001 in usesudo lsof -ti :5001 then sudo kill <PID>
LiteLLM shows OFFLINEClick Restart in the Infrastructure panel
Build failscd ~/sentinel && rm -rf .next && npx next build