Configuration schema explorer
Explore the agentgateway standalone configuration schema interactively, including nested fields and validation details.
Generated from the agentgateway JSON schema.
- Allstring
- Autostring
- V4Preferredstring
- V4Onlystring
- V6Onlystring
- lookupFamily
- edns0boolean
- maxTtlstring
- sourcestring
- *generatedAtstring
- metadata
- providersobject
- filestring
- inline
- *urlstring
- maxConnectionsinteger
- filestring
- hybridstring
- readOnlystring
- mode
- allowstring[]
- denystring[]
- endpointstring
- userstring
- groupstring
- sessionstring
- classicstring
- nativestring
- bothstring
- *keystring
- sessionTtlstring
- removestring[]
- addobject
- otlpEndpointstring
- headersobject
- otlpProtocolstring
- fields
- randomSamplingstring|number|boolean
- clientSamplingstring|number|boolean
- pathstring
- enabledboolean
- urlstring
- maxConnectionsinteger
- filterstring
- fields
- levelstring[]
- formatstring
- database
- addobject
- removestring[]
- fields
- enabledboolean
- timestring
- intervalstring
- retriesinteger
- keepalives
- connectTimeoutstring
- poolIdleTimeoutstring
- poolMaxSizeinteger
- h2KeepaliveIntervalstring
- h2KeepaliveTimeoutstring
- allowDynamicLoopbackboolean
- *urlstring
- noProxystring[]
- tunnel
- windowSizeinteger
- connectionWindowSizeinteger
- frameSizeinteger
- poolMaxStreamsPerConninteger
- poolUnusedReleaseTimeoutstring
- enableIpv6boolean
- dns
- localXdsPathstring
- modelCatalog
- database
- storage
- fileAccess
- caAddressstring
- caAuthTokenstring
- xdsAddressstring
- xdsAuthTokenstring
- spiffe
- namespacestring
- gatewaystring
- trustDomainstring
- additionalTrustDomainsstring
- skipValidateTrustDomainboolean
- serviceAccountstring
- clusterIdstring
- networkstring
- adminAddrstring
- standardAttributes
- statsAddrstring
- histograms
- readinessAddrstring
- session
- mcp
- sensitiveHeadersstring[]
- customFunctionsstring
- connectionTerminationDeadlinestring
- connectionMinTerminationDeadlinestring
- workerThreadsstring|integer
- tracing
- logging
- metrics
- backend
- callouts
- hbone
- lowercasestring
- preservestring
- mergeSlashstring
- dotSegmentstring
- decodeUnreservedstring
- rejectEscapedSlashstring
- unescapeSlashstring
- maxBufferSizeinteger
- http1MaxHeadersinteger
- http1IdleTimeoutstring
- http1HeaderCase
- http2WindowSizeinteger
- http2ConnectionWindowSizeinteger
- http2FrameSizeinteger
- http2MaxHeaderSizeinteger
- http2KeepaliveIntervalstring
- http2KeepaliveTimeoutstring
- maxConnectionDurationstring
- maxConcurrentRequestsinteger
- normalize
- handshakeTimeoutstring
- alpnarray[]
- minVersionstring
- maxVersionstring
- cipherSuitesstring[]
- keyExchangeGroupsstring[]
- keepalives
- maxConnectionsinteger
- allowstring
- denystring
- requirestring
- *rules
- *namestring
- *portinteger
- service
- hoststring
- backendstring
- v1string
- v2string
- allstring
- strictstring
- optionalstring
- version
- mode
- denystring
- routestring
- tunnelstring
- *mode
- metadatastring
- fullstring
- llm
- addobject
- presetstring
- filterstring
- addobject
- removestring[]
- otlp
- database
- http
- tls
- tcp
- networkAuthorization
- networkExtAuthz
- substrateEgressActorResolution
- proxy
- proxyProtocol
- connect
- accessLog
- logging
- tracing
- modestring
- certstring
- keystring
- rootstring
- spiffeobject
- cipherSuitesstring[]
- minTLSVersionstring
- minTlsVersionstring
- maxTLSVersionstring
- maxTlsVersionstring
- keyExchangeGroupsstring[]
- *exactstring
- *namestring
- *value
- *exactstring
- *exactstring
- *namestring
- *value
- headers
- path
- methodstring
- query
- addobject
- setobject
- removestring[]
- fullstring
- hoststring
- portinteger
- autostring
- nonestring
- fullstring
- prefixstring
- schemestring
- authority
- path
- statusinteger
- authority
- path
- *backend
- *percentagenumber
- conditionstring
- bodyarray|string
- bodyExpressionstring
- headersobject
- *statusinteger
- conditional
- bodyarray|string
- bodyExpressionstring
- headersobject
- statusinteger
- allowCredentialsboolean
- allowHeadersstring[]
- allowMethodsstring[]
- allowOriginsstring[]
- exposeHeadersstring[]
- maxAgestring
- service
- hoststring
- backendstring
- rejectstring
- transformstring
- *processors
- auth0object
- keycloakobject
- oktaobject
- descopeobject
- authentikobject
- entraobject
- *filestring
- strictstring
- optionalstring
- permissivestring
- *namestring
- prefixstring
- *namestring
- *namestring
- header
- queryParameter
- cookie
- expressionstring
- requiredClaimsstring[]
- *issuerstring
- audiencesstring[]
- provider
- *resourceMetadataobject
- jwks
- mode
- authorizationLocation
- jwtValidationOptions
- clientIdstring
- clientSecretstring
- Disabledstring
- Enabledstring
- maskstring
- rejectstring
- auditstring
- ssnstring
- creditCardstring
- phoneNumberstring
- emailstring
- caSinstring
- builtin
- patternstring
- action
- *rules
- failClosedstring
- failOpenstring
- rejectstring
- auditstring
- *target
- headersobject
- forwardHeaderMatches
- failureMode
- action
- addobject
- setobject
- removestring[]
- replacestring
- bodystring
- metadataobject
- request
- response
- certstring
- keystring
- rootstring
- hostnamestring
- insecureboolean
- insecureHostboolean
- alpnstring[]
- subjectAltNamesstring[]
- keyExchangeGroupsstring[]
- spiffeobject
- value
- expressionstring
- location
- typestring
- audiencestring
- credential
- *location
- key
- expressionstring
- gcp
- location
- *expressionstring
- *keystring
- valuestring
- expressionstring
- *roleArnstring
- sessionName
- tags
- externalIdstring
- accessKeyIdstring
- secretAccessKeystring
- regionstring
- sessionTokenstring
- serviceNamestring
- assumeRole
- *tenant_idstring
- *client_idstring
- *client_secretstring
- clientIdstring
- objectIdstring
- resourceIdstring
- userAssignedIdentity
- clientSecret
- managedIdentity
- workloadIdentityobject
- explicitConfig
- developerImplicitobject
- implicitobject
- *signingKey
- algstring
- kidstring
- claimsobject
- ttlstring
- location
- source
- tokenTypestring
- maxEntriesinteger
- defaultTtlstring
- *identityProvider
- *resourceAuthorizationServer
- *audiencestring
- resourcesstring[]
- scopesstring[]
- accessTokenScopesstring[]
- subjectToken
- cache
- key
- credentials
- passthrough
- gcp
- aws
- azure
- copilotstring
- jwtSign
- oauthTokenExchange
- crossAppAccess
- versionstring
- requestTimeoutstring
- maxConnectionDurationstring
- keepalives
- connectTimeoutstring
- autostring
- connectstring
- *proxy
- mode
- policiesobject
- requestHeaderModifier
- transformations
- backendTLS
- backendAuth
- http
- tcp
- backendTunnel
- failureMode
- modelstring
- action
- policies
- failureMode
- *guardrailIdentifierstring
- *guardrailVersionstring
- *regionstring
- action
- policies
- failureMode
- *templateIdstring
- *projectIdstring
- locationstring
- action
- policies
- severityThresholdinteger
- apiVersionstring
- blocklistNamesstring[]
- haltOnBlocklistHitboolean
- apiVersionstring
- failureMode
- *endpointstring
- action
- policies
- analyzeText
- detectJailbreak
- regex
- webhook
- openAIModeration
- bedrockGuardrails
- googleModelArmor
- azureContentSafety
- regex
- webhook
- bedrockGuardrails
- googleModelArmor
- azureContentSafety
- streaming
- request
- response
- *rolestring
- *contentstring
- append
- prepend
- cacheSystemboolean
- cacheMessagesboolean
- cacheToolsboolean
- minTokensinteger
- cacheMessageOffsetinteger
- promptGuard
- defaultsobject
- overridesobject
- transformationsobject
- finalTransformationsobject
- prompts
- modelAliasesobject
- promptCaching
- routesobject
- requestHeaderModifier
- transformations
- backendTLS
- backendAuth
- http
- tcp
- backendTunnelobject
- *proxy
- mode
- policies
- requestsstring
- tokensstring
- conditionstring
- maxTokensinteger
- tokensPerFillinteger
- *fillIntervalstring
- type
- keystring
- *conditional
- conditional
- service
- hoststring
- backendstring
- strictstring
- optionalstring
- permissivestring
- *issuerstring
- audiencesstring[]
- *jwks
- jwtValidationOptions
- mode
- location
- preserveTokenboolean
- providers
- issuerstring
- audiencesstring[]
- jwks
- jwtValidationOptions
- clientSecretBasicstring
- clientSecretPoststring
- *pathstring
- redirectstring
- *pathstring
- redirectstring
- sessionstring
- sessionOrBearerstring
- permissivestring
- *issuerstring
- discovery
- authorizationEndpointstring
- tokenEndpointstring
- tokenEndpointAuth
- jwks
- *clientIdstring
- *clientSecretstring
- *redirectURIstring
- scopesstring[]
- sessionTtlstring
- login
- logout
- credentials
- strictstring
- optionalstring
- *htpasswd
- realmstring
- mode
- authorizationLocation
- *unitstring
- *amountnumber
- *rollingstring
- *namestring
- *limit
- window
- *onBudgetExceededstring
- keystring
- metadata
- allowedModelsstring[]
- budgets
- keyHashstring
- strictstring
- optionalstring
- permissivestring
- *keys
- mode
- location
- conditionstring
- request
- response
- conditional
- request
- response
- additionalOriginsstring[]
- maxBytesinteger
- failureModestring
- request
- response
- algorithmsstring[]
- compress
- algorithmsstring[]
- decompress
- response
- request
- requestTimeoutstring
- backendRequestTimeoutstring
- responseIdleTimeoutstring
- attemptsinteger
- backoffstring
- *codesinteger[]
- preconditionstring
- conditionstring
- *durationstring
- requestHeaderModifier
- responseHeaderModifier
- requestRedirect
- urlRewrite
- requestMirror
- directResponse
- cors
- mcpAuthorization
- mcpGuardrails
- authorization
- mcpAuthentication
- a2aobject
- ai
- backendTLS
- backendTunnel
- backendAuth
- localRateLimit
- remoteRateLimit
- jwtAuth
- oidc
- basicAuth
- apiKey
- extAuthz
- extProc
- substrateIngress
- substrateEgress
- transformations
- csrf
- buffer
- compression
- timeout
- retry
- delay
- targetstring
- hoststring
- portinteger
- pathstring
- backendstring
- *cmdstring
- argsstring[]
- envobject
- clear_envboolean
- *schema
- sse
- mcp
- stdio
- openapi
- conditionalstring
- alwaysstring
- neverstring
- failClosedstring
- failOpenstring
- namestring
- versionstring
- titlestring
- instructionsstring
- targets
- statefulModestring
- prefixMode
- failureMode
- sseKeepAlivestring
- dnsRebindingProtectionboolean
- server
- *modestring
- *modestring
- input
- output
- modelstring
- policy
- modelstring
- moderation
- modelstring
- modelstring
- regionstring
- *projectIdstring
- modelstring
- runtimePreferredstring
- mantlePreferredstring
- mantleOnlystring
- runtimeOnlystring
- modelstring
- *regionstring
- guardrailIdentifierstring
- guardrailVersionstring
- endpointPreference
- openAIstring
- foundrystring
- aiServicesstring
- modelstring
- *resourceNamestring
- *resourceType
- apiVersionstring
- projectNamestring
- modelstring
- *typestring
- pathstring
- modelstring
- providerOverridestring
- formats
- openAI
- gemini
- vertex
- anthropic
- bedrock
- azure
- copilot
- custom
- durationstring
- restoreHealthnumber
- consecutiveFailuresinteger
- healthThresholdnumber
- unhealthyExpressionstring
- eviction
- validatedstring
- passthroughstring
- *endpointPicker
- destinationMode
- *sourcestring
- requestHeaderModifier
- transformations
- backendTLS
- backendAuth
- http
- tcp
- backendTunnel
- responseHeaderModifier
- requestRedirect
- health
- extAuthz
- authorization
- mcpAuthorization
- mcpGuardrails
- a2aobject
- inferenceRouting
- sessionAffinity
- ai
- *namestring
- *provider
- hostOverridestring
- pathOverridestring
- pathPrefixstring
- tokenizeboolean
- policies
- *providers
- namestring
- provider
- hostOverridestring
- pathOverridestring
- pathPrefixstring
- tokenizeboolean
- policies
- groups
- *agentRuntimeArnstring
- qualifierstring
- *agentCore
- service
- backendstring
- hoststring
- internalstring
- dynamic
- mcp
- ai
- aws
- routeGroupstring
- invalidnull
- namestring
- namespacestring
- ruleNamestring
- hostnamesstring[]
- matches
- policies
- backends
- backendTLS
- targetstring
- service
- hoststring
- dynamic
- backendstring
- namestring
- namespacestring
- ruleNamestring
- hostnamesstring[]
- policies
- backends
- oidc
- jwtAuth
- authorization
- extAuthz
- extProc
- cors
- transformations
- basicAuth
- apiKey
- namestring
- namespacestring
- hostnamestring
- protocolstring
- tls
- routes
- tcpRoutes
- policies
- standardstring
- internalstring
- portinteger
- protocolstring
- *listeners
- tunnelProtocolstring
- mode
- catalogstring
- disabledstring
- modelstring
- apiKey
- awsRegionstring
- bedrockEndpointPreference
- vertexRegionstring
- vertexProjectstring
- azureResourceNamestring
- azureResourceType
- azureApiVersionstring
- azureProjectNamestring
- baseUrlstring
- hostOverridestring
- pathOverridestring
- pathPrefixstring
- tokenizeboolean
- *referencestring
- defaultsobject
- overridesobject
- transformationobject
- requestTransformation
- requestHeaders
- responseHeaders
- backendTLS
- tls
- auth
- health
- backendTunnel
- promptCaching
- *namestring
- params
- *provider
- defaults
- publicstring
- internalstring
- *referencestring
- detectstring
- opaquestring
- headers
- idstring
- *namestring
- displayNamestring
- visibility
- params
- *provider
- passthrough
- authorization
- defaultsobject
- overridesobject
- transformationobject
- finalTransformationobject
- requestTransformation
- requestHeaders
- responseHeaders
- backendTLS
- tls
- auth
- health
- backendTunnel
- guardrails
- promptCaching
- matches
- *modelstring
- weightinteger
- *targets
- *modelstring
- *priorityinteger
- *targets
- whenstring
- *modelstring
- *targets
- weighted
- failover
- conditional
- callout
- *namestring
- *routing
- maxTokensinteger
- tokensPerFillinteger
- *fillIntervalstring
- type
- keystring
- oidc
- jwtAuth
- authorization
- extAuthz
- extProc
- cors
- transformations
- basicAuth
- apiKey
- guardrails
- localRateLimit
- remoteRateLimit
- timeout
- retry
- discovery
- pathPrefixstring
- gatewaysstring[]
- portinteger
- tls
- providers
- models
- virtualModels
- policies
- *pathstring
- targets
- statefulModestring
- prefixMode
- failureMode
- sseKeepAlivestring
- dnsRebindingProtectionboolean
- server
- policies
- gatewaysstring[]
- portinteger
- targets
- statefulModestring
- prefixMode
- failureMode
- sseKeepAlivestring
- dnsRebindingProtectionboolean
- server
- policies
- endpoints
- *namestring
- *namespacestring
- *gatewayNamestring
- *gatewayNamespacestring
- listenerNamestring
- portinteger
- *namestring
- *namespacestring
- ruleNamestring
- kindstring
- *namestring
- *namespacestring
- sectionstring
- kindstring
- *backend
- *namestring
- *namespacestring
- sectionstring
- gateway
- route
- backend
- listenerSet
- *name
- *target
- phasestring
- *policy
- targetstring
- hoststring
- dynamic
- internalstring
- mcp
- ai
- aws
- *namestring
- *routes
- gatewaysstring[]
- namestring
- namespacestring
- ruleNamestring
- hostnamesstring[]
- matches
- policies
- backends
- gatewaysstring[]
- namestring
- namespacestring
- ruleNamestring
- hostnamesstring[]
- policies
- backends
- cors
- oidc
- jwtAuth
- authorization
- extAuthz
- basicAuth
- apiKey
- csrf
- gatewaysstring[]
- policies
- basePathstring
- config
- frontendPolicies
- binds
- llm
- mcp
- policies
- workloadsobject[]
- servicesobject[]
- backends
- routeGroups
- gatewaysobject
- routes
- tcpRoutes
- ui
Enable IPv6 address resolution and binding. Defaults to true.
Query for both A and AAAA records in parallel and use all results.
Validation
ConstAll
Automatically choose based on the
enabled this behaves like
enable_ipv6 setting. When IPv6 isenabled this behaves like
V4Preferred; otherwise V4Only.Validation
ConstAuto
Query for both A and AAAA, but prefer IPv4 addresses when both are
available.
available.
Validation
ConstV4Preferred
Only query for A (IPv4) records.
Validation
ConstV4Only
Only query for AAAA (IPv6) records.
Validation
ConstV6Only
Controls which IP address families the DNS resolver will query for
upstream connections.
Accepted values: All, Auto, V4Preferred, V4Only, V6Only.
Defaults to Auto (IPv4-only when enableIpv6 is false, both when true).
upstream connections.
Accepted values: All, Auto, V4Preferred, V4Only, V6Only.
Defaults to Auto (IPv4-only when enableIpv6 is false, both when true).
Whether to enable EDNS0 (Extension Mechanisms for DNS) in the resolver.
When
Can also be set via the
When
None, the system-provided resolver setting is preserved.Can also be set via the
DNS_EDNS0 environment variable.Maximum interval between DNS refreshes, regardless of the TTL returned by the server.
Useful when upstream IPs change faster than their advertised TTL. Zero disables caching.
Useful when upstream IPs change faster than their advertised TTL. Zero disables caching.
Validation
Defaultnull
DNS resolver settings.
Local XDS path. If not specified, the current configuration file will be used.
Path to a file on disk containing the model cost catalog.
Legacy provenance field retained for compatibility with older generated catalogs.
Time the generated catalog contents last changed.
Validation
Formatdate-time
Identifies a generated base catalog and when its contents last changed.
Map of provider name to its supported models and pricing.
Validation
Default{}
Model cost catalog provided inline as structured data.
Model cost catalog sources; entries are merged in order, with later entries taking precedence.
Connection URL for the database. A postgres:// or postgresql:// URL uses Postgres; any other value is treated as a SQLite database.
Validation
Pattern\S
Maximum number of connections to open in this database's connection pool. Defaults to 5.
When the request log and config stores have matching database settings, they share one pool
with this limit.
When the request log and config stores have matching database settings, they share one pool
with this limit.
Validation
Defaultnull
Formatuint32
Minimum1
Primary database used by local runtime features. Request logs are also stored here unless
config.logging.database sets its own url or enabled: false.Store all UI-managed configuration in the local config file.
Validation
Constfile
Read a file baseline and store UI-managed overlay resources in the configured database.
Validation
Consthybrid
Disallow write operations to the config from the UI
Validation
ConstreadOnly
Controls whether UI-managed configuration is written to the config file or a DB overlay.
Validation
Defaultfile
Controls whether UI-managed configuration is written to the config file or a DB overlay.
Absolute path prefixes to allow. An empty list allows any path that passes the deny rules.
Validation
Default[]
Absolute path prefixes to deny alongside the default prefixes
/dev, /proc, and /sys.Validation
Default[]
Restricts which resource files configuration API validation and xDS backend TLS may use.
The longest matching prefix wins. A tie goes to
The longest matching prefix wins. A tie goes to
deny.Address of the Certificate Authority used to issue SPIFFE certificates.
Authentication token for communicating with the Certificate Authority.
Address of the xDS control plane used for dynamic configuration.
Authentication token for communicating with the xDS control plane.
SPIFFE Workload API Endpoint (e.g.
unix:///run/spire/agent.sock).Local SPIFFE Workload API configuration
When set, listeners and backends may source their TLS identity from SPIFFE.
When set, listeners and backends may source their TLS identity from SPIFFE.
Kubernetes namespace for this gateway instance.
Name of this gateway. Required when xDS is configured.
SPIFFE trust domain for this gateway.
Comma-separated list of additional SPIFFE trust domains accepted on inbound HBONE
connections. The local trust_domain is always implicitly included.
connections. The local trust_domain is always implicitly included.
When true, skip SPIFFE trust-domain verification on inbound HBONE connections.
Kubernetes service account for this gateway, used in its SPIFFE identity.
Identifier for the cluster this gateway runs in. Defaults to "Kubernetes".
Network name for this gateway, used for locality-aware routing.
Admin UI address in the format "ip:port", "localhost:port", "unix:/path/to/socket", or "off"
CEL expression used to populate the
agentgateway.user request log attribute.CEL expression used to populate the
agentgateway.group request log attribute.CEL expression identifying the session a request belongs to, exposed to CEL as
If unset, or if the expression fails, the session is detected from well-known agent headers
such as
request.agent.session.If unset, or if the expression fails, the session is detected from well-known agent headers
such as
x-claude-code-session-id. Return null to mark the request as having no session.Standard request log attributes populated for database-backed local runtime features.
Stats/metrics server address in the format "ip:port", "localhost:port", "unix:/path/to/socket", or "off"
Collect classic histogram buckets only.
Validation
Constclassic
Collect native histogram buckets only.
Validation
Constnative
Collect both classic and native histogram buckets.
Validation
Constboth
Histogram representation to collect. Native histograms are exposed only through the
Prometheus protobuf format. Defaults to classic.
Prometheus protobuf format. Defaults to classic.
Validation
Defaultclassic
Readiness probe server address in the format "ip:port", "localhost:port", "unix:/path/to/socket", or "off"
The AES-256-GCM session protection key to be used for session tokens.
If not set, a key is generated when the config file or database is writable.
Set to
For example, generated via
If not set, a key is generated when the config file or database is writable.
Set to
disabled to leave sessions unencrypted.For example, generated via
openssl rand -hex 32.Configuration for stateful session management
Time to live for MCP sessions before they are closed automatically. Defaults to 30 minutes.
Validation
Defaultnull
MCP gateway settings.
Additional request headers whose values should be redacted from trace and debug output.
Validation
Default[]
Custom CEL functions available to all CEL expressions. These can define re-usable snippets that
can be used in any expressions.
Configure as a block string containing one or more definitions, for example:
can be used in any expressions.
Configure as a block string containing one or more definitions, for example:
customFunctions: |isInternal() { request.headers["x-env"] == "internal" }this.joined(prefix, parts...) { prefix + this + parts.join("") }Maximum time to wait for connections to close gracefully during shutdown.
Validation
Defaultnull
Minimum time to allow for graceful connection termination. Defaults to zero.
Validation
Defaultnull
Number of worker threads for the async runtime. Accepts a number or a string such as "auto".
OTLP collector endpoint URL for exporting traces.
HTTP headers to include on OTLP trace exports, such as authentication headers.
Validation
Default{}
OTLP transport protocol:
grpc or http.Validation
Enumgrpc, http
Defaultgrpc
Field names to remove from log entries.
Validation
Default[]
Map of field name to a CEL expression that computes the value to add to logs.
Validation
Default{}
Custom fields to add to or remove from trace spans.
Expression to determine the amount of *random sampling*.
Random sampling will initiate a new trace span if the incoming request does not have a trace already.
This should evaluate to either a float between 0.0-1.0 (0-100%) or true/false.
This defaults to 'false'.
Random sampling will initiate a new trace span if the incoming request does not have a trace already.
This should evaluate to either a float between 0.0-1.0 (0-100%) or true/false.
This defaults to 'false'.
Expression to determine the amount of *client sampling*.
Client sampling determines whether to initiate a new trace span if the incoming request does have a trace already.
This should evaluate to either a float between 0.0-1.0 (0-100%) or true/false.
This defaults to 'true'.
Client sampling determines whether to initiate a new trace span if the incoming request does have a trace already.
This should evaluate to either a float between 0.0-1.0 (0-100%) or true/false.
This defaults to 'true'.
OTLP path. Default is /v1/traces
Distributed tracing configuration.
CEL expression that selects which requests are logged.
Custom fields to add to or remove from log entries.
Log level: a single level (e.g.
info), a comma-separated string of per-module levels (e.g. info,agent_core=trace), or a list of per-module levels (e.g. [info, agent_core=trace]).Log output format:
text or json.Validation
Enumtext, json
Store request logs in a database. When omitted, request logs are stored if either
false, no request log store is started, even if
url orconfig.database.url is set, and otherwise not. When true, one of them is required. Whenfalse, no request log store is started, even if
config.database is set.Connection URL for the request log database. A postgres:// or postgresql:// URL uses Postgres; any other value is treated as a SQLite database.
Defaults to
Defaults to
config.database.Maximum number of connections to open in this database's connection pool. Defaults to 5.
Can only be set together with
are used. With a
Can only be set together with
url. Without a url, the config.database pool and its limitare used. With a
url, the pool is shared only when both url and maxConnections matchconfig.database.Validation
Formatuint32
Minimum0
Request log database. When omitted (or null), request logs are stored in
if it is set. Set
config.databaseif it is set. Set
enabled: false to turn off request log storage.Logging configuration, including filter, level, format, and custom fields.
Metric names to exclude from collection.
Validation
Default[]
Map of field name to a CEL expression that computes the value to add to metrics.
Validation
Default{}
Custom fields to add to all metrics. Values are not bounded; each distinct value creates a
new time series.
new time series.
Metrics configuration, including metric removal and custom fields.
Enable TCP keepalive probes on backend connections. Defaults to true.
Validation
Defaulttrue
Idle time before the first keepalive probe is sent.
Validation
Default3m0s
Time between successive keepalive probes.
Validation
Default3m0s
Number of unacknowledged probes before the connection is considered dead.
Validation
Default9
Formatuint32
Minimum0
TCP keepalive configuration for upstream connections.
Validation
Default{"enabled": true, "time": "3m0s", "interval": "3m0s", "retries": 9}
Maximum time to wait when establishing a connection to an upstream. Defaults to 11 seconds.
Validation
Default11s
The maximum duration to keep an idle connection alive.
Validation
Default1m30s
The maximum number of connections allowed in the pool, per hostname. If set, this will limit
the total number of connections kept alive to any given host.
Note: excess connections will still be created, they will just not remain idle.
If unset, there is no limit
the total number of connections kept alive to any given host.
Note: excess connections will still be created, they will just not remain idle.
If unset, there is no limit
Validation
Defaultnull
Formatuint
Minimum0
Interval between HTTP/2 PING frames sent to upstream connections for liveness detection.
PINGs are sent even on idle connections to proactively evict dead connections from the pool.
Disabled by default ("0s"). Note: many gRPC servers enforce a minimum ping interval
and will reject connections that ping more frequently.
PINGs are sent even on idle connections to proactively evict dead connections from the pool.
Disabled by default ("0s"). Note: many gRPC servers enforce a minimum ping interval
and will reject connections that ping more frequently.
Validation
Default0s
Timeout waiting for a PING ACK before considering the connection dead and closing it.
Only applies when h2_keepalive_interval is set. Defaults to 5s.
Only applies when h2_keepalive_interval is set. Defaults to 5s.
Validation
Default5s
Allow dynamic backends to connect to loopback and link-local addresses (such as cloud
metadata servers). Disabled by default, as this lets requests reach services local to the
gateway.
metadata servers). Disabled by default, as this lets requests reach services local to the
gateway.
Validation
Defaultfalse
Configuration for upstream connections, including keepalives, timeouts, and pooling.
Validation
Default{"keepalives": {"enabled": true, "time": "3m0s", "interval": "3m0s", "retries": 9}, "connectTimeout": "11s", "poolIdleTimeout": "1m30s", "poolMaxSize": null, "h2KeepaliveInterval": "0s", "h2KeepaliveTimeout": "5s", "allowDynamicLoopback": false}
URL of the proxy, for example
http://proxy.example.com:3128.Destinations that bypass the proxy, using
IP addresses, CIDRs, or
NO_PROXY syntax: hostnames (matching subdomains),IP addresses, CIDRs, or
*.HTTP proxy to tunnel callouts through. If unset, the
and
Callouts to backends with their own tunnel policy, Kubernetes services, and loopback or
link-local addresses (such as cloud metadata servers) are sent directly.
HTTP_PROXY, HTTPS_PROXY, ALL_PROXY,and
NO_PROXY environment variables are used.Callouts to backends with their own tunnel policy, Kubernetes services, and loopback or
link-local addresses (such as cloud metadata servers) are sent directly.
Configuration for calls the gateway makes on its own behalf, such as cloud provider credential
fetches, JWKS fetches, OIDC discovery, and external authorization.
fetches, JWKS fetches, OIDC discovery, and external authorization.
Validation
Default{}
HTTP/2 per-stream flow-control window size in bytes. Defaults to 4 MiB.
Validation
Formatuint32
Minimum0
HTTP/2 connection-level flow-control window size in bytes. Defaults to 16 MiB.
Validation
Formatuint32
Minimum0
HTTP/2 maximum frame size in bytes. Defaults to 1 MiB.
Validation
Formatuint32
Minimum0
Maximum concurrent streams per pooled connection. Defaults to 100.
Validation
Formatuint16
Minimum0
Maximum65535
Duration after which unused pooled connections are released.
Validation
Defaultnull
HBONE (HTTP/2 CONNECT tunnel) protocol configuration.
config defines top-level settings for DNS, admin, networking, observability, and session
management. Unlike other sections, these are applied only at startup, except modelCatalog and
standardAttributes, which are dynamically reloaded.
management. Unlike other sections, these are applied only at startup, except modelCatalog and
standardAttributes, which are dynamically reloaded.
Validation
Defaultnull
Maximum request or response body size buffered by the frontend.
Defaults to 2 MiB, or 32 MiB once the request enters LLM processing.
Defaults to 2 MiB, or 32 MiB once the request enters LLM processing.
Validation
Defaultnull
Formatuint
Minimum0
Maximum number of headers allowed in an HTTP/1 request. Changing this value causes a
performance degradation, even when set lower than the default of 100.
performance degradation, even when set lower than the default of 100.
Validation
Defaultnull
Formatuint
Minimum0
How long an idle HTTP/1 connection may stay open.
Validation
Default10m0s
Encode HTTP/1 header names in lowercase.
Validation
Constlowercase
Preserve original HTTP/1 request header casing when encoding responses on the same connection.
Validation
Constpreserve
Header casing behavior for HTTP/1 responses.
Validation
Defaultlowercase
HTTP/2 stream flow-control window size.
Validation
Defaultnull
Formatuint32
Minimum0
HTTP/2 connection flow-control window size.
Validation
Defaultnull
Formatuint32
Minimum0
Maximum HTTP/2 frame size.
Validation
Defaultnull
Formatuint32
Minimum0
Maximum size of HTTP/2 request headers.
Validation
Defaultnull
Formatuint32
Minimum0
Interval between HTTP/2 keepalive pings.
Validation
Defaultnull
Time to wait for an HTTP/2 keepalive ping response.
Validation
Defaultnull
Maximum time a connection may stay open. After this duration, the connection is gracefully
closed after the current in-flight request completes. Useful for even traffic distribution
behind load balancers during scaling events.
closed after the current in-flight request completes. Useful for even traffic distribution
behind load balancers during scaling events.
Validation
Defaultnull
Maximum number of in-flight HTTP requests across this bind. This includes HTTP/1 requests
and HTTP/2 streams. Requests over the limit are rejected immediately.
and HTTP/2 streams. Requests over the limit are rejected immediately.
Validation
Formatuint32
Minimum1
Collapse repeated slashes into one.
\ is treated as /Validation
ConstmergeSlash
Resolve
and parameters on dot segments (
. and .. segments (RFC 3986 section 5.2.4). %2E is treated as ., \ as /,and parameters on dot segments (
..;x) are ignoredValidation
ConstdotSegment
Decode percent-encoded unreserved characters (
A-Z a-z 0-9 - . _ ~)Validation
ConstdecodeUnreserved
Reject requests whose path contains
%2F or %5CValidation
ConstrejectEscapedSlash
Decode
%2F and %5C into /. Mutually exclusive with RejectEscapedSlashValidation
ConstunescapeSlash
Path normalization rules applied before route matching. The normalized path is used for
routing, policies and the upstream request. Access logs keep the original path.
routing, policies and the upstream request. Access logs keep the original path.
Settings for handling incoming HTTP requests.
Validation
Defaultnull
Maximum time allowed to complete the downstream TLS handshake.
Validation
Default15s
ALPN protocols advertised to downstream clients.
Validation
Defaultnull
Minimum TLS version accepted from downstream clients.
Validation
EnumTLS_V1_0, TLS_V1_1, TLS_V1_2, TLS_V1_3
Maximum TLS version accepted from downstream clients.
Validation
EnumTLS_V1_0, TLS_V1_1, TLS_V1_2, TLS_V1_3
Cipher suites allowed for downstream TLS.
Key exchange groups allowed for negotiating TLS.
Settings for handling incoming TLS connections.
Validation
Defaultnull
TCP keepalive settings for downstream connections.
Maximum number of active downstream connections on this bind. Connections over the limit
are closed immediately.
are closed immediately.
Validation
Formatuint32
Minimum1
Settings for handling incoming TCP connections.
Validation
Defaultnull
Allow the request when this CEL expression is true.
Deny the request when this CEL expression is true. This mode is not
recommended because expression failures fail to deny; prefer
recommended because expression failures fail to deny; prefer
Allow orRequire. If used, design expressions defensively against evaluation errors.Require this CEL expression to be true.
CEL authorization rules to evaluate for a request.
CEL authorization for downstream network connections.
Validation
Defaultnull
Name of the target Service, as defined in the top-level
services list.Port on the target Service to route to.
Validation
Formatuint16
Minimum0
Maximum65535
Service reference. Service must be defined in the top level services list.
Hostname or IP address
Explicit backend reference. Backend must be defined in the top level backends list
HTTP external authorization performed once for each downstream network connection.
Validation
Defaultnull
Validate the originating actor before accepting a CONNECT tunnel.
Validation
Defaultnull
Accept PROXY protocol v1.
Validation
Constv1
Accept PROXY protocol v2.
Validation
Constv2
Accept PROXY protocol v1 or v2.
Validation
Constall
PROXY protocol versions accepted from downstream clients.
Validation
Defaultv2
Require a PROXY protocol header on each connection.
Validation
Conststrict
Accept connections with or without a PROXY protocol header.
Validation
Constoptional
Whether downstream connections must include a PROXY protocol header.
Validation
Defaultstrict
Enable downstream PROXY protocol handling on this gateway or port, including
version matching and whether PROXY headers are required or optional.
version matching and whether PROXY headers are required or optional.
Validation
Defaultnull
Reject HTTP CONNECT requests.
Validation
Constdeny
Route HTTP CONNECT requests through normal route matching.
Validation
Constroute
Treat HTTP CONNECT requests as tunnels.
Validation
Consttunnel
How downstream HTTP CONNECT requests are handled.
Enable or disable downstream HTTP CONNECT handling.
Validation
Defaultnull
Selects the built-in fields for stdout access logs.
If unset, human-oriented legacy fields are used.
If unset, human-oriented legacy fields are used.
Validation
Constotel
CEL expression that decides whether a request is logged.
Access log fields to add, computed from CEL expressions.
Access log field names to remove.
Validation
Unique itemstrue
OTLP log export settings.
Store LLM metadata without prompt or completion content.
Validation
Constmetadata
Store LLM metadata and prompt/completion content.
Validation
Constfull
LLM detail stored in the database.
cost without prompt or completion content in the dedicated payload table.
additionally captures and stores prompt and completion content there. When omitted, legacy
behavior is preserved: content captured by CEL expressions is also stored in the payload.
metadata stores request metadata, usage, timing, andcost without prompt or completion content in the dedicated payload table.
fulladditionally captures and stores prompt and completion content there. When omitted, legacy
behavior is preserved: content captured by CEL expressions is also stored in the payload.
Database-only fields to add, computed from CEL expressions.
Database-specific access log settings.
Settings for request access logs.
Validation
Defaultnull
Settings for exporting request traces.
Validation
Defaultnull
frontendPolicies defines top level policies applying to all traffic.
Port to bind on. Omit it for an internal wildcard bind (which serves any destination port
via in-process routing). A numeric port is required unless
via in-process routing). A numeric port is required unless
mode is internal.Validation
Defaultnull
Formatuint16
Minimum0
Maximum65535
Protocol handling for the entire bind. When omitted, it is inferred from the listeners.
Validation
EnumHTTP, TLS, TCP
Name identifying this listener, referenced by
gateways: gateway-name/listener-name.Validation
Defaultnull
Namespace scoping this listener.
Validation
Defaultnull
Can be a wildcard
Protocol this listener accepts: HTTP, HTTPS, TCP, TLS, or HBONE.
Validation
EnumHTTP, HTTPS, TLS, TCP, HBONE
Certificate source mode. Static mode uses cert/key as the leaf certificate; dynamic CA
mode uses cert/key as a CA for on-demand SNI leaf certificate issuance.
Unused when
mode uses cert/key as a CA for on-demand SNI leaf certificate issuance.
Unused when
spiffe is set.Validation
Enumstatic, dynamicCa
Defaultstatic
Path to the TLS certificate file (leaf certificate, or CA certificate in dynamic CA mode).
Required unless
Required unless
spiffe is set.Path to the TLS private key file.
Path to a root CA certificate file used to validate client certificates (mTLS).
Omit for one-way server TLS. Not used when
Omit for one-way server TLS. Not used when
spiffe is set.Source the serving identity from the SPIFFE Workload API.
Mutually exclusive with
Mutually exclusive with
cert/key/root.Optional cipher suite allowlist (order is preserved).
Minimum supported TLS version (only TLS 1.2 and 1.3 are supported).
Validation
EnumTLS_V1_0, TLS_V1_1, TLS_V1_2, TLS_V1_3
Maximum supported TLS version (only TLS 1.2 and 1.3 are supported).
Validation
EnumTLS_V1_0, TLS_V1_1, TLS_V1_2, TLS_V1_3
TLS configuration, used with the HTTPS and TLS protocols.
Name identifying this route.
Validation
Defaultnull
Namespace scoping this route.
Validation
Defaultnull
Specific rule within this route.
Validation
Defaultnull
Can be a wildcard
HTTP header or pseudo-header name (such as
:method) to match.Exact or regex pattern the header value must match.
Exact or regex pattern the header value must match.
HTTP headers that must match for this route to apply.
Path match rule (exact, prefix, or regex). Defaults to a "/" prefix match.
Path match rule (exact, prefix, or regex). Defaults to a "/" prefix match.
Validation
Default{"pathPrefix": "/"}
HTTP method that must match for this route to apply.
Query parameter name to match.
Exact or regex pattern the query parameter value must match.
Exact or regex pattern the query parameter value must match.
Query parameters that must match for this route to apply.
Conditions (path, method, headers, query) that select this route.
Validation
Default[{"path": {"pathPrefix": "/"}}]
Headers to append without replacing existing values.
Headers to set, replacing any existing values.
Header names to remove.
Modify request headers before forwarding.
Validation
Defaultnull
Modify response headers before returning to the client.
Validation
Defaultnull
Scheme to use in the redirect URL, such as
http or https.Replace the full authority, including host and optional port.
Replace only the host and preserve the effective port.
Replace only the port.
Validation
Formatuint16
Minimum1
Maximum65535
Use the selected backend host when possible.
Validation
Constauto
Leave the authority unchanged.
Validation
Constnone
Host or port rewrite to apply to the redirect URL.
Replace the full request path.
Replace only the matched path prefix.
Path rewrite to apply to the redirect URL.
HTTP status code to return for the redirect.
Validation
Formatuint16
Minimum1
Maximum65535
Return a redirect response instead of forwarding the request.
Validation
Defaultnull
Host or port rewrite to apply before forwarding the request.
Path rewrite to apply before forwarding the request.
Rewrite the request path or authority before forwarding.
Validation
Defaultnull
Backend that receives mirrored request copies.
Fraction of matching requests to mirror, from 0.0 to 1.0.
Validation
Formatdouble
Send a copy of matching requests to another backend.
Validation
Defaultnull
condition must evaluate to true for this policy to execute. If unset, the policy is the fallback.
Validation
Defaultnull
Static response body, encoded as bytes.
CEL expression that computes the response body.
Response headers computed from CEL expressions.
HTTP status code to return.
Validation
Formatuint16
Minimum1
Maximum65535
conditional policy entries. An entry without a condition must be the final fallback.
HTTP status code to return.
Validation
Formatuint16
Minimum1
Maximum65535
Return a configured response instead of forwarding the request.
Add
Access-Control-Allow-Credentials: true on allowed CORS responses.Validation
Defaultfalse
Values to return in
Access-Control-Allow-Headers for allowed preflight requests.Validation
Default[]
Values to return in
Access-Control-Allow-Methods for allowed preflight requests.Validation
Default[]
Request origins that receive CORS response headers. Use
* to match any origin.Validation
Default[]
Values to return in
Access-Control-Expose-Headers for allowed CORS responses.Validation
Default[]
Value to return in
Access-Control-Max-Age for allowed preflight requests.Validation
Defaultnull
Handle CORS preflight requests and append configured CORS headers to applicable requests.
Validation
Defaultnull
Authorization rules for MCP requests.
Validation
Defaultnull
Reject with this message. Exactly one of
reject or transform is required.Returns a replacement body (
Use
mcp.params on requests or mcp.result on responses).Use
merge to preserve fields you do not wish to mutate; null leaves the body unchanged.Ordered list of policy processors applied to matched methods; the first
to reject a request short-circuits the chain. Processors may run on the
request or response side, or both; see
to reject a request short-circuits the chain. Processors may run on the
request or response side, or both; see
Processor.methods.Remote and in-process CEL policy processors for MCP requests and responses.
Validation
Defaultnull
Authorization rules for incoming HTTP requests.
Validation
Defaultnull
Expected token issuer, matched against the JWT
iss claim.Accepted token audiences, matched against the JWT
If unset, audience validation is disabled.
aud claim.If unset, audience validation is disabled.
No description for this field.
Identity provider type used to derive MCP authorization metadata and default JWKS URLs.
Protected resource metadata returned to MCP clients.
Path to a file on disk to load the value from.
JSON Web Key Set used to verify token signatures. Can be inline, from a file, or fetched remotely.
If omitted, the JWKS URL is derived from the issuer and provider.
If omitted, the JWKS URL is derived from the issuer and provider.
A valid token, issued by a configured issuer, must be present.
This is the default option.
This is the default option.
Validation
Conststrict
If a token exists, validate it.
Warning: this allows requests without a JWT token! Additionally, 401 errors will not be returned,
which will not trigger clients to initiate an oauth flow.
Warning: this allows requests without a JWT token! Additionally, 401 errors will not be returned,
which will not trigger clients to initiate an oauth flow.
Validation
Constoptional
Requests are never rejected. This is useful for usage of claims in later steps (authorization, logging, etc).
Warning: this allows requests without a JWT token! Additionally, 401 errors will not be returned,
which will not trigger clients to initiate an oauth flow.
Warning: this allows requests without a JWT token! Additionally, 401 errors will not be returned,
which will not trigger clients to initiate an oauth flow.
Validation
Constpermissive
Controls whether MCP requests must include a valid JWT.
Validation
Defaultstrict
Header name containing the credential.
Prefix to remove from the header value before validation, such as
Bearer or Basic .Read the credential from an HTTP header.
Query parameter name containing the credential.
Read the credential from a URL query parameter.
Cookie name containing the credential.
Read the credential from a request cookie.
Read the credential from a CEL expression evaluated against the incoming request.
CEL expression that returns the credential string. This location can extract credentials but cannot insert them.
CEL expression that returns the credential string. This location can extract credentials but cannot insert them.
Where to read the JWT from in incoming MCP requests.
Validation
Default{"header": {"name": "authorization", "prefix": "Bearer "}}
Claims that must be present in the token before validation.
Only "exp", "nbf", "aud", "iss", "sub" are enforced; others
(including "iat" and "jti") are ignored.
Defaults to ["exp"]. Use an empty list to add no claim requirements beyond
those implied by the configured issuer and audiences.
Only "exp", "nbf", "aud", "iss", "sub" are enforced; others
(including "iat" and "jti") are ignored.
Defaults to ["exp"]. Use an empty list to add no claim requirements beyond
those implied by the configured issuer and audiences.
Validation
Default["exp"]
Unique itemstrue
Claim requirements to enforce after the token signature is verified.
OAuth client ID advertised to MCP clients when needed.
OAuth client secret injected into proxied token requests for confidential clients.
Currently used by the
client secret at the token endpoint.
Currently used by the
entra provider, whose Web-platform app registrations require aclient secret at the token endpoint.
Authenticate MCP clients.
Mark this traffic as A2A to enable A2A processing and telemetry.
Validation
Defaultnull
Do not apply prompt guards to streaming responses or realtime websocket messages.
Validation
ConstDisabled
Apply prompt guards to streaming responses and realtime websocket messages.
Validation
ConstEnabled
Apply prompt guards to streaming responses and realtime websocket messages.
Replace matching content with masked text.
Validation
Constmask
Reject the request or response when content matches.
Validation
Constreject
Observe mode: record what the guard would have done (metrics + structured
log) but never block or mask — the content always passes through.
log) but never block or mask — the content always passes through.
Validation
Constaudit
Action to take when a regex rule matches.
Validation
Defaultmask
U.S. Social Security number pattern.
Validation
Constssn
Credit card number pattern.
Validation
ConstcreditCard
Phone number pattern.
Validation
ConstphoneNumber
Email address pattern.
Validation
Constemail
Canadian Social Insurance Number pattern.
Validation
ConstcaSin
Built-in pattern name.
Regular expression pattern to evaluate.
Regex or built-in patterns to evaluate.
Apply regex-based masking or rejection rules.
Backend that receives guardrail webhook requests, and the backend policies
(such as
(such as
backendTLS) used when connecting to it. A host with anhttps:// scheme enables TLS with system roots automatically.Headers to set on the webhook request, computed from CEL expressions.
Keys may be header names or the
setting
Expressions are evaluated against the original incoming request (like the
Keys may be header names or the
:path, :method, and :authority pseudo-headers;setting
:path replaces the default /request / /response path.Expressions are evaluated against the original incoming request (like the
transformation policy), so request.* and jwt.* refer to the client's request.Incoming request headers to forward to the webhook.
Reject the request when the guardrail provider is unavailable (default).
Validation
ConstfailClosed
Allow the request through when the guardrail provider is unavailable.
Validation
ConstfailOpen
Behavior when the webhook is unreachable or returns an error.
Defaults to
Defaults to
failClosed.Enforce the guard's native verdict (block, or — for Bedrock — anonymize).
This is the default and preserves the enforcing behavior.
This is the default and preserves the enforcing behavior.
Validation
Constreject
Observe mode: invoke the guard and record its verdict (metrics +
structured log) but never block or mask — the content always passes
through.
structured log) but never block or mask — the content always passes
through.
Validation
Constaudit
Whether to enforce the webhook's verdict or only observe it.
Defaults to
Defaults to
reject (enforce).Call a webhook to evaluate the prompt.
Behavior when the provider is unreachable or returns an error.
Defaults to
Defaults to
failClosed.Moderation model to use. Defaults to
omni-moderation-latest.Whether to reject flagged content or only observe it.
Defaults to
Defaults to
reject (enforce).Modify request headers before forwarding to this backend.
Validation
Defaultnull
Headers to append using CEL expressions for values.
Headers to set using CEL expressions for values.
CEL expression that computes the full set of headers, replacing all existing headers.
The expression must evaluate to a map of header name to value (a string, or a list of
strings for a repeated header). Pseudo-headers (
set those explicitly with
so those still operate on top of the replaced headers.
The expression must evaluate to a map of header name to value (a string, or a list of
strings for a repeated header). Pseudo-headers (
:method, :path, etc.) are ignored;set those explicitly with
set/add. replace is applied before add/set/remove,so those still operate on top of the replaced headers.
CEL expression that computes a replacement body.
Metadata values to add using CEL expressions.
Transform the request before it is forwarded.
Validation
Defaultnull
Transform the response before it is returned.
Validation
Defaultnull
Modify request and response data for this backend.
Validation
Defaultnull
Client certificate file to present to the backend.
Private key file for the client certificate.
Root certificate bundle used to verify the backend certificate.
Server name to use for TLS verification and SNI.
Skip certificate trust verification for the backend connection.
Validation
Defaultfalse
Skip hostname verification for the backend certificate.
Validation
Defaultfalse
ALPN protocols to offer to the backend.
Validation
Defaultnull
Additional subject alternative names accepted for the backend certificate.
Validation
Defaultnull
Key exchange groups allowed for negotiating TLS.
Validation
Defaultnull
Get the gateway's client identity and trust roots from the SPIFFE Workload API.
Mutually exclusive with
Pin specific upstream SPIFFE IDs via
If
Mutually exclusive with
cert/key/root/insecure/insecureHost.Pin specific upstream SPIFFE IDs via
subjectAltNames (e.g. spiffe://td/ns/foo/sa/bar);If
subjectAltNames is omitted, any SVID chaining to the SPIFFE trust bundle is acceptedTLS settings used when connecting to this backend.
Secret value to send to the backend. File references are watched, so
rotating the file reloads it without a restart.
rotating the file reloads it without a restart.
CEL expression evaluated against the request to produce the value to send.
If it fails or does not return a string, the target location is cleared instead.
If it fails or does not return a string, the target location is cleared instead.
Validation
Defaultnull
Where to place the secret in the backend request.
Send a configured secret value, or a value computed from the request, to the backend.
Exactly one of
Exactly one of
value or expression must be set.Where the credential is inserted on the backend request.
Credential value. Exactly one of
key, expression, or gcp must be set.CEL expression evaluated against the request to produce the credential value.
If it fails or does not return a string, the credential location is cleared instead.
If it fails or does not return a string, the credential location is cleared instead.
Validation
Defaultnull
No description for this field.
Validation
ConstidToken
Formatconst
Audience for the token. If not set, the destination host will be used.
ADC-compatible Google credential JSON. If not set, ambient credentials are used.
Fetch a Google Cloud access or ID token.
Validation
Defaultnull
No description for this field.
Where to place the forwarded credential in the backend request.
Forward the validated incoming JWT to the backend.
Authenticate to Google Cloud services.
No description for this field.
AWS SigV4 signing service name (for example, "bedrock", "bedrock-agentcore", or "execute-api").
AWS IAM role ARN to assume.
Custom session name (RoleSessionName) for CloudTrail and Cost & Usage Report
attribution. Either a static string or
expression evaluated against each request. Max 64 chars, matching
attribution. Either a static string or
{expression: ...} with a CELexpression evaluated against each request. Max 64 chars, matching
[\w+=,.@-]. If unset, the AWS SDK generates a random session name.Custom session name (RoleSessionName) for CloudTrail and Cost & Usage Report
attribution. Either a static string or
expression evaluated against each request. Max 64 chars, matching
attribution. Either a static string or
{expression: ...} with a CELexpression evaluated against each request. Max 64 chars, matching
[\w+=,.@-]. If unset, the AWS SDK generates a random session name.Tag key.
Static tag value.
CEL expression evaluated against each request to produce the tag value, for
example
produce a valid tag value at request time, the request is rejected.
example
jwt.sub or request.headers["x-app"]. If the expression does notproduce a valid tag value at request time, the request is rejected.
Session tags passed to STS AssumeRole for cost attribution. Once activated as
cost allocation tags, each tag surfaces in the AWS Cost & Usage Report under
expression evaluated against each request (
cost allocation tags, each tag surfaces in the AWS Cost & Usage Report under
resourceTags/user:TagKey. A tag value is either static (value) or a CELexpression evaluated against each request (
expression).Set when the role's trust policy requires
matching
sts:ExternalId. 2-1224 chars,matching
[\w+=,.@:/-].Optional AWS STS role to assume before signing requests.
Sign backend requests with AWS credentials.
No description for this field.
No description for this field.
Use explicit Azure credentials
Use implicit Azure auth. Note that this is for developer use-cases only!
Automatically detect authentication method based on environment.
Uses Workload Identity on K8s, Managed Identity on Azure VMs, or Developer Tools locally.
Uses Workload Identity on K8s, Managed Identity on Azure VMs, or Developer Tools locally.
Authenticate to Azure services.
Authenticate to GitHub Copilot.
Validation
Constcopilot
PEM-encoded private signing key (RSA or EC, matching
alg).JWS signing algorithm. Defaults to RS256.
Validation
EnumRS256, RS384, RS512, PS256, ES256, ES384
DefaultRS256
Optional JWS key ID header.
Static claims added to every token (e.g. iss, sub, aud). Values may be
any JSON value (e.g. a string, number, bool, or array).
and
any JSON value (e.g. a string, number, bool, or array).
iat, exp,and
nbf are reserved for the signer and cannot be configured here.Validation
Default{}
Token lifetime used for
exp. Defaults to 300s.Where the signed token is written. Defaults to the Authorization
header with a
header with a
Bearer prefix.Sign a short-lived JWT with a private key on each request.
Use OAuth token exchange flows to obtain a backend access token.
The user's IdP authorization server, used for the RFC 8693 token exchange.
The resource authorization server, which exchanges the ID-JAG for an access token.
Identifier of the resource authorization server. The issued ID-JAG is bound to this audience.
resource parameters naming the protected resource APIs.scope values requested when obtaining the ID-JAG from the identity provider, sentspace-delimited.
scope values requested when exchanging the ID-JAG for an access token. When unset,inherits
scopes. When empty, omits scope.Where to read the subject token. Defaults to the Authorization Bearer header.
Validation
Default{"header": {"name": "authorization", "prefix": "Bearer "}}
RFC 8693 subject token type URI. Defaults to an OpenID Connect ID token.
Subject token sent to the identity provider. Defaults to an OpenID Connect ID token read
from the Authorization Bearer header.
from the Authorization Bearer header.
Maximum number of token exchange responses to keep in the cache. Set to 0 to disable.
Validation
Formatuint
Minimum0
TTL used when the token endpoint omits
expires_in. Defaults to 300s.Response cache configuration. Defaults to an in-memory cache with 8192 entries and a 300s
TTL when the token endpoint omits
TTL when the token endpoint omits
expires_in. Set maxEntries to 0 to disable.Use Cross App Access (Identity Assertion / ID-JAG) to obtain a backend access token.
Authentication credentials sent to this backend.
HTTP version to use when connecting to the backend.
Validation
Defaultnull
Maximum time allowed for a backend HTTP request.
Maximum time a connection to the backend may stay open. A connection past this duration is
not reused for new requests; a fresh connection is established instead, while in-flight
requests are not interrupted.
not reused for new requests; a fresh connection is established instead, while in-flight
requests are not interrupted.
HTTP protocol settings for this backend.
Validation
Defaultnull
TCP keepalive settings for backend connections.
Maximum time allowed to establish a backend TCP connection.
TCP protocol settings for this backend.
Validation
Defaultnull
Proxy backend used to tunnel the connection.
Use CONNECT for TLS and non-HTTP transports, and absolute-form requests for plaintext HTTP.
Validation
Constauto
Use CONNECT for all transports, including plaintext HTTP.
Validation
Constconnect
How requests are sent through the proxy.
Validation
Defaultauto
Policies to connect to the proxy backend
Tunnel settings used when connecting to this backend.
Validation
Defaultnull
Backend policies used when calling the moderation provider.
Use OpenAI moderation to evaluate the prompt.
The unique identifier of the guardrail
The version of the guardrail
AWS region where the guardrail is deployed
Whether to enforce the guardrail's verdict or only observe it.
reject (the default) enforces the guardrail: a BLOCKED assessmentrejects the request/response and an
ANONYMIZED assessment masks thematched content, exactly as before.
audit records successful assessments without enforcing their verdict.audit guarantees non-enforcement gateway-side even when the AWS resourceis configured to
BLOCK/ANONYMIZE.Backend policies for AWS authentication (optional, defaults to implicit AWS auth)
Use AWS Bedrock Guardrails to evaluate the prompt.
The template ID for the Model Armor configuration
The GCP project ID
The GCP region (default: us-central1)
Backend policies for GCP authentication (optional, defaults to implicit GCP auth)
Use Google Model Armor to evaluate the prompt.
The Azure Content Safety endpoint hostname (e.g., "<resource-name>.cognitiveservices.azure.com")
Backend policies for Azure authentication (optional, defaults to implicit Azure auth).
Key auth without a location uses the
Key auth without a location uses the
Ocp-Apim-Subscription-Key header.Severity threshold (0-6 for FourSeverityLevels). Content at or above this level is blocked. Default: 2.
Validation
Formatint32
API version to use (default: "2024-09-01")
Blocklist names to check against
When true, further analysis stops if a blocklist is hit
Analyze Text configuration for detecting harmful content categories
(Hate, SelfHarm, Sexual, Violence) and blocklist matches.
(Hate, SelfHarm, Sexual, Violence) and blocklist matches.
API version to use (default: "2024-02-15-preview")
Detect Text Jailbreak configuration for detecting jailbreak attempts.
Only applicable to request guards.
Only applicable to request guards.
Use Azure Content Safety to evaluate the prompt.
Guards applied to client requests before they reach the LLM.
Call a webhook to evaluate the response.
Use AWS Bedrock Guardrails to evaluate the response.
Use Google Model Armor to evaluate the response.
Use Azure Content Safety to evaluate the response.
Guards applied to LLM responses before they reach the client.
Prompt and response guardrails to apply to LLM traffic.
Default request body values added only when the client did not provide them.
Request body values that replace client-provided values.
Request body values computed from CEL expressions.
Request body values computed from CEL expressions.
These are applied after conversion to the provider's request format.
These are applied after conversion to the provider's request format.
Message role, such as "system", "user", or "assistant".
Message text content.
Messages appended to the end of each chat request.
Messages prepended to the beginning of each chat request.
Messages to add before or after the client prompt.
Model name aliases that rewrite requested model names.
Add cache markers to system prompts when supported by the provider.
Validation
Defaulttrue
Add cache markers to chat messages when supported by the provider.
Validation
Defaulttrue
Add cache markers to tool definitions when supported by the provider.
Validation
Defaultfalse
Minimum prompt size required before cache markers are added.
Validation
Default1024
Formatuint
Minimum0
Message offset used when choosing where to place cache markers.
Validation
Default0
Formatuint
Minimum0
Prompt caching settings for providers that support cache markers.
Route type overrides selected by request path suffix.
Mark this as LLM traffic to enable LLM processing.
Validation
Defaultnull
TLS settings used when connecting to the backend.
Tunnel settings used when connecting to this backend.
Validation
Defaultnull
Policies to connect to the proxy backend
Tunnel settings used when connecting to the backend.
Validation
Defaultnull
Authentication credentials sent to the backend.
Maximum number of tokens that can accumulate in the local bucket.
Validation
Default0
Formatuint64
Minimum0
Number of tokens added to the local bucket each fill interval.
Validation
Default0
Formatuint64
Minimum0
How often the local bucket is refilled.
Count each request as one unit.
Validation
Constrequests
Count LLM token usage.
Validation
Consttokens
Whether this limit counts requests or LLM tokens.
Validation
Defaultrequests
CEL expression selecting the bucket, for example
above. Requests without a key, or whose key cannot be evaluated, share one bucket. Buckets
are local to one proxy instance, which keeps a bounded number of them per rule and drops the
least used ones.
jwt.sub for a per-user limit orjwt.team for a per-team limit. Each distinct value gets its own bucket with the limitsabove. Requests without a key, or whose key cannot be evaluated, share one bucket. Buckets
are local to one proxy instance, which keeps a bounded number of them per rule and drops the
least used ones.
conditional policy entries. An entry without a condition must be the final fallback.
Local rate limits for incoming requests. Each gateway instance enforces its own limit. For a shared limit across instances, configure a remote rate limit service.
Remote rate limit checks for incoming requests.
Require a valid JWT from a configured issuer.
Validation
Conststrict
Validate the JWT when present.
This is the default option.
Warning: this allows requests without a JWT.
This is the default option.
Warning: this allows requests without a JWT.
Validation
Constoptional
Decode valid JWTs for later policy use.
Warning: this allows requests with missing or invalid JWTs.
Warning: this allows requests with missing or invalid JWTs.
Validation
Constpermissive
Controls whether requests must include a JWT and how validation failures are handled.
Validation
Defaultoptional
Where to read the JWT from in incoming requests.
Validation
Default{"header": {"name": "authorization", "prefix": "Bearer "}}
Keep a successfully validated JWT in its original location.
Validation
Defaultfalse
Expected token issuer. The JWT
iss claim is required and must match.Accepted token audiences. A non-empty list requires a matching JWT
aud claim.JSON Web Key Set used to verify token signatures. Can be inline, from a file, or fetched remotely.
Trusted issuers and their signing keys.
Expected token issuer. The JWT
iss claim is required and must match.JSON Web Key Set used to verify token signatures. Can be inline, from a file, or fetched remotely.
Authenticate incoming requests with JWT bearer tokens.
Issuer used for discovery and ID token validation.
Optional discovery document override. If omitted, discovery uses
${issuer}/.well-known/openid-configuration.Authorization endpoint used to start the browser login flow.
Validation
Defaultnull
Token endpoint used to exchange the authorization code.
Validation
Defaultnull
Send client credentials using HTTP Basic authentication.
Validation
ConstclientSecretBasic
Send client credentials in the token request body.
Validation
ConstclientSecretPost
Token endpoint client authentication method for explicit provider configuration.
Discovery mode derives this from provider metadata. Explicit mode defaults to
clientSecretBasic when omitted.Validation
Defaultnull
JWKS source used to validate returned ID tokens.
OAuth2 client identifier used for authorization and token exchange.
OAuth2 client secret used for token exchange.
Absolute callback URI handled by the gateway.
Unauthenticated document navigations are redirected back through this login flow.
Unauthenticated document navigations are redirected back through this login flow.
Additional OAuth2 scopes to request.
the provider requires it to issue a refresh token; returned refresh tokens are used
automatically.
openid is always included. Add offline_access whenthe provider requires it to issue a refresh token; returned refresh tokens are used
automatically.
Validation
Default[]
Lifetime of the browser session cookie. Defaults to 7 days.
The effective expiry is capped at the ID token's
The effective expiry is capped at the ID token's
exp.Validation
Defaultnull
Local endpoint that starts OAuth, for example
link here, optionally with
This endpoint is handled by the policy, not forwarded to your application.
/auth/login. Point your sign-inlink here, optionally with
?returnTo=/app to choose the destination after login.returnTo must be a safe local path and defaults to /.This endpoint is handled by the policy, not forwarded to your application.
Local page to redirect unauthenticated browser navigations to, for example
the destination after successful login. The gateway appends
page can preserve it in its sign-in link to
Serve this page and its assets on routes that bypass authentication, using a
conditional policy or separate routes. This setting does not make them public.
Fetch requests receive 401 with this destination in the Location header.
If omitted, unauthenticated navigations start OAuth directly.
/login. This happens BEFORE authentication; it is not the OAuth callback orthe destination after successful login. The gateway appends
returnTo so yourpage can preserve it in its sign-in link to
login.path.Serve this page and its assets on routes that bypass authentication, using a
conditional policy or separate routes. This setting does not make them public.
Fetch requests receive 401 with this destination in the Location header.
If omitted, unauthenticated navigations start OAuth directly.
Validation
Defaultnull
Optional explicit login endpoint and pre-login redirect. Omit for automatic OAuth login.
Validation
Defaultnull
Local endpoint that clears this policy's session and login transaction cookies,
for example
requests without a matching Origin header are rejected. The policy handles
this endpoint even when there is no valid session. This does not log out of
the identity provider or revoke tokens.
for example
/auth/logout. Submit a POST from the callback URI's origin;requests without a matching Origin header are rejected. The policy handles
this endpoint even when there is no valid session. This does not log out of
the identity provider or revoke tokens.
Local destination for the 303 redirect AFTER logout, for example
Defaults to
public through routing or a conditional policy; a protected destination can
immediately start another OAuth login using the existing identity-provider session.
/signed-out.Defaults to
login.redirect if configured, otherwise /. Make the destinationpublic through routing or a conditional policy; a protected destination can
immediately start another OAuth login using the existing identity-provider session.
Validation
Defaultnull
Optional logout endpoint. Independent of login; omit to disable the logout endpoint.
Validation
Defaultnull
Only browser sessions established through the policy's login flow.
Validation
Constsession
Browser sessions, or a JWT sent as
This lets non-browser clients authenticate with a token obtained from the provider directly.
Any token signed by the issuer whose
tokens. To accept fewer tokens, check claims in
Authorization: Bearer <token>.This lets non-browser clients authenticate with a token obtained from the provider directly.
Any token signed by the issuer whose
aud includes this client is accepted, including accesstokens. To accept fewer tokens, check claims in
authorization rules, for example!has(jwt.azp) || jwt.azp == "<client-id>".Validation
ConstsessionOrBearer
Like
policies with their credentials intact. Browser navigations retain the normal login behavior.
sessionOrBearer, but lets unauthenticated non-navigation requests continue to laterpolicies with their credentials intact. Browser navigations retain the normal login behavior.
Warning: Pair this mode with
authorization or another enforcement point.Validation
Constpermissive
Credentials accepted for authentication. Defaults to
for
session, or sessionOrBearerfor
ui.policies.oidc.Validation
Defaultnull
Authenticate browser requests with OIDC authorization code flow.
User database in htpasswd format. Can be inline or loaded from a file.
Realm shown in the
WWW-Authenticate response header when credentials are missing or invalid.Validation
Defaultnull
Require a valid username and password.
Validation
Conststrict
Validate credentials when present.
This is the default option.
Warning: this allows requests without Basic Auth credentials.
This is the default option.
Warning: this allows requests without Basic Auth credentials.
Validation
Constoptional
Controls whether requests must include valid Basic Auth credentials.
Validation
Defaultoptional
Where to read the Basic Auth credentials from in incoming requests.
Validation
Default{"header": {"name": "authorization", "prefix": "Basic "}}
Authenticate incoming requests with Basic Auth credentials from an htpasswd user database.
API key value to accept.
Optional metadata attached to requests authenticated with this key.
Model patterns this key is allowed to access.
Omitted means no additional constraint; an empty list denies all models.
Only the request's top-level model is checked; models used by provider server-side tools (such as the Anthropic advisor tool) are not.
Omitted means no additional constraint; an empty list denies all models.
Only the request's top-level model is checked; models used by provider server-side tools (such as the Anthropic advisor tool) are not.
Validation
Defaultnull
Stable name for this budget within its owning API key.
No description for this field.
Validation
EnumUSD, Tokens
No description for this field.
Validation
Formatdouble
Maximum usage allowed during the window.
Duration of the fixed usage window, for example
Windows are aligned to the Unix epoch rather than starting with the first request:
follows UTC clock hours,
periods rather than calendar months.
1h, 24h, or 30d.Windows are aligned to the Unix epoch rather than starting with the first request:
1hfollows UTC clock hours,
24h starts at midnight UTC, and 30d uses consecutive 30-dayperiods rather than calendar months.
Rolling window over which usage will be accumulated. If unset, usage accumulates for the
lifetime of the budget and is never reset.
lifetime of the budget and is never reset.
Action taken when the budget is exceeded.
Validation
EnumAudit, Block
Independent budgets charged after LLM responses. A request is not charged when its provider
does not report the usage or cost required by the budget unit.
does not report the usage or cost required by the budget unit.
SHA-256 hash of an API key value to accept, in
sha256:<hex> format.API keys that are accepted by this policy.
Require a valid API key.
Validation
Conststrict
Validate the API key when present.
This is the default option.
Warning: this allows requests without an API key.
This is the default option.
Warning: this allows requests without an API key.
Validation
Constoptional
Decode valid API keys for later policy use.
Warning: this allows requests with missing or invalid API keys.
Warning: this allows requests with missing or invalid API keys.
Validation
Constpermissive
Controls whether requests must include a valid API key.
Validation
Defaultoptional
Where to read the API key from in incoming requests.
Validation
Default{"header": {"name": "authorization", "prefix": "Bearer "}}
Authenticate incoming requests with API keys.
Authorize incoming requests by calling an external authorization service.
Send request and response data to an external processing service.
Resolve Substrate actor hostnames for dynamic route backends on ingress.
Validation
Defaultnull
Enforce the CONNECT-pinned effective Substrate egress policy.
Validation
Defaultnull
Modify request and response headers, bodies, or metadata.
Additional trusted origins allowed to send state-changing requests.
Validation
Default[]
Unique itemstrue
Handle CSRF protection by validating request origins against configured allowed origins.
Validation
Defaultnull
Maximum body size to buffer in bytes.
Validation
Formatuint
Minimum0
Behavior when the body exceeds maxBytes: failClosed (reject) or failOpen (continue).
Validation
EnumfailClosed, failOpen
DefaultfailClosed
Buffer incoming request bodies before forwarding.
Buffer upstream response bodies before sending them to the client.
Buffer request and response bodies.
Validation
Defaultnull
Algorithms that may be negotiated with the client's Accept-Encoding header. When the client
accepts several equally, the first listed wins. Defaults to gzip.
accepts several equally, the first listed wins. Defaults to gzip.
Validation
Default["gzip"]
Min items1
Compress response bodies sent to the client. Only textual content types with a known
length of at least 32 bytes are compressed, so streamed responses are sent as-is.
Responses that are already encoded, partial (
are never compressed.
length of at least 32 bytes are compressed, so streamed responses are sent as-is.
Responses that are already encoded, partial (
Content-Range), or marked no-transformare never compressed.
Compression applied to responses sent to the client.
Algorithms decoded from request bodies. Bodies using any other (or more than one)
encoding are forwarded untouched. Defaults to gzip.
encoding are forwarded untouched. Defaults to gzip.
Validation
Default["gzip"]
Min items1
Decompress request bodies after authorization, before route-level body-aware policies run
and before forwarding. Gateway-phase policies observe the encoded body.
and before forwarding. Gateway-phase policies observe the encoded body.
Compression applied to requests received from the client.
Compress responses and decompress request bodies.
Validation
Defaultnull
Maximum time allowed from the start of downstream request processing until response headers
are received. The response body is not included; use
between body frames.
are received. The response body is not included; use
responseIdleTimeout to bound gapsbetween body frames.
Maximum time allowed for the upstream backend request.
Maximum time to wait for a frame from the upstream response body.
Limits how long the gateway waits for more response data from the backend.
Time spent processing the response or waiting for the client to receive it does not count.
Time spent processing the response or waiting for the client to receive it does not count.
This complements the other two rather than overlapping them: both
any bound on how long the response body may take, and neither can distinguish a stalled
stream from a slow one.
requestTimeout andbackendRequestTimeout stop applying once the response headers arrive, so neither placesany bound on how long the response body may take, and neither can distinguish a stalled
stream from a slow one.
The timeout is disabled when this field is unset or set to zero. It does not apply to
responses that switch protocols, so upgraded WebSocket and CONNECT tunnels are never
terminated by it.
responses that switch protocols, so upgraded WebSocket and CONNECT tunnels are never
terminated by it.
Set request timeout limits.
Validation
Defaultnull
Maximum number of retries after the original request.
0 disables retries.Validation
Default1
Formatuint8
Minimum0
Maximum255
Delay between retry attempts.
HTTP response status codes that should be retried.
CEL expression evaluated against the request before any attempt; when
retries are disabled (only the initial attempt is made), e.g.
Retrying requires buffering the request body in memory for replay, so this lets us skip
that cost when the request is known to be non-retriable (e.g. streaming or websockets).
false,retries are disabled (only the initial attempt is made), e.g.
request.method == "GET".Retrying requires buffering the request body in memory for replay, so this lets us skip
that cost when the request is known to be non-retriable (e.g. streaming or websockets).
CEL expression evaluated against each response to decide whether to retry. A response
is retried when its status code is in
is retried when its status code is in
codes *or* this expression evaluates to true.Retry matching failed upstream requests.
Validation
Defaultnull
Artificial latency injected before the request is forwarded to the backend. Either a duration
string such as
(e.g.
non-positive result injects no delay.
string such as
2s, or a CEL expression evaluated against the request that returns a duration(e.g.
duration("500ms")) or a number interpreted as milliseconds (e.g.random() < 0.1 ? 500 : 0 for probabilistic delay, or int(random() * 500) for jitter). Anon-positive result injects no delay.
Inject artificial latency before forwarding requests.
Validation
Defaultnull
Route-level policies applied before backend selection.
Route to a Service defined in the top-level
services list.Hostname or IP address of the upstream to route to.
Route to the in-process admin service instead of a network upstream.
Validation
Constforward
CEL expression evaluated against the request to compute the dial
target (e.g.
to read dynamic metadata an extProc policy already set). Must
evaluate to a
supplies its dynamic metadata are trusted to select the dial target.
If unset, the target is read from the request's own :authority/URI, as
today.
target (e.g.
extproc.workerPodIp + ":" + string(extproc.workerPodPort)to read dynamic metadata an extProc policy already set). Must
evaluate to a
host:port string. The expression and any policy thatsupplies its dynamic metadata are trusted to select the dial target.
If unset, the target is read from the request's own :authority/URI, as
today.
Hostname or URI of the MCP server, for example
https://example.com or example.com:443.Port on the MCP server to connect to.
Validation
Formatuint16
Minimum0
Maximum65535
Request path on the MCP server.
Connect to a remote MCP server over HTTP with Server-Sent Events (SSE) streaming.
No description for this field.
No description for this field.
Expose the operations in an OpenAPI schema as MCP tools.
A non-root path in
A non-root path in
host or path replaces the schema's server path.Expose the operations in an OpenAPI schema as MCP tools.
A non-root path in
A non-root path in
host or path replaces the schema's server path.MCP server targets to multiplex together.
Whether to keep a persistent session across requests (Stateful) or create one per request (Stateless).
Validation
Enumstateless, stateful
Prefix names with the target name only when there are multiple targets.
Validation
Constconditional
Always prefix names, even with a single target.
Validation
Constalways
Never prefix names; with multiple targets, calls are routed by looking
up which target serves the name. Requires names to be unique across targets.
up which target serves the name. Requires names to be unique across targets.
Validation
Constnever
How to namespace tool names when multiplexing:
always prefix with the target name, or only prefix when needed (conditional).Fail the entire session if any target fails to initialize or any
upstream fails during a fanout. This is the default and matches
current behavior.
upstream fails during a fanout. This is the default and matches
current behavior.
Validation
ConstfailClosed
Skip failed targets/upstreams and continue serving from healthy ones.
If ALL targets fail, still return an error.
If ALL targets fail, still return an error.
Validation
ConstfailOpen
Behavior when one or more MCP targets fail to initialize or fail during fanout.
Defaults to
Defaults to
failClosed.Interval at which SSE keep-alive comments are sent on long-lived MCP streams.
Disabled when unset. Set this when a load balancer or API gateway sits in front
of agentgateway and reaps connections that carry no traffic.
Disabled when unset. Set this when a load balancer or API gateway sits in front
of agentgateway and reaps connections that carry no traffic.
Opt-in MCP DNS rebinding protection (Host/Origin must be localhost).
Off by default; see https://github.com/agentgateway/agentgateway/issues/1855.
Off by default; see https://github.com/agentgateway/agentgateway/issues/1855.
Overrides
would otherwise mix an overridden name with agentgateway's own version, or vice versa.
Defaults to
serverInfo.name. Must be set together with version — setting only onewould otherwise mix an overridden name with agentgateway's own version, or vice versa.
Defaults to
agentgateway when unset.Overrides
Defaults to the build version when unset.
serverInfo.version. Must be set together with name, for the same reason.Defaults to the build version when unset.
Overrides
serverInfo.title. Unset by default.Overrides the gateway preamble prepended to merged upstream instructions.
Defaults to a generic gateway description when unset.
Defaults to a generic gateway description when unset.
Overrides for the MCP
back to the normal defaults.
serverInfo and gateway instructions reported to clients oninitialize/server/discover when multiplexing multiple targets. Unset fields fallback to the normal defaults.
Name identifying this provider, referenced by
llm.models[].provider.Model ID to send to OpenAI, overriding the model in the client request.
The moderation model to use. Defaults to
omni-moderation-latest.Validation
Defaultomni-moderation-latest
Policy for request input moderation.
Validation
Enumscore, block
Policy for request input moderation.
Policy for generated output moderation.
Validation
Enumscore, block
Policy for generated output moderation.
Policies to apply to request input and generated output.
Configuration for running OpenAI inline moderation on request input and generated output.
Model ID to send to Gemini, overriding the model in the client request.
Model ID to send to Vertex AI, overriding the model in the client request.
Vertex AI region. Special values:
use restricted multi-region endpoints. Other values are treated as regional locations.
global uses the global endpoint, while us and euuse restricted multi-region endpoints. Other values are treated as regional locations.
Google Cloud project ID for Vertex AI.
Model ID to send to Anthropic, overriding the model in the client request.
Model ID to send to Bedrock, overriding the model in the client request.
AWS region for the Bedrock endpoint.
Identifier of the Bedrock guardrail to apply.
Version of the Bedrock guardrail to apply.
Use Runtime, except for models the catalog lists as available only on Mantle.
Validation
ConstruntimePreferred
Use Mantle, except for models the catalog lists as available only on Runtime.
Validation
ConstmantlePreferred
Always use Mantle for chat; unsupported models fail.
Validation
ConstmantleOnly
Always use Runtime for chat; unsupported models fail.
Validation
ConstruntimeOnly
Which endpoint to prefer (Runtime vs Mantle).
Validation
DefaultruntimePreferred
Model ID to send to Azure, overriding the model in the client request.
The Azure resource name used to construct the endpoint host.
Azure OpenAI Service endpoint:
{resourceName}.openai.azure.comValidation
ConstopenAI
Azure AI Foundry: project endpoints at
or resource-level SystemOne at
Uses
{resourceName}.services.ai.azure.com,or resource-level SystemOne at
{resourceName}.cognitiveservices.azure.com.Uses
project_name for paths like /api/projects/{project}/openai/v1/....Validation
Constfoundry
Azure AI Foundry: project endpoints at
or resource-level SystemOne at
Uses
{resourceName}.services.ai.azure.com,or resource-level SystemOne at
{resourceName}.cognitiveservices.azure.com.Uses
project_name for paths like /api/projects/{project}/openai/v1/....Validation
ConstaiServices
The type of Azure endpoint. Determines the host suffix.
Azure API version query parameter for the endpoint.
The Foundry project name for project-scoped OpenAI-compatible APIs.
Used to construct paths:
This is distinct from
Used to construct paths:
/api/projects/{projectName}/openai/v1/....This is distinct from
resourceName which is used for the host.Model ID to send to GitHub Copilot, overriding the model in the client request.
Model ID to send to the provider, overriding the model in the client request.
Provider identity for cost-catalog lookup and telemetry. Built-in named providers
(cohere, mistral, ...) set this so their cost resolves under the right catalog key;
a bare custom provider may set it to match a catalog entry. Falls back to "custom".
(cohere, mistral, ...) set this so their cost resolves under the right catalog key;
a bare custom provider may set it to match a catalog entry. Falls back to "custom".
Upstream API shape this custom provider says it accepts.
Validation
Enumcompletions, messages, responses, embeddings, anthropicTokenCount, generateContent, geminiCountTokens, realtime, rerank, decisions, systemOne
Optional path override for this specific upstream format.
Supported API payload formats and optional path overrides for this provider.
The upstream LLM provider type and its configuration.
Override the upstream host for this provider.
Override the upstream path for this provider.
Override the default base path prefix for this provider.
Whether to tokenize on the request flow. This enables us to do more accurate rate limits,
since we know (part of) the cost of the request upfront.
This comes with the cost of an expensive operation.
since we know (part of) the cost of the request upfront.
This comes with the cost of an expensive operation.
Validation
Defaultfalse
Modify response headers returned from this backend.
Validation
Defaultnull
Return a redirect response instead of forwarding to this backend.
Validation
Defaultnull
CEL expression where
When unset, any 5xx response or connection failure is treated as unhealthy.
true marks the backend response as unhealthy.When unset, any 5xx response or connection failure is treated as unhealthy.
How long to evict an unhealthy backend.
Health score to restore when the backend returns from eviction.
Validation
Formatdouble
Consecutive unhealthy responses required before eviction.
Validation
Formatint32
Health score threshold below which an unhealthy response can evict the backend.
Validation
Formatdouble
Settings for temporarily removing unhealthy backends.
Detect unhealthy backend responses and temporarily remove unhealthy endpoints.
Authorize incoming requests by calling an external authorization service after this backend is selected.
Validation
Defaultnull
Authorize incoming requests after this backend is selected.
Validation
Defaultnull
Endpoint picker backend that selects the destination endpoint.
Require the selected destination to match agentgateway's local service endpoints.
Only IP destinations can be validated; a hostname destination is rejected.
Only IP destinations can be validated; a hostname destination is rejected.
Validation
Constvalidated
Trust the selected destination directly without local endpoint validation.
The destination may be an IP address or a DNS hostname.
The destination may be an IP address or a DNS hostname.
Validation
Constpassthrough
How to use the destination returned by the endpoint picker.
Route requests through an endpoint picker before forwarding to this backend.
Validation
Defaultnull
CEL expression evaluated against request state. It must return a string or bytes value.
Examples:
Examples:
request.headers["x-session-id"] or string(source.address).Apply best-effort session affinity using a request value selected by a CEL expression.
Requests with the same value are consistently load balanced to the same healthy service
endpoint or AI provider, but may be remapped when the available backends change.
Requests with the same value are consistently load balanced to the same healthy service
endpoint or AI provider, but may be remapped when the available backends change.
Validation
Defaultnull
Backend policies applied to traffic to this provider.
Name identifying this provider, referenced by
llm.models[].provider.The upstream LLM provider type and its configuration.
LLM providers in this group, load balanced together.
ARN of the Bedrock AgentCore runtime (arn:aws:bedrock-agentcore:REGION:ACCOUNT:runtime/ID).
Endpoint qualifier (version or alias) for the AgentCore runtime invocation.
No description for this field.
No description for this field.
Weighted backends this route forwards traffic to.
HTTP routes attached directly to this listener.
TLS configuration for connections to the TCP route's backend.
TCP-level policies applied to traffic on this route.
CEL expression evaluated against TCP connection context to compute a
host:port dial target. Available fields include source.* anddestination.*; for TLS, destination.hostname is the sniffed SNI.Resolve the dial target from downstream TLS SNI and the original destination port.
Weighted backends this TCP route forwards traffic to.
TCP routes attached directly to this listener.
Gateway-level policies applied to all traffic on this listener.
Named listeners bound on this port, which may use different protocols and TLS.
Protocol used to tunnel backend connections, such as Direct or HBONE.
Validation
Enumdirect, hboneWaypoint, hboneGateway, proxy, connect
Defaultdirect
Open a listener socket on the bind's address (the normal behavior).
Validation
Conststandard
Do not open a socket. The bind is registered for routing only and is reachable
via in-process re-entry (e.g. another listener redirecting CONNECT traffic to it).
via in-process re-entry (e.g. another listener redirecting CONNECT traffic to it).
Validation
Constinternal
Whether the bind opens an OS listener socket. Defaults to
Set to
standard (binds the port).Set to
internal to create a routing-only bind that does not bind a socket.Validation
Defaultstandard
binds defines the low-level API for configuring the proxy.
Each bind represents a single port the proxy listens on, as well as the full set of configuration
(listeners, routes, backends) for that port.
Deprecated; usage of
Each bind represents a single port the proxy listens on, as well as the full set of configuration
(listeners, routes, backends) for that port.
Deprecated; usage of
gateways and routes is recommended instead.Expand wildcard model names using the local model catalog.
Validation
Constcatalog
List configured model names without expanding wildcards.
Validation
Constdisabled
discovery controls wildcard expansion in the models endpoint. Defaults to the local catalog.
Validation
Defaultcatalog
pathPrefix mounts the standard LLM endpoints under this path, for example /foo/v1/messages.
Defaults to the root. A non-empty prefix must start with
The prefix is removed before model routing.
Defaults to the root. A non-empty prefix must start with
/. Trailing slashes are ignored.The prefix is removed before model routing.
gateways attaches the LLM routes to named gateways. This can take the form of
When omitted and a gateway named
<gateway-name> or <gateway-name>/<listener-name> to attach to a specific listener within a gateway.When omitted and a gateway named
default exists, the LLM API routes attach to it unless port is set.Validation
Default[]
port defines the port to serve the LLM routes under. Deprecated; use
gateways instead.Validation
Formatuint16
Minimum0
Maximum65535
tls defines the TLS settings to serve the LLM routes under when using
port. Deprecated; use gateways instead.name is referenced from llm.models[].provider.reference.
The model to send to the provider.
If unset, the same model will be used from the request.
If unset, the same model will be used from the request.
Validation
Defaultnull
An API key to attach to the request.
If unset this will be automatically detected from the environment.
If unset this will be automatically detected from the environment.
AWS region to use for the Bedrock provider.
Which Bedrock endpoint to prefer (Runtime vs Mantle).
Validation
DefaultruntimePreferred
Google Cloud region to use for the Vertex AI provider.
Google Cloud project ID to use for the Vertex AI provider.
For Azure: the resource name of the deployment
For Azure: the type of Azure endpoint (openAI or foundry)
For Azure: the API version to use
For Azure: the Foundry project name (required for foundry resource type)
Base URL for the upstream provider. Expands to hostOverride, pathPrefix, and tls for https URLs.
The URL path is the upstream base path and defaults to / when omitted.
Provider-specific endpoint paths are appended to this base path.
For example,
while
The URL path is the upstream base path and defaults to / when omitted.
Provider-specific endpoint paths are appended to this base path.
For example,
https://api.openai.com/v1 sends completions to /v1/chat/completions,while
https://api.openai.com sends them to /chat/completions.Validation
Defaultnull
Override the upstream host for this provider.
Validation
Defaultnull
Override the upstream path for this provider.
Validation
Defaultnull
Override the default base path prefix for this provider.
Validation
Defaultnull
Whether to tokenize the request before forwarding it upstream.
Validation
Defaultfalse
params customizes parameters for outgoing requests that use this provider.
provider of the LLM we are connecting to.
provider of the LLM we are connecting to.
Request payload fields to set when not already present in the request.
Request payload fields to set, overriding any existing values in the request.
CEL expressions that compute request payload fields, overriding existing values.
CEL expressions that modify the HTTP request (headers, metadata, etc) to the LLM provider.
Unlike
Unlike
transformation, which sets fields in the LLM request payload, this operates on the HTTP request itself.Headers to add, set, or remove on requests to the LLM provider.
Validation
Defaultnull
Headers to add, set, or remove on responses from the LLM provider.
Validation
Defaultnull
TLS configuration for connecting to the LLM provider.
Authentication configuration for connecting to the LLM provider.
Outlier detection and health checking for this provider backend.
Tunneling configuration for connecting to the LLM provider.
Validation
Defaultnull
Cache-point insertion for LLM providers that support prompt caching.
defaults defines provider-level policy defaults. Model-level policy fields override these.
providers defines reusable LLM provider defaults that models may reference.
id is a stable identity for this model config entry. The name field remains the model match pattern.
name is the name of the model we are matching from a users request. If params.model is set, that
will be used in the request to the LLM provider. If not, the incoming model is used.
will be used in the request to the LLM provider. If not, the incoming model is used.
displayName is an optional label shown in the UI in place of name. It does not affect matching.
Public models can be requested directly by clients and are included in the model list.
Validation
Constpublic
Internal models can be targeted by virtual models but cannot be requested directly.
Validation
Constinternal
visibility controls whether clients can request this model directly (rather than only via a
virtualModel).params customizes parameters for the outgoing request
provider of the LLM we are connecting too
provider of the LLM we are connecting too
Pass through the request while extracting LLM telemetry and rate-limit inputs when possible.
Validation
Constdetect
Pass through the request without interpreting it as LLM traffic.
Validation
Constopaque
passthrough controls how requests are handled.
By default, requests will be parsed and translated as needed.
With passthrough, they will be unmodified and optionally inspected (with
In this mode, requests must be sent in the native format of the provider.
By default, requests will be parsed and translated as needed.
With passthrough, they will be unmodified and optionally inspected (with
detect).In this mode, requests must be sent in the native format of the provider.
authorization configures HTTP authorization rules for requests to this model.
defaults allows setting default values for the request. If these are not present in the request body, they will be set.
To override even when set, use
To override even when set, use
overrides.overrides allows setting values for the request, overriding any existing values
transformation allows setting values from CEL expressions for the request, overriding any existing values.
This operates on fields of the LLM request payload; to modify the HTTP request (headers, metadata, etc), use
This operates on fields of the LLM request payload; to modify the HTTP request (headers, metadata, etc), use
requestTransformation.final_transformation allows setting values from CEL expressions for the request, overriding any existing values.
Occurs after conversion of the request to the provider format, allowing for provider-specific transformations.
Occurs after conversion of the request to the provider format, allowing for provider-specific transformations.
requestTransformation modifies the HTTP request to the LLM provider (headers, metadata, etc) using CEL expressions.
Unlike
Unlike
transformation, which sets fields in the LLM request payload, this operates on the HTTP request itself.requestHeaders modifies headers in requests to the LLM provider.
Validation
Defaultnull
responseHeaders modifies headers in responses from the LLM provider.
Validation
Defaultnull
tls configures TLS when connecting to the LLM provider.
auth configures authentication when connecting to the LLM provider.
health configures outlier detection for this model backend.
backendTunnel configures tunneling when connecting to the LLM provider.
Validation
Defaultnull
guardrails to apply to the request or response
promptCaching configures cache point insertion for supported LLM providers.
Request headers to match for conditional model routing.
matches specifies the conditions under which this model should be used in addition to matching the model name.
models defines the set of models that can be served by this gateway. The model name refers to the
model in the users request that is matched; the model sent to the actual LLM can be overridden
on a per-model basis.
model in the users request that is matched; the model sent to the actual LLM can be overridden
on a per-model basis.
name is the public model name clients request.
model is resolved against llm.models using the same wildcard matching as client requests.
Relative proportion of traffic sent to this target model. Defaults to 1.
Validation
Default1
Formatuint
Minimum0
targets are existing model names or names matched by wildcard model entries.
weighted enables weight-based selection of the target model.
priority groups targets for failover. Lower values are preferred.
Validation
Formatuint
Minimum0
targets are grouped by priority. Lower priority values are tried first.
failover enables priority-based selection of the target model.
Within a priority level, the best provider is selected by a composite score factoring in health
and latency.
If all models within a priority level are degraded, requests will move onto the next priority group.
Within a priority level, the best provider is selected by a composite score factoring in health
and latency.
If all models within a priority level are degraded, requests will move onto the next priority group.
when must evaluate to true for this target to be selected. Omit only on the final fallback target.
Validation
Defaultnull
targets are evaluated in order. The first matching condition selects the model.
Conditional enables condition-based selection of the target model. Each condition is evaluated
in order until the best match is found.
in order until the best match is found.
callout selects the target model by calling an external HTTP service.
routing selects an existing LLM model backend for each request.
virtualModels defines a set of models that can be served from the gateway. The model name refers to the
model in the users request that is matched. However, unlike the
dynamically route to a specific model (configured in
model in the users request that is matched. However, unlike the
models field, virtual models willdynamically route to a specific model (configured in
models) based on the configured logic.Guardrails to apply to every configured model.
Local rate limits for incoming requests. Each gateway instance enforces its own limit. For a shared limit across instances, configure a remote rate limit service.
Validation
Default[]
Remote rate limit checks for incoming requests.
Validation
Defaultnull
policies defines policies for handling incoming requests, before a model is selected
llm defines a set of LLM models to be exposed by the proxy. When configured, LLM models will be
served under the attached
served under the attached
gateways using the standard serving paths (/v1/models, /v1/chat/completions, etc).gateways attaches the MCP routes to named gateways. This can take the form of
When omitted and a gateway named
<gateway-name> or <gateway-name>/<listener-name> to attach to a specific listener within a gateway.When omitted and a gateway named
default exists, the MCP routes attach to it unless port is set.Validation
Default[]
Policies applied to MCP requests.
path the endpoint is served under, for example
/eng/mcp. Clients connect with Streamable HTTP.Overrides for the MCP
instructions preamble, applied only when multiplexing multiple targets.
serverInfo (name/version/title) and the gatewayinstructions preamble, applied only when multiplexing multiple targets.
Policies applied to MCP requests for this endpoint, on top of the top-level
policies.endpoints serves MCP servers under their own paths. Endpoints inherit the top-level settings and
path
policies; a policy set on an endpoint replaces the top-level policy of the same type, exceptauthorization and mcpAuthorization, whose rules from both apply. The top-leveltargets are the targets of the /mcp endpoint, which also serves /sse; list an endpoint withpath
/mcp to give it its own settings or policies. Requires gateways.mcp defines a set of MCP servers exposed by the proxy. When configured, the MCP servers will be
served under the attached
All MCP servers listed will be served as a single virtual MCP server.
served under the attached
gateways at /mcp and /sse.All MCP servers listed will be served as a single virtual MCP server.
Name identifying this resource.
Namespace scoping this resource, used in fully qualified
namespace/name references.Policy name used when attaching this policy to a target.
Name of the gateway this target references.
Namespace of the gateway this target references.
Specific listener within the gateway; if unset, targets the gateway itself.
Port to target, as an alternative to listener_name.
Validation
Formatuint16
Minimum0
Maximum65535
Name identifying this route.
Namespace scoping this route, used in fully qualified
namespace/name references.Specific rule within the route, for targeted policy references.
Resource kind used in policy target references.
Name of the listener set resource.
Namespace of the listener set resource.
Specific listener within the listener set to target.
Gateway, listener, route, or backend that this policy attaches to.
When the policy runs. Gateway policies run before route selection, while route policies run after route selection.
Use route policies by default unless the policy needs to affect route selection.
Use route policies by default unless the policy needs to affect route selection.
Validation
Enumroute, gateway
Defaultroute
Policy settings to apply to the selected target.
policies defines additional policies that can be attached to various other configurations.
This is an advanced feature; users should typically use the inline
This is an advanced feature; users should typically use the inline
policies field under route/gateway.workloads defines the set of workloads that the proxy can serve. These are selected by
This is an advanced feature that is mostly for testing; usage of inline
policies is typically preferred.
services.This is an advanced feature that is mostly for testing; usage of inline
backends on routes andpolicies is typically preferred.
Validation
Default[]
services defines the set of services that the proxy can route to. These consist of
This is an advanced feature that is mostly for testing; usage of inline
policies is typically preferred.
workloads.This is an advanced feature that is mostly for testing; usage of inline
backends on routes andpolicies is typically preferred.
Validation
Default[]
Resolve the dial target from request metadata using a CEL expression.
Resolve the dial target from request metadata using a CEL expression.
backends defines explicit backends that can be referenced by routes and policies.
Typically, inline backends are used on the routes/policies, but this allows re-using the same backend
across different configurations.
Typically, inline backends are used on the routes/policies, but this allows re-using the same backend
across different configurations.
Identifier for this route group, referenced by delegating routes.
HTTP routes grouped together for delegation and reuse.
routeGroups provides a set of route groups used for route delegation. This is an advanced feature
primarily used for testing.
primarily used for testing.
gateways defines the entrypoint to the proxy, setting up ports and listeners that features (LLM, MCP, and UI) and routes can attach to.
Each gateway defines a port that proxy will listen on, and optionally TLS settings for that port.
Each gateway defines a port that proxy will listen on, and optionally TLS settings for that port.
gateways attaches this route to named gateways or gateway listeners.
This can take the form of
If unset, the 'default' gateway will be used.
This can take the form of
<gateway-name> or <gateway-name>/<listener-name> to attach to a specific listener within a gateway.If unset, the 'default' gateway will be used.
Validation
Default[]
routes defines HTTP routes attached to one or more named gateways.
gateways attaches this route to named TCP/TLS gateways or gateway listeners.
This can take the form of
If unset, the 'default' gateway will be used.
This can take the form of
<gateway-name> or <gateway-name>/<listener-name> to attach to a specific listener within a gateway.If unset, the 'default' gateway will be used.
Validation
Default[]
tcpRoutes defines TCP routes attached to one or more named TCP/TLS gateways.
gateways attaches the UI and UI backend routes to named gateways. This can take the form of
When omitted and a gateway named
<gateway-name> or <gateway-name>/<listener-name> to attach to a specific listener within a gateway.When omitted and a gateway named
default exists, the UI routes attach to it.Validation
Default[]
policies defines route-level policies for the UI and required UI API routes.
basePath is the prefix a reverse proxy in front of the gateway strips before forwarding (e.g.
It is added to UI links, assets and login redirects.
/agentgateway).It is added to UI links, assets and login redirects.
ui defines settings for how the UI and UI backend is exposed. By default, the UI is exposed only
on the admin interface (typically localhost:15000). This setting allows attaching to
to serve externally, as well as attaching policies to UI traffic.
It is strongly recommended to utilize authentication (typically OIDC) when exposing the UI externally.
on the admin interface (typically localhost:15000). This setting allows attaching to
gatewaysto serve externally, as well as attaching policies to UI traffic.
It is strongly recommended to utilize authentication (typically OIDC) when exposing the UI externally.
Was this page helpful?