File structure
Five sections are required. Every other section is optional, and an omitted section takes its defaults. Unknown keys fail boot, so a typo surfaces as a named error rather than a silently ignored setting.
Required sections:
listen: bind address, public URL, TLS terminationoidc: your identity provider (IdP), including issuer, client, claim mapping, and who may sign insession: the bearer tokens the gateway mints, with secret and lifetimestore: PostgreSQL, for device grants and rate-limit countersupstreams: where inference goes, whether Anthropic, Amazon Bedrock, Claude Platform on AWS, Google Cloud's Agent Platform, or Microsoft Foundry
Optional sections:
admin: Admin API auth and retention for spend limitsenforcement: spend-limit fail-open or fail-closed behaviorpricing: contracted rates and a discount multiplier for the spend meter and for the cost figures developers seemodelsandauto_include_builtin_models: admin-curated model list and per-upstream IDsmanaged: managed settings policies by IdP grouptelemetry: OTLP forwarding to your observability stackaccess_control,limits,timeouts,rate_limits: IP allow/deny, request size caps, upstream time-to-first-byte, and per-IP sign-in limits