Skip to content

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
VariableWhat for
KEEL_MONGO_URLDurable storage. Without it everything is in memory
KEEL_SESSION_SECRET, KEEL_MASTER_KEYSessions and secret encryption. Generate with openssl rand
ANTHROPIC_API_KEYModel access. Set KEEL_PROVIDER=demo to try runs without one
GITHUB_*, GOOGLE_*, RESEND_API_KEYSign 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=dockerTurns on run_python and run_shell
KEEL_WORKER_CONCURRENCYRuns 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.

NextHTTP api