- Add fly.toml configuration for Fly.io deployment - Add docs/platforms/fly.md with deployment guide - Uses London (lhr) region by default - Includes persistent volume for data storage
1.5 KiB
1.5 KiB
title, description
| title | description |
|---|---|
| Fly.io | Deploy Clawdbot on Fly.io |
Fly.io Deployment
Deploy Clawdbot on Fly.io with persistent storage and automatic HTTPS.
Prerequisites
- flyctl CLI installed
- Fly.io account
Quick Start
# Clone and enter the repo
git clone https://github.com/clawdbot/clawdbot.git
cd clawdbot
# Create the app (first time only)
fly apps create clawdbot
# Create persistent volume for data
fly volumes create clawdbot_data --size 1 --region lhr
# Set your secrets
fly secrets set ANTHROPIC_API_KEY=your-key-here
# Add other provider keys as needed
# Deploy
fly deploy
Configuration
The included fly.toml configures:
- Region:
lhr(London) - change to your preferred region - VM:
shared-cpu-1xwith 512MB RAM (sufficient for most use cases) - Storage: Persistent volume mounted at
/data - Auto-scaling: Disabled to maintain persistent connections
Secrets
Set your API keys as secrets (never commit these):
fly secrets set ANTHROPIC_API_KEY=sk-...
fly secrets set OPENAI_API_KEY=sk-...
fly secrets set GOOGLE_API_KEY=...
Accessing the Gateway
After deployment:
# Open the web UI
fly open
# Check logs
fly logs
# SSH into the machine
fly ssh console
Notes
- Fly.io uses x86 architecture (not ARM)
- The Dockerfile is compatible with both architectures
- For WhatsApp/Telegram, you'll need to run onboarding via
fly ssh console