# Gateway

> The gateway stands in front of your APIs and MCP servers and refuses every call the realm's policies don't allow, with no change to your code.

The gateway is a proxy you run in front of an API or an MCP server. Every request passes through it first: it checks
the caller's token, refuses anything the realm has revoked, decides the request against your policies, and forwards
only what they allow. Your API needs no change. It sees only allowed requests, and reads who is calling from a header
the gateway sets. A stopped agent, an app a user took back, or a revoked token is refused at your API within seconds,
and you change who may do what by changing policies in the realm, not code in the API.

<Aside type="caution" title="The gateway's image isn't published yet">
  Ask your Cvyūh contact for the gateway's container image. Everything in this docset works once you run it. What the
  realm offers your own enforcement points, [Decisions](/gateway/decisions/) and the
  [revocation feed](/gateway/revocation/revocation-feed/), needs no image and is available today.
</Aside>

The one idea to read the rest by: **the realm decides, the gateway enforces.** The gateway is an *enforcement point*:
it holds its own copy of the realm's keys, policies and revocations, decides each request in process, and asks the
realm only what a token can't settle. If you'd rather build your own enforcement point, it can ask the realm for each
decision or decide locally the way the gateway does. All of them read the same policies by the same rules, so they
agree.

## What you can do

<CardGrid>
  <LinkCard title="Protect APIs" description="Run the gateway, what callers see when refused, bound tokens and token swap." href="/gateway/protect-apis/" />
  <LinkCard title="MCP servers" description="Allow or refuse each MCP tool, resource and prompt by name." href="/gateway/mcp-servers/" />
  <LinkCard title="Revocation" description="What can be revoked, how fast each kind of API stops accepting it, and the revocation feed." href="/gateway/revocation/" />
  <LinkCard title="Guardrails" description="Shorter-lived tokens and owner approval for riskier agents." href="/gateway/guardrails/" />
  <LinkCard title="Decisions" description="Your own enforcement point: ask the realm for each decision, or decide locally." href="/gateway/decisions/" />
</CardGrid>

## Get started

<LinkCard title="Get started with Gateway" description="Put the gateway in front of an API, and see one call allowed and one refused." href="/gateway/get-started/" />

## Popular guides

- [Open an API to agents](/gateway/guides/open-an-api-to-agents/): agents call your API through the gateway, and a
  stopped agent is refused within seconds.
- [Protect an MCP server](/gateway/guides/protect-an-mcp-server/): one tool allowed, another refused, on the same
  server.
- [Put the gateway behind your proxy](/gateway/guides/put-the-gateway-behind-your-proxy/): your own proxy asks the
  gateway before it forwards.
- [Check a token at your API](/gateway/guides/check-a-token-at-your-api/): ask the realm, or check the signature
  yourself.
- [Revoke a token](/gateway/guides/revoke-a-token/): sign a user out cleanly, or answer a leak.
- [Bind tokens to a key](/workforce-identity/guides/services/bind-tokens-to-a-key/): a copied token is useless at your
  APIs.

Every guide is in [Gateway guides](/gateway/guides/), every setting in
[Gateway configuration](/gateway/configuration/), and every endpoint in the [Gateway API](/gateway/api/). Before you
put the gateway in front of real traffic, read [Run it in production](/gateway/protect-apis/run-in-production/).

## Coming next

A published gateway image, tokens from other issuers verified directly, agent-to-agent calls and the gateway's
decisions on the audit trail ([What's next for protecting APIs](/gateway/protect-apis/whats-next/)); one endpoint for many MCP servers
([What's next for MCP servers](/gateway/mcp-servers/whats-next/)); rate limits and checks on prompts and responses
([What's next for guardrails](/gateway/guardrails/whats-next/)); and revocations pushed the moment they happen
([What's next for revocation](/gateway/revocation/whats-next/)).

What to plan around today, what isn't offered, and every limit and default are in
[Known limitations](/reference/known-limitations/#gateway), [Not offered](/reference/not-offered/#gateway) and
[Limits](/reference/limits/#gateway).
