Skip to main content

What this is for

AI Gateway → Policy is where you author the unified policies your gateways enforce. One policy ties together content safety, routing, limits, budgets, MCP tools and drift detection, scoped to an application (or the organization baseline). It is the enforcement nerve-center — guardrails, model and provider restrictions, budgets and more live in one place per app, instead of being scattered across separate screens.

Options

A policy is authored section by section in the Policy sections rail:

Models & routing

A model pinned in Served by to a provider that is not configured on the gateway has no provider to serve it. The request then goes to the fallback model if one is set, so a typo in Served by can look like a silent model swap. Check Logs for the model that actually answered.

How to configure

1

Open Policy

AI Gateway → Policy. The list shows every policy, the app it’s scoped to, and what it configures.
2

Create or edit a policy

Click New policy, or open an existing one. In General, name it and set its scope and whether it’s enforced.
3

Author each section

Move through the Policy sections rail — Guardrails, Models & routing, MCP tools, Rate limits, Budget and the rest — turning on what this app needs.
4

Save

Save the policy. Scoped policies appear on their app’s row and take effect on the next request each gateway serves.
  • Apps — what a policy is scoped to.
  • Guardrails — the guardrail rules a policy applies.
  • Routing — provider routing and fallback.
  • Budgets — how the policy’s budget behaves.