The Two Layers
A request is checked against workspace budgets first. If it passes, OpenRouter checks all applicable guardrail budgets. Each guardrail budget is enforced independently; the first limit reached blocks the request.
For example: an engineer with a
$100/week member guardrail in a workspace with a $5,000/month workspace budget can spend up to $100/week individually, but the whole team stops at $5,000/month regardless of individual consumption.
Reference docs:
Set a Maximum on the Workspace Default Guardrail
Each workspace has a default guardrail that applies to all traffic hitting the workspace. It is the first guardrail checked for every request. The workspace default guardrail is the right place for model allowlists, provider allowlists, ZDR enforcement, and data-region restrictions. It can also carry the highest per-member or per-key budget that applies to everyone in the workspace. The default guardrail is checked before any additional guardrail. Treat its budget as the maximum spend for a member or key. A member assigned to a$500/week guardrail is still blocked if the default guardrail allows only $100/week.
Recommended structure:
- Put model, provider, privacy, and region policy on the workspace default guardrail.
- Set the default guardrail budget to the highest per-member or per-key limit you want to allow.
- Use a separate workspace budget for the pooled team cap and the final emergency stop.
- Create additional guardrails with lower budgets for teams, roles, or individual users.
- Assign each person to one additional tier when they need a lower limit. Remove the additional assignment when they need the default maximum.
- Workspace budget: the pooled limit for the whole workspace. Use it as the “everything is on fire, shut it down” limit for lost keys, runaway agents, or an unexpectedly large workload.
- Default guardrail: the highest per-member or per-key limit, plus the workspace-wide model and provider policy. Use it as the “this user or key is on fire, shut it down” limit.
- Additional guardrails: lower per-member or per-key tiers for teams, roles, or individuals.
Tiered Member Budgets Pattern
When you need different spend limits per user, create reusable tier guardrails and assign them to members individually. Keep the highest limit on the workspace default guardrail; use additional guardrails for lower tiers.- A member guardrail aggregates usage across all eligible org-owned keys that member has created. A single engineer using multiple keys still shares the same member budget.
- Usage counts toward the guardrail reset window (daily, weekly, monthly). There is no manual reset, only the configured interval rollover.
- Raising a member guardrail limit does not reset its counter. It changes the threshold; the member is unblocked only if their accumulated usage is below the new limit.
Budget Attribution and Key Ownership
Budget enforcement follows the key creator, not the person using the key. This is the single most common source of budget confusion.- When an org member creates an API key, that key spend is attributed to that member guardrail budget.
- When an admin creates a workspace-owned key (system key with no
creator_user_id), it does not resolve to any member guardrail. These keys must use a direct key guardrail assignment or the workspace default guardrail budget if they need a limit. - Direct key guardrail assignments create an independent per-key budget check in addition to any member-level checks. A single key can have its own guardrail, but only one guardrail can be directly assigned to a key at a time.
- A shared admin-owned key used by an entire team draws against the admin member budget, not against each user who calls it. For per-person enforcement, each person needs their own key.
- A workspace-owned key with no creator is unattributed at the member level. Assign a key guardrail to it if it needs a budget.
- When a member creates a new key to bypass a rate limit, that key still counts toward the same member guardrail budget. A new key does not reset the member-level counter.
BYOK and Budget Accounting
By default, guardrail budgets count only OpenRouter credit spend. If your organization uses Bring Your Own Keys (BYOK), toggle Include BYOK spend on the guardrail to also count BYOK inference toward the same limit. A few caveats:- BYOK spend uses OpenRouter’s recorded inference-cost value for each request, not necessarily the amount your provider invoices you. A guardrail budget of
$500/monthwith BYOK spend enabled counts that recorded value toward the limit. - The workspace-level Include BYOK spend toggle applies the same recorded BYOK usage to workspace budget checks.
- Enabling the toggle on a workspace budget is independent from enabling it on any guardrail. Set both separately if you want both layers to count BYOK spend.