Operating
Self hosting
One api, any number of workers, MongoDB for storage.
cp .env.example .env
docker compose -f deploy/docker-compose.yml up --build| Variable | What for |
|---|---|
| KEEL_MONGO_URL | Durable storage. Without it everything is in memory |
| KEEL_SESSION_SECRET, KEEL_MASTER_KEY | Sessions and secret encryption. Generate with openssl rand |
| ANTHROPIC_API_KEY | Model access. Set KEEL_PROVIDER=demo to try runs without one |
| GITHUB_*, GOOGLE_*, RESEND_API_KEY | Sign in options. Without Resend, sign in links print to the api log |
| STRIPE_* | Billing. Without it every org stays on the free plan |
| KEEL_SANDBOX=docker | Turns on run_python and run_shell |
| KEEL_WORKER_CONCURRENCY | Runs one worker drives at once. Default 4 |
Workers are stateless. Add more to drive more runs; scale them down at any time and their runs move to the others when the leases expire.