Production OpenClaw deployment on DigitalOcean droplet.
Bot: @your_bot_username IP: YOUR_DROPLET_IP Tailscale IP: YOUR_TAILSCALE_IP Region: ATL1 Specs: 2 vCPU, 4GB RAM (Intel) OS: Ubuntu 24.04 LTS Port: 18789
Model Configuration:
- Primary: Kimi K2.5 (via OpenRouter)
- Fallback: NVIDIA Kimi K2.5, Claude Sonnet 4.5
- Web Search: Perplexity Sonar Pro (via OpenRouter)
# SSH to droplet
ssh root@YOUR_DROPLET_IP
# SSH via Tailscale
ssh root@YOUR_TAILSCALE_IP
# View logs
journalctl -u openclaw-gateway.service -f
# Restart service
systemctl restart openclaw-gateway.service
# Health check (UI responds with HTML)
curl -I http://YOUR_DROPLET_IP:18789/See SETUP.md for complete installation guide covering:
- Prerequisites
- Installation (10 steps)
- Telegram Configuration
- Operations & Monitoring
- Troubleshooting
- Security Hardening
- Optional: DNS & HTTPS
Configuration templates for deployment:
- .env.example - Environment variables template
- openclaw.json.template - OpenClaw config template
- nginx.conf.template - Nginx reverse proxy config (if exists)
On droplet:
/home/openclaw/openclaw/.env- Environment variables (API keys, secrets)/home/openclaw/.openclaw/openclaw.json- OpenClaw configuration/etc/systemd/system/openclaw-gateway.service- systemd service definition
Gitignored (local only):
.env.connection- Connection details and quick commands
# Service management
systemctl status openclaw-gateway.service
systemctl restart openclaw-gateway.service
journalctl -u openclaw-gateway.service -f
journalctl -u openclaw-gateway.service -n 100 --no-pager
# Configuration
nano /home/openclaw/.openclaw/openclaw.json
nano /home/openclaw/openclaw/.env
# Monitoring
htop
df -h
free -h
ss -tulpn | grep 18789
# Updates
cd /home/openclaw/openclaw
git pull origin main
pnpm install && pnpm build
systemctl restart openclaw-gateway.service
# Backup
tar -czf ~/openclaw-backup-$(date +%Y%m%d).tar.gz /home/openclaw/.openclaw- Anthropic: https://console.anthropic.com/settings/cost
- OpenRouter: https://openrouter.ai/credits
For troubleshooting, see SETUP.md Troubleshooting section or check: