Running OpenClaw on your laptop is fine for testing, but for a reliable 24/7 AI assistant, you need a server. This guide compares your hosting options and helps you choose the right one.
Option 1: Self-Hosting on a VPS
The DIY approach. Rent a virtual server and set everything up yourself.
Popular VPS Providers
- Hetzner Cloud — best price/performance ratio, from $4.50/mo for 2 vCPU, 4 GB RAM
- DigitalOcean — simple interface, from $6/mo
- Linode (Akamai) — reliable, from $5/mo
- AWS Lightsail — if you're already in the AWS ecosystem, from $5/mo
What You Need to Configure
Self-hosting means you're responsible for:
- Server provisioning and OS setup (Ubuntu 24.04 recommended)
- Node.js installation and version management
- Firewall rules (ufw) and fail2ban for security
- SSL certificates for any web interfaces
- Process management (systemd service or PM2)
- Backups and disaster recovery
- Monitoring and alerting
- Updates and security patches
Expect to spend 2-4 hours on initial setup and ~30 minutes per week on maintenance.
Self-Hosting Setup (Quick Version)
# On your VPS (Ubuntu 24.04)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash
source ~/.bashrc
nvm install 22
npm install -g openclaw
openclaw init
# Create systemd service for auto-start
sudo nano /etc/systemd/system/openclaw.service
# [Service]
# ExecStart=/home/user/.nvm/versions/node/v22/bin/openclaw start
# Restart=always
sudo systemctl enable openclaw
sudo systemctl start openclaw
Option 2: Docker Deployment
Docker simplifies deployment but adds its own complexity:
# docker-compose.yml
version: "3.8"
services:
openclaw:
image: openclaw/openclaw:latest
restart: always
volumes:
- ./config:/app/config
- ./data:/app/data
env_file: .env
Pros: reproducible environment, easy updates. Cons: Docker knowledge required, debugging is harder, resource overhead.
Option 3: Managed Hosting with Clawby
The zero-maintenance option. Clawby deploys OpenClaw on a dedicated Hetzner VPS — not a shared container — with everything pre-configured:
- Server provisioned and hardened automatically
- Firewall, fail2ban, non-root execution configured from day one
- Automatic OpenClaw updates (or version pinning)
- Daily backups with one-click restore
- Monitoring dashboard — CPU, RAM, disk, uptime
- API key rotation from the dashboard
You get the same Hetzner hardware as self-hosting, but without any of the operational overhead. Setup takes under 5 minutes.
Cost Comparison
| Self-Hosting | Clawby Starter | Clawby Pro | |
|---|---|---|---|
| Server cost | ~$5-10/mo | $19/mo | $39/mo |
| Setup time | 2-4 hours | 5 minutes | 5 minutes |
| Maintenance | ~30 min/week | Zero | Zero |
| Specs | 2 vCPU, 4 GB | 2 vCPU, 4 GB | 4 vCPU, 8 GB |
| Backups | Manual | Daily, automatic | Daily, automatic |
| Security | Your responsibility | Hardened | Hardened |
Recommendation
If you're technical and enjoy server management, self-hosting is a great option. If you'd rather spend your time using the AI agent instead of maintaining it, Clawby is the way to go.