Deployment
Deploy OpenClaw to production.
This guide covers deploying OpenClaw to various platforms.
Deployment Options
| Platform | Pros | Cons |
|---|---|---|
| DigitalOcean | Simple, affordable | Manual scaling |
| Cloudflare | Serverless, global | Sandbox limitations |
| Self-hosted | Full control | Maintenance burden |
DigitalOcean Droplet
Setup
- Create a Droplet (2GB+ RAM recommended)
- SSH into your droplet
- Install Docker and Docker Compose
- Clone and configure OpenClaw
- Run
docker compose up -d
Networking
- Enable firewall (UFW)
- Allow ports 22 (SSH), 8080 (WebSocket)
- Consider adding a reverse proxy (Caddy/Nginx) for HTTPS
Cloudflare Workers
See Moltworker documentation for serverless deployment.
Self-Hosted
Requirements
- Linux server (Ubuntu 22.04+ recommended)
- Docker 24.0+
- Docker Compose V2
- 2GB+ RAM
- Public IP or VPN access
Security
- Use strong API tokens
- Enable HTTPS via reverse proxy
- Consider Tailscale for private network access