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

  1. 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.
  2. 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
  3. Create the non-root user that owns OpenClaw:
    adduser openclaw
    usermod -aG sudo openclaw
    loginctl enable-linger openclaw
    su - openclaw
    openclaw --version
  4. Run onboarding as that user. It handles model auth, channels, the Gateway token and the systemd user service:
    openclaw onboard --install-daemon
  5. 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
  6. Check the Gateway:
    openclaw status
    systemctl --user status openclaw-gateway.service
  7. Open the Control UI through an SSH tunnel from your own computer, then browse to http://localhost:18789:
    ssh -L 18789:localhost:18789 root@YOUR_DROPLET_IP
    The Gateway binds to localhost by default. OpenClaw's guide also covers Tailscale Serve.

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

Create a Droplet on DigitalOcean → affiliate

Weekly price-change email coming soon

A short weekly note when prices or plans change for running Hermes Agent, OpenClaw and other always-on agents. Until then, the price changes page is updated every week.