Deployment
Honeybee supports multiple deployment modes — from a local dev server to fully managed cloud orchestration.
Local development
Section titled “Local development”The simplest setup: run everything on your machine.
# Start from brood.yaml in current directorywgl up
# Or manually with more control:wgl serve --port=8080 --brood=brood.yaml --verboseThis starts an incubator instance, loads the protocol, and spawns agents. Provider keys are read from ~/.secrets/*.env.
With TLS
Section titled “With TLS”Required for .dev domains:
wgl serve --port=8080 \ --tls-cert=/path/to/fullchain.pem \ --tls-key=/path/to/privkey.pem \ --brood=brood.yamlWith persistence
Section titled “With persistence”# SQLite backend (survives restarts)wgl serve --port=8080 \ --backend=sqlite --db=./data.db \ --brood=brood.yamlColony cloud (serverless)
Section titled “Colony cloud (serverless)”Managed orchestration on Cloudflare’s global edge.
# Authenticatewgl auth login
# Create a hivewgl swarm create --name my-project --protocol spec.acp.yaml
# Set provider keywgl secret set cerebras
# Startwgl swarm start my-project
# Monitorwgl swarm info my-projectwgl swarm logs my-project
# Stop when donewgl swarm stop my-projectColony handles everything — Durable Objects for state, D1 for spend tracking, automatic scaling.
Best for: drone-type agents (ACP coordination, no filesystem access).
Container mode
Section titled “Container mode”Full environment access in Docker containers managed by Apiary.
# In brood.yamlexecution_mode: containerwgl swarm create --name my-project --execution-mode containerColony dispatches to Apiary, which manages Docker containers with:
- Full dev environment (git, npm, cargo, etc.)
- Propolis tools (file I/O, shell, PTY)
- Health monitoring
- Automatic cleanup on stop
Best for: worker-type agents that need shell, git, and build tools.
Production checklist
Section titled “Production checklist”Secrets
Section titled “Secrets”- Use
wgl secret setfor cloud deployments (stored in D1) - Use
~/.secrets/*.envfor local development - Never commit API keys to source control
- Required for
.devdomains (HSTS preload) - Use
--tls-certand--tls-keyflags - Colony handles TLS automatically
Monitoring
Section titled “Monitoring”# Local telemetry (always available)wgl telemetry overview --local
# Cloud telemetry (opt-in)export TELEMETRY_ENDPOINT=https://carapace.honeyb.dev/v1/telemetryexport TELEMETRY_API_KEY=your-keywgl telemetry overviewGovernance
Section titled “Governance”Always set budget limits in your ACP protocol:
governance: budget: max_cost: 10.00 warn_at: 0.8 heartbeat: dead_after_ms: 60000 auto_release_claims: trueColony enforces these at the platform level even if agents don’t.
Cost optimization
Section titled “Cost optimization”| Strategy | How |
|---|---|
| Use cheap models for simple tasks | provider: fast for drones |
| Set budget caps | governance.budget.max_cost |
| Use drones instead of workers | No container overhead |
| Monitor spend | wgl swarm info, wgl telemetry overview |
| Local development first | Test with wgl up before deploying to Colony |