ON-PREM CHOREO CLOUD BOTH

What it is

The API Platform Gateway runtime (APG) is the AI gateway. It is the one doorway for agent traffic: calls to LLM vendors, calls to MCP tool servers, trace uploads, and calls into agents. A router checks each request against a chain of policies before passing it on. It runs on the data plane side, one per organization and environment.

The gateway is airside security and customs: ID check, bag scan, then the real boarding documents.

Why it exists

Agents should not hold vendor keys or skip security. The gateway holds the real keys, checks identity, applies limits and guardrails, and records what happened.

How it works

  • Three parts in one runtime pod: an Envoy router, a policy engine and an optional Python executor. A separate gateway-controller feeds them configuration.
  • The router listens on port 22893 (HTTP) and 22894 (HTTPS) in the on-prem install. Choreo Cloud's gateway template uses 8080 and 8443.
  • Policies include api-key-auth, jwt-auth, mcp-auth, mcp-authz, rate limits and guardrails.
  • On-prem, agents inside the cluster call the runtime service directly on 22893, because sandbox network rules block a loop through the ingress.
  • On Choreo Cloud each organization and environment gets its own gateway, created by the provisioner on cloud-dp-oc-dp.

Identity and access

Callers prove themselves with a proxy API key, an AMS-issued JWT or an environment ThunderID token, depending on the route. The gateway adds the real vendor key itself. It talks to AMS using a registration token.

Key facts

Router ports (on-prem)
22893 (HTTP), 22894 (HTTPS)
Namespace
<org>-<env>
Router
Envoy 1.39.0 (gateway image 2026.09.24)
Side
Data plane (gateway)

Talks to (5)

Used by (12)

  • called by OC kgateway (gateway-default)
    Agent HTTPRoute patched to forward to APG with URL rewrite
    HTTP Backend to :22893
  • deployed by APG gateway-controller
    The gateway controller hosts the xDS servers (18000 for the router, 18001 for the policy engine); the router and policy engine open the connections to them and receive their config over them
    xDS gRPC 18000/18001
  • called by Agent workload (internal)
    Agent egress to proxies: LLM proxies on the gateway runtime, MCP proxies through the gateway vhost
    HTTP :22893 for LLM proxies; MCP proxy URLs use the gateway vhost (port 19080 in the chart default)
  • receives telemetry from Agent workload (internal)
    Spans from instrumentation
    OTLP/HTTP via gateway /otel
  • deployed by LLM provider / proxy
    Provider/proxy YAML delivered to gateway
    artifact via EventHub + internal API
  • deployed by MCP proxy and scopes
    McpProxy with mcp-auth and mcp-authz
    artifact via EventHub
  • needed by agent-manager-service (AMS)
    AMS is control plane of gateway (artifacts, keys, manifest)
  • deployed by agent-manager-provisioner
    Per org-env gateway provisioning
    OC ResourceReleaseBinding amp-gateway ResourceType
  • called by HTTPRoute <gw>-gw-route
    Routes gateway hostname to runtime service
    HTTP :22893
  • called by Trait api-configuration
    Routes agent traffic through APG
    HTTPRoute backend weight 100
  • called by External caller DESIGN-ONLY
    Planned: the caller presents a token from an issuer the environment trusts
    HTTP with the exchanged caller token
  • called by scout-agent (OBO reference) DESIGN-ONLY
    Planned: the reference agent calls an MCP proxy with the exchanged token
    HTTP, MCP