API Token Setup
Before deploying to DigitalOcean, you need to create an API token:- Sign up for a DigitalOcean account
- Navigate to API in the left sidebar
- Click Generate New Token
- Give it a descriptive name (e.g., “ClawControl”)
- Select Read & Write scopes
- Click Generate Token
- Copy the token immediately (it won’t be shown again)
Configuration Options
DigitalOcean deployments support the following configuration options:Droplet Size
Choose from various droplet sizes based on your needs:| Size | vCPUs | RAM | Disk | Transfer | Price/Month |
|---|---|---|---|---|---|
| s-1vcpu-2gb (default) | 1 | 2 GB | 50 GB | 2 TB | $12 |
| s-2vcpu-2gb | 2 | 2 GB | 60 GB | 3 TB | $18 |
| s-2vcpu-4gb | 2 | 4 GB | 80 GB | 4 TB | $24 |
| s-4vcpu-8gb | 4 | 8 GB | 160 GB | 5 TB | $48 |
Region
Available DigitalOcean regions: North America:- nyc1 (New York City 1) - Default
- nyc3 (New York City 3)
- sfo3 (San Francisco 3)
- tor1 (Toronto 1)
- ams3 (Amsterdam 3)
- lon1 (London 1)
- fra1 (Frankfurt 1)
- sgp1 (Singapore 1)
- blr1 (Bangalore 1)
Image
ClawControl uses ubuntu-24-04-x64 as the default operating system image, which is fully tested and supported.Default Configuration
When you create a new DigitalOcean deployment, these defaults are used:Creating a Deployment
Using the ClawControl CLI:- Deployment Name: A unique identifier for this deployment
- API Token: Your DigitalOcean API token
- Droplet Size: Choose from available options (default: s-1vcpu-2gb)
- Region: Select a datacenter location (default: nyc1)
- OpenClaw Configuration: AI provider, model, and channel settings
Deployment Process
When you run/deploy, ClawControl will:
- Create SSH Key: Generates and uploads an SSH key to DigitalOcean
- Provision Droplet: Creates a new droplet with your specifications
- Configure System: Installs Node.js, Chrome, and dependencies
- Install OpenClaw: Deploys and configures the OpenClaw agent
- Setup Tailscale: Configures secure VPN access (optional)
- Start Services: Launches OpenClaw as a systemd service
The entire deployment process typically takes 5-10 minutes depending on droplet provisioning time.
API Operations
ClawControl uses the DigitalOcean API to manage your deployment:Droplet Management
- Create, delete, and list droplets
- Power on/off, reboot, and shutdown operations
- Monitor droplet status and wait for active state
SSH Key Management
- Upload public SSH keys for secure access
- List and delete SSH keys (by ID or fingerprint)
- Retrieve SSH key details
Resource Information
- List available droplet sizes and pricing
- Query available regions and availability
- Check action status and completion
Monitoring Your Deployment
After deployment, use these commands to monitor your instance:Pricing and Billing
DigitalOcean charges are:- Hourly billing with monthly caps
- Predictable pricing based on droplet size
- No bandwidth overage fees within transfer limits
- Automated billing charged to your payment method
Advanced Configuration
Custom Droplet Sizes
If you need more resources, DigitalOcean offers:- Basic droplets: Cost-effective shared CPU
- General Purpose: Dedicated CPU with balanced resources
- CPU-Optimized: High CPU-to-memory ratio
- Memory-Optimized: High memory-to-CPU ratio
Optional Features
When creating droplets, you can enable:- Backups: Automated weekly backups (+20% of droplet cost)
- IPv6: Enable IPv6 networking (free)
- User Data: Cloud-init scripts for custom provisioning
- Tags: Organize and filter your droplets
Regional Considerations
Choose your region based on:- Latency: Select the region closest to your users
- Compliance: EU regions for GDPR compliance
- Features: Some features may vary by region
Troubleshooting
API Token Issues
If you encounter authentication errors:- Verify your API token has Read & Write scopes
- Ensure the token hasn’t been deleted or revoked
- Check that you’re logged into the correct account
Droplet Creation Failures
Common issues:- Quota limits: Check your account droplet limits
- Region availability: Try a different region if droplets are unavailable
- Payment issues: Ensure your payment method is valid
Connection Problems
If SSH connection fails:- Verify the droplet is in “active” state
- Check that SSH keys were properly uploaded
- Ensure firewall rules allow SSH (port 22)
- Verify your local SSH client configuration
Cleanup and Deletion
To remove a deployment:- Delete the droplet from DigitalOcean
- Remove uploaded SSH keys
- Clean up local configuration files