How guardrail policies work
Pick the right policy type and level for what you want to enforce, and know which admin can change it.
Once your team shares OpenRouter, the same questions come up. How do you stop one runaway agent from spending the month’s budget? How do you keep a contractor’s key off the most expensive models, or make sure legal’s zero data retention or EU-only requirement holds for everyone? How do you stop a customer’s card number or a provider API key from being pasted into a prompt?
Guardrail policies answer those questions for each member and API key in a workspace. A workspace budget caps the workspace as a whole; guardrail policies set what each member and key inside it can do. There are three types, and you create each one on its own:
- Budget, so no one member or key spends more than you planned: a cap in USD that resets daily, weekly, or monthly.
- Model & provider access, so requests only reach models, providers, and regions you’ve approved: allow and block lists, Zero Data Retention per model group, and data regions.
- Content moderation, so risky prompts are caught before they reach a model: prompt injection protection, sensitive info detection, and custom filters.
Because each type is separate, a team can share one model access policy while each member gets their own budget.
Two levels
Policies apply at two levels:
- Workspace-wide policies cover every member and API key in a workspace, and nothing inside the workspace can loosen them. Use them for what every member and key must follow, like a maximum spend for any one member or key, or required ZDR. One workspace-wide policy can cover several workspaces.
- Member and API key policies cover specific people or keys in one workspace, and can only add restrictions on top of workspace-wide ones. Use them for a contractor’s smaller budget or a production key’s shorter model list.
Check your understanding
A workspace-wide policy allows Anthropic and OpenAI models. A developer’s member policy allows Anthropic, OpenAI, and Google. Can that developer call a Google model?
Who can change them
- Org admins manage every policy. Only they can create, edit, or assign workspace-wide policies and the account’s workspace-wide defaults, under Account > Guardrails. They also own the account’s privacy settings under Settings > Privacy, including organization-wide Zero Data Retention.
- Workspace admins create, edit, delete, and assign member and API key policies in the workspaces they administer, on the workspace’s Guardrails page. Its Assignments tab shows each member and key, and lets you pick a different policy for them or remove the default.
Check your understanding
A workspace admin wants every workspace in the account to require ZDR. What can they do?
So far that’s two levels of policy, but a request meets more than that. Your account’s privacy settings sit above every policy, and most members and keys never get a policy assigned by hand: they pick one up from a default. The next lesson follows a single request through every layer, from account settings down to the API key, and shows how they combine and which one decides each setting.
Takeaway
Guardrail policies come in three types (budget, model and provider access, content moderation) and two levels (workspace-wide, and member or API key). A member or key policy can narrow a workspace-wide one but never loosen it. Org admins own workspace-wide policies and privacy settings; workspace admins own member and key policies.
Try it live
OptionalLook at which workspace-wide policies exist today and which workspaces each one covers. If the page still shows single guardrails, Guardrail Policies isn’t on for your account yet.