OpenClaw on a VPS
24/7 uptime. Accessible from anywhere. No hardware to maintain. Hetzner from $4.49/month, DigitalOcean from $6/month.
Best VPS providers for OpenClaw
Best value by far. European company, excellent reliability, tiny latency. Best choice for budget-conscious users.
Easiest onboarding. Great documentation, $200 free credit for new users. Best if you're new to VPS.
Good global coverage. Comparable to DigitalOcean pricing and features.
Solid performance. Good for US-East users. Familiar interface for longtime Linux users.
Setup guide (Ubuntu 22.04)
Create a $4โ6/month Ubuntu 22.04 LTS server. Generate an SSH key pair and add your public key during setup.
ssh root@YOUR_SERVER_IP
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash - sudo apt install -y nodejs
sudo npm install -g openclaw pm2
openclaw init
pm2 start 'openclaw gateway start' --name openclaw pm2 startup pm2 save
sudo ufw allow ssh sudo ufw enable
VPS FAQ
What's the best VPS for OpenClaw?
Hetzner CX22 at $4.49/month is the community favourite โ 2 vCPUs, 4GB RAM, excellent performance, European data protection. DigitalOcean is the easiest to get started with and offers $200 free credit for new users. Both run OpenClaw perfectly.
How much RAM does OpenClaw need on a VPS?
1GB is the minimum. OpenClaw itself uses ~100โ200MB. A 1GB VPS works but is tight. 2โ4GB is comfortable, especially if you install other tools or run multiple skills concurrently. Hetzner's CX22 at $4.49/month gives you 4GB โ plenty of headroom.
VPS vs Raspberry Pi โ which is better for OpenClaw?
VPS wins on reliability (no home power cuts, no ISP outages affecting it), accessibility (fixed public IP, accessible from anywhere), and zero hardware maintenance. Raspberry Pi wins on zero monthly cost after hardware and full local control. For most users who want reliable 24/7 operation, VPS is simpler.
Is my data safe on a VPS?
Your data sits on the VPS provider's hardware, not your own machine. Use environment variables for API keys (never hardcode them in config files). Enable UFW firewall. Use SSH key authentication, not passwords. Consider encrypting sensitive data at rest. VPS is safe when configured properly.
Can I run OpenClaw on a $4/month VPS?
Yes, Hetzner's CX11 (1vCPU, 2GB RAM) at $3.49/month or CX22 at $4.49/month both run OpenClaw without issues. The AI computation happens at Anthropic/OpenAI's servers, not yours โ your VPS just handles the Node.js process and messaging, which is very lightweight.
How do I keep OpenClaw running after I close the SSH connection?
Use PM2: npm install -g pm2, then pm2 start 'openclaw gateway start' --name openclaw, then pm2 startup && pm2 save. PM2 daemonizes the process, restarts it on crash, and persists across reboots. Check status anytime with pm2 status.