Skip to content
Skip the setup

Want us to handle everything? Get fully managed hosting, free to start.

Back to Deploy

VPS Deployment Guide

Deploy OpenClaw on your own VPS for full control and persistent storage.

1. Choose a VPS Provider

We recommend these providers based on performance, pricing, and global availability.

Links include referral codes. You may receive credits when signing up.

Pros and Cons

Advantages

  • All integrations supported - Telegram, Slack, Discord, and Web UI all work perfectly
  • 24/7 availability - Always online, accessible from anywhere in the world
  • Persistent storage - Your data survives restarts and is backed up
  • Full SSH access - Complete control over your server environment
  • Static IP address - Easy to set up custom domains and DNS
  • Scalable - Upgrade CPU/RAM as your needs grow

Disadvantages

  • Monthly cost - Ongoing payment of $4-24/month depending on specs
  • Server management- You're responsible for security updates and maintenance
  • Learning curve - Requires basic Linux/SSH knowledge
  • Data in the cloud - Your conversations are stored on third-party infrastructure

Things to Consider

Data Privacy

Your AI conversations will be stored on your VPS provider's infrastructure. While you control the server, the physical hardware is owned by the provider. For maximum privacy, consider local deployment instead.

Server Location

Choose a data center close to your primary location for lower latency. All recommended providers have multiple global locations. Consider GDPR compliance if you're in the EU.

Backup Strategy

Enable automatic backups with your VPS provider (usually $1-2/month extra). This protects against data loss from hardware failure or accidental deletion.

Security Hardening

After deployment, consider: changing the SSH port, setting up fail2ban, configuring a firewall (ufw), and using SSH keys instead of passwords. We recommend using Cloudflare Tunnel for secure access.

2. Recommended Specifications

Minimum Requirements

  • • 1 vCPU
  • • 1GB RAM
  • • 20GB SSD
  • • Ubuntu 22.04 or Debian 12

Recommended

  • • 2 vCPU
  • • 4GB RAM
  • • 40GB NVMe SSD
  • • Ubuntu 24.04

3. Deployment Steps

Step 1: Create your VPS

Start with Hetzner CX22 (recommended default) or an equivalent VPS running Ubuntu 22.04/24.04. Make note of the IP address and root password.

Step 2: Connect via SSH

ssh root@your-server-ip

Step 3: Install Docker

curl -fsSL https://get.docker.com | sh

Step 4: Run OpenClaw

docker run -d \
  --name openclaw \
  --restart unless-stopped \
  -p 8080:8080 \
  -e ANTHROPIC_API_KEY=your-key \
  openclaw/openclaw:latest

Step 5: Set up Cloudflare Tunnel (optional)

For secure access without opening ports, set up a Cloudflare Tunnel.

View Cloudflare Tunnel guide →

Need Help?

Don't want to set it up yourself? We can help.