OpenClaw on a VPS
Run OpenClaw on a virtual private server — provider comparison and setup
Run OpenClaw on a virtual private server — provider comparison and setup
Running OpenClaw on a VPS gives you 24/7 availability without keeping a home machine on. The good news: OpenClaw is lightweight on the server side. The AI computation happens on your LLM provider (OpenAI, Anthropic, Ollama cloud, etc.), so your VPS mainly runs Node.js, channel connections, and the gateway. That means a modest VPS—1–2GB RAM, single vCPU—is usually enough for personal or small-team use.
This guide covers minimum requirements, recommended providers, and step-by-step setup. Compare Hetzner (EU value), DigitalOcean, Vultr, Oracle free tier, and managed options below.
Pick a datacenter close to you for SSH and WebChat—and think about where your LLM API runs (Anthropic, OpenAI, Bedrock). The Gateway is light; latency you feel is usually model API round-trips, not the VPS CPU. Workplace bots on Slack or Teams still need a reachable Gateway: Slack quickstart, Teams quickstart. Hands-off hosting: managed providers.
There is no single "best" host—match budget, region, and whether you need HTTPS for Teams. This table is a decision aid; step-by-step guides are on each provider page.
| Provider | Typical entry | Best for | Tradeoff |
|---|---|---|---|
| Hetzner | ~$4–10/mo | Best RAM/CPU per dollar | EU-centric regions |
| DigitalOcean | $12/mo (2GB) | Beginners, 1-Click image | Not the cheapest at scale |
| Vultr | ~$6/mo | Many metro regions | Pricing varies by city |
| Oracle Cloud | $0 (Always Free) | Ollama + Gateway on one box | ARM setup friction |
| Managed | varies | No SSH/sysadmin | Less control, extra fee |
Slack bots often use Socket Mode (no public inbound port). Microsoft Teams needs a public HTTPS messaging URL—plan TLS on the VPS or use a tunnel (remote access). See Teams quickstart.
OpenClaw needs:
Important: If you use cloud LLMs (Anthropic, OpenAI, etc.), the VPS doesn't run the models. Heavy lifting happens on their servers. Your VPS only handles the Gateway, channel connections, and tool execution. That's why a small VPS works.
Here are the top providers for OpenClaw, with real-world pricing and notes:
EU-based, GDPR-friendly, and 2–3x more compute per dollar than AWS/GCP. CX11 (~$4/mo, 2GB RAM) works; CX22 ($4/mo, 2 vCPU, 4GB) or CX32 ($10/mo, 4 vCPU, 8GB) are more comfortable. German and Finnish data centers.
US datacenters (NYC, SFO, and more), 1-Click Deploy, $200 free credit for new users. Basic Droplet $6/mo (1GB) or $12/mo (2GB) recommended.
Wide metro coverage worldwide. Cloud Compute from ~$6/mo—useful when you want a specific city close to users or APIs.
$5.99/mo intro (1 vCPU, 4GB RAM, 50GB NVMe). One-click OpenClaw template, sometimes bundled AI credits. Limited US datacenter coverage.
Always Free tier: 4 ARM CPUs, 24GB RAM, 200GB storage. Enough to run OpenClaw + Ollama with local models. ARM architecture, slightly more complex setup.
One-click deploy, web setup wizard. $5/mo Hobby plan. Best for testing and development—cheapest way to try OpenClaw in the cloud.
~€5/mo, 9 regions, unlimited traffic, dedicated OpenClaw hosting page. Good for EU users.
Cheapest OpenClaw VPS option. Docker template, Ubuntu 24.04. 1GB RAM entry; upgrade for production.
Simple Application Server, Model Studio. Qwen Max, Plus, Flash, 3.5. Low latency for APAC users.
33 datacenters, 99.99% uptime. Optional full server management. EU-focused.
Dedicated OpenClaw page. VPS from ~$9/mo, dedicated from ~$70/mo. DDoS protection.
Once you have a VPS with Ubuntu or Debian:
curl -fsSL https://openclaw.ai/install.sh | bash
npm install -g pm2
openclaw init
pm2 start 'openclaw gateway start' --name openclaw
pm2 save
pm2 startup
Enable UFW firewall for ports 22 (SSH), 80 (HTTP), and 443 (HTTPS). For full setup including reverse proxy and SSL, see our Deployment tutorial and the provider-specific guides below.
For reproducible deployments, use Docker. The Docker guide covers building and running OpenClaw in containers. Many providers (DigitalOcean, Hetzner) support Docker out of the box. Benefits: consistent environment, easy updates, isolation.
Running OpenClaw on a local device (your Mac, Linux box, or Windows machine) often improves day-to-day productivity: you can airdrop files, use local paths, and get lower latency. Workflows like "drop a video, get transcript and thumbnails" are much easier when the Gateway and workspace live on a machine you use daily.
Use a VPS when you need 24/7 reachability (e.g. WhatsApp always online), don't have suitable local hardware, or want to isolate the assistant from your main machine. Prefer no servers at all? See Managed hosting—Clawi, xCloud, MyClaw.ai let you get WhatsApp and Telegram connected without running any infrastructure. More in Tips & best practices.