Production Agent on VPS (DigitalOcean / AWS / Hetzner)
Deploy a 24/7 autonomous agent on a cloud VPS in under 1 hour
About this automation
Step-by-step guide to deploy OpenClaw on a VPS with systemd auto-restart, Telegram notifications, and a hardened security setup. The most common production deployment pattern — under $10/month on Hetzner or $12/month on DigitalOcean.
How to implement
Provision VPS: Ubuntu 22.04 LTS, 2 vCPU, 4GB RAM minimum
Install Node.js 22+: `curl -fsSL https://deb.nodesource.com/setup_22.x | sudo bash -`
Install OpenClaw: `sudo npm install -g openclaw`
Configure via: `openclaw configure` (add API keys, Telegram bot token)
Enable systemd service: `openclaw gateway install && systemctl --user enable openclaw-gateway`
Set up auto-update cron: runs `openclaw update` nightly at 3am
Harden: disable root SSH, set up UFW firewall, enable fail2ban