Environment variables
Variables Godelgate reads at startup.
| Variable | Default | Description |
|---|---|---|
GODELGATE_CONFIG | godelgate.yaml | Path to the config file |
GODELGATE_DB | data/godelgate.db (/data/godelgate.db in the Docker image) | SQLite file for the audit log, tool pins and leads |
GODELGATE_ADMIN_TOKEN | random per start | Admin token, used when admin.token is not set in the config |
PORT | 8080 | HTTP port |
GODELGATE_PUBLIC_URL | cloud.publicUrl, else http://localhost:<PORT> | Where people reach the gate. Used for OAuth sign-ins to servers and the MCP URL shown in the dashboard. |
GODELGATE_SECRET_KEY | generated into secret.key next to the database | Encrypts stored server tokens and OAuth credentials. Set it in production and keep it: changing it makes stored credentials unreadable. |
GODELGATE_GOOGLE_CLIENT_ID, GODELGATE_GOOGLE_CLIENT_SECRET | unset | Turn on "Continue with Google" for Cloud sign-in. Create an OAuth client of type Web application in Google Cloud with the redirect URI <public URL>/auth/google/callback. |
VAULT_ADDR, VAULT_TOKEN, VAULT_NAMESPACE, GODELGATE_VAULT_TRANSIT_KEY, GODELGATE_VAULT_TRANSIT_MOUNT | unset | Take the encryption key from HashiCorp Vault Transit; see Encryption and key management |
GODELGATE_SECRET_KEY_PREVIOUS | unset | Older keys (comma-separated) to re-encrypt from during a rotation |
OTEL_EXPORTER_OTLP_ENDPOINT, OTEL_EXPORTER_OTLP_HEADERS, OTEL_SERVICE_NAME | unset | Export a trace span for every tool call; see OpenTelemetry |
ANTHROPIC_API_KEY, OPENAI_API_KEY | unset | Self-hosted: provider keys for the LLM proxy |
LIZARD_API_KEY, GODELGATE_LIZARD_PROJECT, GODELGATE_HOSTED_LIMIT | unset, unset, 2 | Cloud: run local servers in Lizard microVMs; see Isolated local servers |
GODELGATE_ALLOW_PRIVATE_URLS | unset | 1 lets Cloud workspaces connect to private addresses. Only for tests and private deployments. |
Any other variable can be used inside godelgate.yaml as ${NAME}, typically user keys and upstream tokens:
bash
export ALICE_KEY=$(openssl rand -hex 24)
export GITHUB_TOKEN=ghp_...