🖥️ VPS Deployment
OpenClaw on VPS
Run OpenClaw on a Linux VPS from $4/month. Full control, great price.
VPS Providers
Hetzner
$4.50/moContabo
$5.00/moDigitalOcean
$6.00/moVultr
$5.00/moOur pick: Hetzner for best value, Contabo for most RAM.
Minimum Requirements
Hardware
- • 1 vCPU (2+ recommended)
- • 2GB RAM (4GB recommended)
- • 20GB storage
- • Public IP address
Software
- • Ubuntu 22.04+ or Debian 12+
- • Node.js 20+
- • npm or yarn
Installation Guide
1
Create VPS & SSH In
Spin up your server and connect
Create a VPS with Ubuntu 22.04 at your chosen provider, then SSH in:
ssh root@your-server-ip2
Update & Install Dependencies
Get the system ready
# Update system
sudo apt update && sudo apt upgrade -y
# Install Node.js 20
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt install -y nodejs
# Verify
node --version # Should be 20+
npm --version3
Create Non-Root User
Security best practice
# Create user
adduser openclaw
usermod -aG sudo openclaw
# Switch to new user
su - openclaw4
Install OpenClaw
Download and set up
# Install OpenClaw
npm install -g openclaw
# Run setup wizard
openclaw setupEnter your API key and configure channels when prompted.
5
Set Up systemd Service
Auto-start on boot
# Create service file
sudo tee /etc/systemd/system/openclaw.service << 'EOF'
[Unit]
Description=OpenClaw AI Assistant
After=network.target
[Service]
Type=simple
User=openclaw
WorkingDirectory=/home/openclaw
ExecStart=/usr/bin/openclaw start
Restart=always
RestartSec=10
Environment=NODE_ENV=production
[Install]
WantedBy=multi-user.target
EOF
# Enable and start
sudo systemctl daemon-reload
sudo systemctl enable openclaw
sudo systemctl start openclaw
# Check status
sudo systemctl status openclaw6
Configure Firewall
Secure your server
# Allow SSH
sudo ufw allow ssh
# Allow OpenClaw web UI (optional)
# sudo ufw allow 3000
# Enable firewall
sudo ufw enable
# Check status
sudo ufw statusUseful Commands
# View logs
sudo journalctl -u openclaw -f
# Restart service
sudo systemctl restart openclaw
# Stop service
sudo systemctl stop openclaw
# Check OpenClaw status
openclaw status
# Update OpenClaw
npm update -g openclaw
sudo systemctl restart openclawSecurity Checklist
Use SSH keys instead of passwords
ssh-keygen && ssh-copy-idDisable root login
Edit /etc/ssh/sshd_configEnable automatic security updates
apt install unattended-upgradesSet up fail2ban
apt install fail2banKeep API keys in environment variables
Never commit to gitVPS vs Mac Mini Hosting
| Linux VPS | Mac Mini Cloud | |
|---|---|---|
| Price | $4-6/mo | $21/mo |
| Setup | 20+ min | 10 min |
| Native macOS | No | Yes |
| Browser integration | Limited | Full |
| Best for | Budget-conscious | Best experience |
Want the Best OpenClaw Experience?
Mac Mini cloud gives you native macOS with full browser integration. Use code OPENCLAW15 for 15% off.