Getting started
For local provider routing, secret handling, and credential-free gateway readiness checks, see Local model gateway.
Requirements
- Podman with
podman compose, or Docker with Docker Compose uvfor Python development- Node.js and pnpm for web development
- Network access for the initial image and package downloads
- At least 4 GB of available memory for the web build
Start the local stack
- On a fresh checkout, copy the sample environment and replace every placeholder. Use a unique database password, a random
SECRET_KEYwith at least 32 bytes, and a one-timeBOOTSTRAP_TOKEN. If.envalready exists, edit it in place; do not overwrite configured provider keys.
Keep the password in DATABASE_URL aligned with POSTGRES_PASSWORD. REPOSITORY_TARGETS is an allowlist of exact repository IDs. For HTTPS deployments, set COOKIE_SECURE=true behind a TLS-terminating proxy.
- Build and start the services:
The API applies migrations before startup. The default model list is empty and makes no provider calls. Provider credentials belong only in the local .env and are passed to LiteLLM, the only service with provider egress.
- Bootstrap the first administrator once:
curl -i http://localhost:${API_PORT:-8010}/auth/bootstrap \
-H 'Content-Type: application/json' \
-H "X-Bootstrap-Token: $BOOTSTRAP_TOKEN" \
-d '{"email":"admin@example.com","password":"replace-with-a-long-password","organization_name":"My Organization"}'
Sign in at http://localhost:${WEB_PORT:-3000}/login, create a project, and register an allowlisted repository. Registration stores configuration only; it does not access GitHub or inspect repository contents.
- Check service health at
/health/liveand/health/readyon the API, then stop the services while retaining the local database volume:
Add -v only when you also want to delete the development database.
For development commands and integration-test setup, see contributing. Never point integration tests at a development or production database.