Skip to main content
The gateway is the network-boundary runtime that accepts incoming tool calls, applies policy, and forwards allowed requests upstream. This page keeps the configuration surface a gateway integrator normally wires into an application.

Minimal shape

startGatewayServer(...) options

audit and quotas are required at runtime. The gateway throws if either is missing.

Policy YAML overrides

When you pass policyYaml or policyObject, the bootstrapper maps the following policy sections into gateway runtime config: If you need anything outside that mapping, provide it directly in MiddlewareConfig.

MiddlewareConfig

authn

OIDCConfig

entitlements

Entitlements

TenantEntitlement

quotas

QuotaAdapter

privacy

enforcement

brokers

brokers is keyed by upstream server name:

security

security.limits

security.side_effects

security.side_effects.human_escalation / humanEscalation

dedupe

audit

This page keeps audit at the integration level. The full envelope shape is intentionally left out of the main reference.

ap2

runtime

runtime.enforcement