docs/platforms/digitalocean.md
Run a persistent OpenClaw Gateway on DigitalOcean for $6/month (or $4/mo with reserved pricing).
If you want a $0/month option and don’t mind ARM + provider-specific setup, see the Oracle Cloud guide.
| Provider | Plan | Specs | Price/mo | Notes |
|---|---|---|---|---|
| Oracle Cloud | Always Free ARM | up to 4 OCPU, 24GB RAM | $0 | ARM, limited capacity / signup quirks |
| Hetzner | CX22 | 2 vCPU, 4GB RAM | €3.79 (~$4) | Cheapest paid option |
| DigitalOcean | Basic | 1 vCPU, 1GB RAM | $6 | Easy UI, good docs |
| Vultr | Cloud Compute | 1 vCPU, 1GB RAM | $6 | Many locations |
| Linode | Nanode | 1 vCPU, 1GB RAM | $5 | Now part of Akamai |
Picking a provider:
ssh root@YOUR_DROPLET_IP
# Update system
apt update && apt upgrade -y
# Install Node.js 24
curl -fsSL https://deb.nodesource.com/setup_24.x | bash -
apt install -y nodejs
# Install OpenClaw
curl -fsSL https://openclaw.ai/install.sh | bash
# Verify
openclaw --version
openclaw onboard --install-daemon
The wizard will walk you through:
# Check status
openclaw status
# Check service
systemctl --user status openclaw-gateway.service
# View logs
journalctl --user -u openclaw-gateway.service -f
The gateway binds to loopback by default. To access the Control UI:
Option A: SSH Tunnel (recommended)
# From your local machine
ssh -L 18789:localhost:18789 root@YOUR_DROPLET_IP
# Then open: http://localhost:18789
Option B: Tailscale Serve (HTTPS, loopback-only)
# On the droplet
curl -fsSL https://tailscale.com/install.sh | sh
tailscale up
# Configure Gateway to use Tailscale Serve
openclaw config set gateway.tailscale.mode serve
openclaw gateway restart
Open: https://<magicdns>/
Notes:
gateway.auth.allowTailscale: false and use gateway.auth.mode: "token" or "password".Option C: Tailnet bind (no Serve)
openclaw config set gateway.bind tailnet
openclaw gateway restart
Open: http://<tailscale-ip>:18789 (token required).
openclaw pairing list telegram
openclaw pairing approve telegram <CODE>
openclaw channels login whatsapp
# Scan QR code
See Channels for other providers.
The $6 droplet only has 1GB RAM. To keep things running smoothly:
fallocate -l 2G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
echo '/swapfile none swap sw 0 0' >> /etc/fstab
If you're hitting OOMs, consider:
agents.defaults.model.primary to a smaller modelfree -h
htop
All state lives in:
~/.openclaw/ — openclaw.json, per-agent auth-profiles.json, channel/provider state, and session data~/.openclaw/workspace/ — workspace (SOUL.md, memory, etc.)These survive reboots. Back them up periodically:
openclaw backup create
Oracle Cloud offers Always Free ARM instances that are significantly more powerful than any paid option here — for $0/month.
| What you get | Specs |
|---|---|
| 4 OCPUs | ARM Ampere A1 |
| 24GB RAM | More than enough |
| 200GB storage | Block volume |
| Forever free | No credit card charges |
Caveats:
For the full setup guide, see Oracle Cloud. For signup tips and troubleshooting the enrollment process, see this community guide.
openclaw gateway status
openclaw doctor --non-interactive
journalctl --user -u openclaw-gateway.service --no-pager -n 50
lsof -i :18789
kill <PID>
# Check memory
free -h
# Add more swap
# Or upgrade to $12/mo droplet (2GB RAM)