Guides · Updated 2026-11-22
How to run OpenClaw on a DigitalOcean Droplet (step by step)
OpenClaw's own docs have a DigitalOcean guide; this is a condensed version, checked 2026-10-26. Plan on about 20 minutes.
Pick a size
OpenClaw's guide uses the smallest Basic Droplet (1 vCPU, 1 GB, about $6/mo per DigitalOcean's pricing page) with 2 GB of swap and API-based models. If you hit out-of-memory errors, their troubleshooting says to move to a 2 GB Droplet ($12.00/mo). For browser-heavy work see our RAM guide.
Steps
- Sign in to DigitalOcean affiliate, click Create → Droplets, choose Ubuntu 24.04 LTS, a Basic Regular size and SSH-key authentication. OpenClaw recommends a clean base image over third-party Marketplace images.
- Connect and update, install Node.js 24, then install OpenClaw without onboarding:
ssh root@YOUR_DROPLET_IP apt update && apt upgrade -y curl -fsSL https://deb.nodesource.com/setup_24.x | bash - apt install -y nodejs curl -fsSL https://openclaw.ai/install.sh | bash -s -- --no-onboard - Create the non-root user that owns OpenClaw:
adduser openclaw usermod -aG sudo openclaw loginctl enable-linger openclaw su - openclaw openclaw --version - Run onboarding as that user. It handles model auth, channels, the Gateway token and the systemd user service:
openclaw onboard --install-daemon - On a 1 GB Droplet, add swap:
sudo fallocate -l 2G /swapfile sudo chmod 600 /swapfile sudo mkswap /swapfile sudo swapon /swapfile echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab - Check the Gateway:
openclaw status systemctl --user status openclaw-gateway.service - Open the Control UI through an SSH tunnel from your own computer, then browse to
http://localhost:18789:
The Gateway binds to localhost by default. OpenClaw's guide also covers Tailscale Serve.ssh -L 18789:localhost:18789 root@YOUR_DROPLET_IP
Backups
State lives in ~/.openclaw/. Create an archive with openclaw backup create, or use DigitalOcean snapshots for the whole Droplet.
We haven't run this on our own Droplet; the steps follow OpenClaw's DigitalOcean docs and install docs as published on 2026-10-26. If anything differs, the official docs win.
Related guides
- How to run Hermes Agent on a DigitalOcean Droplet (step by step)
- DigitalOcean vs Hostinger for running AI agents
- How much RAM does Hermes Agent need on a VPS?
Create a Droplet on DigitalOcean → affiliate