Running OpenClaw on a DigitalOcean Droplet gives you a private, always-on AI agent — your API keys stay on your server and your agent runs 24/7. If you prefer a managed option, Ampere.sh gets OpenClaw running in 60 seconds.
Droplet Requirements
| Component | Requirement |
|---|---|
| Droplet Plan | Basic 2 GB RAM / 1 vCPU minimum — Basic 4 GB recommended |
| OS Image | Ubuntu 24.04 LTS (or 22.04 LTS) |
| Node.js | v22.16+ required — install via NodeSource, NOT apt |
| SSH Access | SSH key authentication — password auth should be disabled |
| Firewall | UFW — allow SSH (22), block port 18789 from public access |
Step 1: Create Your Droplet
In your DigitalOcean account, go to Create → Droplets and set:
- Image: Ubuntu 24.04 LTS x64
- Plan: Basic 2 GB / 1 vCPU for personal use — 4 GB for multi-agent
- Authentication: SSH Key
- Hostname:
openclaw-agent
ssh root@YOUR_DROPLET_IPStep 2: Update System & Install Node.js
OpenClaw requires Node.js v22.16+. Install from NodeSource, not apt:
sudo apt update && sudo apt upgrade -y
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
sudo apt-get install -y nodejs build-essential
node --version # must show v22.x or higherOn a 2 GB Droplet? Add swap before installing:sudo fallocate -l 2G /swapfile && sudo chmod 600 /swapfile && sudo mkswap /swapfile && sudo swapon /swapfile

NodeSource install — node --version confirms v22.14.0
Step 3: Install OpenClaw
curl -fsSL https://openclaw.ai/install.sh | bashIf openclaw is not found, fix PATH:
export PATH="$(npm prefix -g)/bin:$PATH"
echo 'export PATH="$(npm prefix -g)/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc && openclaw --version
OpenClaw installer — CLI confirmed with openclaw --version
Step 4: Run Onboarding & Connect Your Channels
openclaw onboard --install-daemon- Choose your AI provider and enter your API key
- Select a model
- Connect a channel — Telegram, WhatsApp, Discord, or others
openclaw status
Onboarding — select provider, API key, connect channel
Step 5: Enable systemd & Configure Firewall
loginctl enable-linger $USER
systemctl --user enable --now openclaw-gateway
systemctl --user status openclaw-gatewaysudo apt install -y ufw
sudo ufw default deny incoming && sudo ufw default allow outgoing
sudo ufw allow ssh && sudo ufw deny 18789
sudo ufw --force enable && sudo ufw status verbose
Gateway running — UFW blocks port 18789 from public access
DigitalOcean vs Ampere.sh
Running OpenClaw on a Droplet gives you full control but requires ongoing server management. Ampere.sh is the managed alternative — same OpenClaw experience, zero infrastructure work.
| Feature | DigitalOcean | Ampere.sh |
|---|---|---|
| Setup Time | 1–2 hours | 60 seconds |
| Technical Skill | Linux, SSH, systemd | None |
| Monthly Cost | $12–$24+ (Droplet) | Free credits to start |
| Server Management | You manage everything | Fully managed |
| Uptime | Depends on Droplet health | 99.9% SLA |
| Maintenance | Manual updates | Automatic |
| Data Privacy | Your server, full control | Managed cloud |
Frequently Asked Questions
Which DigitalOcean Droplet plan should I use for OpenClaw?
Does OpenClaw work on Ubuntu 22.04 LTS on DigitalOcean?
Will OpenClaw keep running if I close my SSH session?
Do I need a domain name for OpenClaw on DigitalOcean?
Is the OpenClaw installer script safe to run?
How do I update OpenClaw on my Droplet?
Can I run multiple OpenClaw agents on one Droplet?
What happens if my Droplet runs out of memory?
Skip the Server Setup?
Deploy OpenClaw in 60 seconds on Ampere.sh — no Droplet, no systemd, no debugging. Free credits to get started.
Deploy Now — Free Credits →