OpenClaw on a VPS

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.

Choosing a VPS region

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.

Which VPS for OpenClaw?

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/moBest RAM/CPU per dollarEU-centric regions
DigitalOcean$12/mo (2GB)Beginners, 1-Click imageNot the cheapest at scale
Vultr~$6/moMany metro regionsPricing varies by city
Oracle Cloud$0 (Always Free)Ollama + Gateway on one boxARM setup friction
ManagedvariesNo SSH/sysadminLess 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.

Minimum Requirements

OpenClaw needs:

  • RAM: 1GB minimum; 2–4GB recommended for comfortable operation (multiple channels, skills, browser automation)
  • CPU: 1 vCPU is enough for typical chat and automation; 2 vCPU helps with concurrent sessions
  • Storage: 10–20GB for base install, workspace, and logs; more if you run Ollama locally
  • Node.js: 22.19 or later (24 recommended)

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.

Recommended VPS Providers

Here are the top providers for OpenClaw, with real-world pricing and notes:

Hetzner Cloud — Best value

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.

Hetzner setup guide →

DigitalOcean — Easiest for beginners

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.

DigitalOcean setup guide →

Vultr — Many regions

Wide metro coverage worldwide. Cloud Compute from ~$6/mo—useful when you want a specific city close to users or APIs.

Vultr setup guide →

Hostinger — Budget option

$5.99/mo intro (1 vCPU, 4GB RAM, 50GB NVMe). One-click OpenClaw template, sometimes bundled AI credits. Limited US datacenter coverage.

Hostinger setup guide →

Oracle Cloud — Free tier

Always Free tier: 4 ARM CPUs, 24GB RAM, 200GB storage. Enough to run OpenClaw + Ollama with local models. ARM architecture, slightly more complex setup.

Oracle Cloud guide →

Railway — PaaS, $5/mo

One-click deploy, web setup wizard. $5/mo Hobby plan. Best for testing and development—cheapest way to try OpenClaw in the cloud.

Railway guide →

Contabo — Budget EU

~€5/mo, 9 regions, unlimited traffic, dedicated OpenClaw hosting page. Good for EU users.

Contabo guide →

LumaDock — From $1.99/mo

Cheapest OpenClaw VPS option. Docker template, Ubuntu 24.04. 1GB RAM entry; upgrade for production.

LumaDock guide →

Alibaba Cloud — APAC, Qwen

Simple Application Server, Model Studio. Qwen Max, Plus, Flash, 3.5. Low latency for APAC users.

Alibaba Cloud guide →

Serverion — Custom managed

33 datacenters, 99.99% uptime. Optional full server management. EU-focused.

Serverion guide →

ZAP-Hosting — VPS or dedicated

Dedicated OpenClaw page. VPS from ~$9/mo, dedicated from ~$70/mo. DDoS protection.

ZAP-Hosting guide →

Basic Setup (PM2)

Once you have a VPS with Ubuntu or Debian:

  1. Install Node.js 20+ (or use the OpenClaw one-liner, which installs Node if needed)
  2. Install OpenClaw and PM2
  3. Run the onboarding wizard
  4. Start the gateway with PM2 so it survives reboots
Quick setup
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.

Docker on VPS

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.

Local vs VPS vs Managed

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.