Skip to main content

Gateway artifacts

You're reading AI Gateway 2026.10.0. The newest release is 1.2.0. Go to the newest release

You deploy four kinds of resource on the AI Gateway, and a request passes through one or two of them on its way upstream.

An LlmProvider holds the connection to one AI backend service. An LlmProxy exposes that connection at a URL of your own and names the provider it consumes in provider.id; the gateway rejects a proxy whose provider.id doesn't match a deployed provider. An Mcp proxy routes Model Context Protocol traffic to an MCP server directly, so it names no provider at all. An Agent routes Agent2Agent (A2A) traffic to an agent, and also serves that agent's Agent Card.

How LLM providers and LLM proxies differ​

The split matters because the two LLM artifacts hold different things, and are usually deployed by different people:

LlmProviderLlmProxy
CountOne per upstream serviceMany on top of one provider
HoldsThe provider template, the upstream URL, the credentials, and accessControlA URL context, a provider.id, and its own policies
Deployed byPlatform administrators, who hold the upstream credentialsAI developers, who build one endpoint per application

Deploy a provider once for each backend service you connect. Deploy a proxy for each application that needs its own URL, its own policies, or both. Several proxies consuming one provider is the ordinary case rather than the exception.

Policy inheritance from provider to proxy​

A request through an LlmProxy runs the proxy's policy chain first, then the provider's. Some settings are therefore available on both artifacts, and some belong to only one:

SettingWhere you can set it
Upstream credentialsProvider only
accessControl, which decides the endpoints the provider exposesProvider only
GuardrailsEither, and both chains run
Token limits and cost limitsEither, and both chains run
Client authenticationEither, and both chains run

A limit set on the provider applies to every proxy that consumes it, so it caps the total. A limit set on one proxy caps only that proxy's traffic. Set both when one application must be held to a share of a budget the provider caps overall.

For the phase-by-phase order, and how the two chains reverse on the response path, see Guardrail execution order.

In this section​

PageWhat it covers
LLM providerConnect the AI Gateway to an LLM backend: what an LLM Provider holds, who configures it, and a guide for every provider template it ships.
LLM proxyExpose an LLM provider through an LLM proxy and deploy one: its own URL context, per-application policies, and the provider rules it inherits.
MCP proxyRoute Model Context Protocol traffic through the AI Gateway with an MCP proxy, then deploy one and connect an MCP client to it.
Agent governanceFront an Agent2Agent agent with an Agent: protocol bindings, Agent Card serving, and per-operation policies.
  • How it works — where these artifacts sit in the request path.
  • Routing — put one proxy in front of several providers or models.
  • MCP governance — the policies that attach to an Mcp proxy.

Was this page helpful?