> ## Documentation Index
> Fetch the complete documentation index at: https://docs.barndoor.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Configuring LLM Controls

> Set token and spending budgets, rate limits, and model access policies on traffic flowing through the Barndoor LLM Gateway.

## Overview

Once your LLM Gateway is set up — see [Using the LLM Gateway](https://docs.barndoor.ai/how-tos/use-llm-gateway.md) — the **Controls** group of **LLM Management** is where admins govern how the people, keys, and agents in their organization consume it: capping spend, throttling busy callers, and deciding who may use which models.

![The Controls group of the LLM Management hub showing the Budgets, Rate Limits, and Model Access sections](https://mintcdn.com/barndoor/aNN2f2MGdwSwBA-w/images/llm-controls/01-llm-controls-tabs.gif?s=da6a1211b0fa64eae32f964ccd88d7b9)

The **Controls** group has three sections:

| Section | What it does |
| - | - |
| **Budgets** | Cap the tokens and/or dollars a scope may spend per day, week, or month, optionally narrowed to one provider, provider model, model route, or routing policy. Block requests once exhausted, or warn only. |
| **Rate Limits** | Cap requests per minute and/or tokens per minute over a rolling 60-second window, optionally narrowed the same way. |
| **Model Access** | Allowlist or denylist routes, models, providers, and route groups for a scope, and choose whether models are open by default or require an explicit grant. |

> [!NOTE]
>
> Per-request usage and cost reporting lives separately, under **Reporting → LLM Usage Dashboard** — see [Reading the LLM Usage Dashboard](https://docs.barndoor.ai/how-tos/read-llm-usage-dashboard.md).

## Before You Begin

You'll need:

* A Barndoor account with **admin** privileges.
* An LLM Gateway with at least one provider and one model route — see [Using the LLM Gateway](https://docs.barndoor.ai/how-tos/use-llm-gateway.md).
* Nothing extra for **spending budgets**: Barndoor prices requests from its managed default catalog automatically. Add your own prices under **LLM Management → Model Pricing** only to override those defaults or to price a model the catalog doesn't cover. See [Managing Model Pricing](https://docs.barndoor.ai/how-tos/manage-model-pricing.md).

## Key Concepts

Budgets and rate limits share the same two independent dimensions. Model access policies use the first one.

### Scope: who a rule applies to

| Scope | Applies to |
| - | - |
| **Organization** | Every request in the organization. |
| **Group** | Callers in an identity-provider group. |
| **Role** | Callers holding an identity-provider role. |
| **User** | A person, through any of their API keys. |
| **API Key** | Requests authenticated with a particular key. |
| **AI Agent** | Requests made with an API key bound to an AI agent. Keys not bound to an agent never match. |

For every scope except **Organization** you can pick one specific entity, or leave the picker on **All users** / **All groups** / etc. Leaving it blank does **not** create one shared pot:

* **User, API Key, AI Agent** left blank: *each* user, key, or agent gets their own allowance equal to the limits you set.
* **Group, Role** left blank: each group or role gets one allowance, **shared by everyone in it**.

A **User** budget or rate limit left on *All users* can additionally be narrowed with **Limit to group**. Every member of that group then gets their own allowance, and anyone who joins the group picks it up on their next request with no admin action. Compare this with a **Group** scope, which pools one allowance across all members.

### Target: what a rule counts

By default a budget or rate limit counts **All targets**. Set a **Target** to count only matching traffic:

| Target | Counts only… |
| - | - |
| **All targets** *(default)* | Everything in scope. |
| **LLM Provider** | Requests served by one provider connection. Optionally pick an **Upstream model** to count only that model on that provider (leave it blank for the entire provider). |
| **Model Route or Routing Policy** | Requests whose `model` field names this route or routing policy. |

**Scope and Target combine**: a rule scoped to *User: Ada* with Target *LLM Provider: OpenAI* counts only Ada's traffic that OpenAI serves.

> [!NOTE]
>
> A **Model Route or Routing Policy** target matches the name the caller sent in `model` — before the gateway routes it — not the model it ended up on. A routing policy target therefore counts every request for that policy, pooled across all of its slots. To cap a specific underlying model regardless of which route reached it, target **LLM Provider** with an **Upstream model** instead.

> [!NOTE]
>
> Routing policies appear in the target picker only when your organization has routing policies enabled. That feature may not be enabled for your organization yet — contact Barndoor. See [Routing Policies](https://docs.barndoor.ai/how-tos/llm-routing-policies.md).

## How Limits Compose

Governance runs on `/v1/chat/completions`, `/v1/completions`, `/v1/embeddings`, `/v1/responses`, and `/v1/messages`. (`/v1/models` and `/v1/messages/count_tokens` are not metered.) Checks run in a fixed order; the first denial stops the request.

Inbound requestEvery request1**API-key auth**The `bd-…` key is valid, active, and not revoked401

2**Rate limits with no Target**Requests and tokens per window429

3**Budgets with no Target**Token budgets, then spending budgets429

4**Model resolution**The model maps to a route or provider model404

5**Model access policies**Allowlists and denylists for this caller403 · 503For each route in the plan6**Rate limits with a Target**Matching routes are droppedDrop route

7**Blocking budgets with a Target**Matching routes are droppedDrop route

Forward**Send to the first remaining route**Usage is recorded from the tokens the provider reports429 if none left4xx Request refusedDrop route Route skipped, others still tried

Things worth knowing about this chain:

* **Usage is recorded after the upstream responds**, from the token counts the provider reports. Tokens counted are input (including cache reads and cache writes) plus output (which includes reasoning tokens). The pre-check enforces the limit; the recording keeps the counter accurate.
* **Every applicable rule is checked, and the most restrictive result wins.** A user covered by an org budget and a user budget is checked against both, and both are debited.
* **A more specific rule overrides a broader one of the same scope type and target.** For example, a *User: Ada* budget replaces the *All users* budget for Ada alone, and a **Limit to group** budget replaces the *All users* budget for that group's members. This lets you *raise* one person's or one group's allowance above the default. Rules of different scope types (say, Organization and User) don't override each other — both apply.
* **Rules with a Target fail over instead of hard-blocking.** When a targeted budget or rate limit is exhausted, the gateway removes just the matching routes from the request's route plan and tries the remaining ones. The caller sees a `429` only when every eligible route is blocked. See [Failover, Cooldowns, and Route Health](https://docs.barndoor.ai/how-tos/llm-gateway-failover-and-cooldowns.md).
* **Controls fail open on a transient outage.** If the usage store can't be reached within 2 seconds, budgets and rate limits are skipped for that request rather than blocking live traffic. Model access is the exception — see [Model Access](#model-access).

***

## Budgets

Budgets cap how much a scope may consume in a calendar period. A budget can cap **tokens**, **spending**, or **both** — whichever limit is hit first triggers the action.

![LLM Budgets section listing budgets with token and spending usage bars](https://mintcdn.com/barndoor/pezu-dQLTMUCjAX8/images/llm-controls/02-budgets-list.png?fit=max\&auto=format\&n=pezu-dQLTMUCjAX8\&q=85\&s=df81f81f427e51e2d50a870daa25cf8f)

The **LLM Budgets** list shows each budget's **Usage** (a TOKENS and/or COST bar), **Status**, **Period**, **Resets in**, **On exhaust**, **Created**, **Last Updated**, and an **Enabled** toggle. Usage refreshes about every 10 seconds. You can search by name, scope, target, or period, and sort by any header; the default sort is **Usage**, highest first, so budgets closest to exhaustion float to the top.

* **Status** shows an amber `NN%` pill once usage crosses one of the budget's alert thresholds, and a red **Exhausted** pill at 100%.
* **Per-member budgets** (a blank entity at any scope other than Organization) have no single usage figure. Their row reads **Per member — expand for usage**; click the chevron at the left of the row to see each member's usage and breach status.

### Creating a budget

**1. Open LLM Management → Budgets and click Create Budget**

**2. Name, period, and scope**

* **Name** — shown in the denial message callers receive and in alerts, so make it recognizable (for example `Engineering monthly`).
* **Period** — **Daily**, **Weekly**, or **Monthly** (default).
* **Scope** — see [Scope](#scope-who-a-rule-applies-to). Pick an entity, or leave it on *All …* for per-member allowances. For a **User** scope left on *All users*, optionally set **Limit to group**.

**3. Action on Exhaust and alerts**

* **Action on Exhaust** — **Block Requests** (default) returns `429` once the limit is reached. **Warn Only** keeps serving requests and only raises alerts.
* **Alert Thresholds (%)** — comma-separated percentages of the limit at which to raise an alert, for example `80, 90` (the default). Leave blank for none.

**4. Target (optional)**

Leave on **All targets**, or narrow the budget as described in [Target](#target-what-a-rule-counts). Only **Block** budgets remove targeted routes; a **Warn Only** budget with a Target only alerts.

**5. Budget type and limits**

* **Budget Type** — **Tokens Only**, **Spending (\$) Only** (default), or **Both (first hit)**.
* **Token Limit** — total tokens allowed in the period.
* **Spending Limit (\$)** — a USD cap, costed from [model pricing](https://docs.barndoor.ai/how-tos/manage-model-pricing.md).
* **Reason for change (optional)** — a note recorded in the audit trail.

**6. Click Create**

![Create Budget dialog with name, period, scope, action, target, and limits filled in](https://mintcdn.com/barndoor/pezu-dQLTMUCjAX8/images/llm-controls/03-create-budget_v2.png?fit=max\&auto=format\&n=pezu-dQLTMUCjAX8\&q=85\&s=9031126dee4023fd94794708eadf5a40)

When editing a budget you can change its name, period, action, budget type, limits, and thresholds. **Scope and Target can't be changed** after creation — delete the budget and create a new one.

> [!WARNING]
>
> A **spending** limit on a budget targeted at a provider whose **Calculate token cost** setting is off never fills up, because that provider's requests are recorded at \$0. The dialog warns you when this applies; use a token limit instead.

### How budgets are counted and reset

* **Tokens** — input tokens (including cache reads and writes) plus output tokens, as reported by the provider.
* **Spending** — the request's cost from [Model Pricing](https://docs.barndoor.ai/how-tos/manage-model-pricing.md), including cache and long-context rates. Requests that cost \$0 (unpriced models, providers that don't calculate token cost) don't move a spending counter.
* **Reset** — every period boundary is **UTC**, with no per-organization override: **Daily** at 00:00 UTC, **Weekly** on Monday at 00:00 UTC, **Monthly** on the 1st at 00:00 UTC. The **Resets in** column shows the countdown, and its tooltip gives the exact UTC instant.

### Alerts

Barndoor raises admin alerts from each budget's own thresholds:

* **Threshold alert** (warning) — when usage crosses one of the configured percentages.
* **Exhausted alert** (critical) — on a **Block Requests** budget, as soon as the request that crosses 100% completes. That request is still allowed to finish; the next one is blocked.

Token and spending limits alert separately. Each alert is sent at most once per day per budget and threshold, and on a per-member budget, once per member, naming the member. Alerts link straight to the budget in the list (and open the member's row on a per-member budget).

### When a caller hits a budget

A **Block Requests** budget with no Target returns:

```http theme={null}
HTTP/1.1 429 Too Many Requests
content-type: application/json
```

```json theme={null}
{
  "error": {
    "message": "Token monthly budget exhausted (budget: Engineering monthly) (100% used: 1001234 / 1000000 tokens).",
    "type": "budget_exhausted",
    "code": null
  }
}
```

A spending budget reads `Spending monthly budget exhausted (budget: Engineering monthly) (100% used).`

When a budget **with a Target** has removed every eligible route, the `429` has the same `type` and a message naming each blocked route, for example:

```text theme={null}
All routes for model 'claude-sonnet' are blocked by exhausted budgets: Anthropic cap (token budget on Anthropic/claude-sonnet-5-5, 100% used)
```

> [!NOTE]
>
> `tokens_used` is often slightly **above** the limit in the message. The gateway checks the counter before forwarding and debits actual usage after the provider responds, so the request that crosses the limit finishes and the next one is denied. The percentage is rounded, so 1,001,234 / 1,000,000 prints as `100%`.

> [!TIP]
>
> Tokens give predictability; spending tracks dollars across models with different prices. **Both (first hit)** is the safest configuration: the token cap absorbs a price change, and the spending cap catches an expensive model nobody noticed.

***

## Rate Limits

Rate limits cap throughput on a **rolling 60-second window**. Use them to smooth bursts and stop one noisy caller or runaway loop from crowding out everyone else. (Use budgets to control total consumption over a day, week, or month.)

![LLM Rate Limits section listing policies with live RPM and TPM usage](https://mintcdn.com/barndoor/pezu-dQLTMUCjAX8/images/llm-controls/04-rate-limits-list.png?fit=max\&auto=format\&n=pezu-dQLTMUCjAX8\&q=85\&s=e8912ba2414c4028cee532feedaed613)

The **LLM Rate Limits** list shows **Live (60s)** usage, **Scope**, **Req/min**, **Tokens/min**, **Traffic**, **Last Updated**, and **Enabled**, refreshed about every 10 seconds. The default sort is **Live (60s)**, so policies closest to their limit surface first. A policy that gives each caller their own window (a blank entity) has a chevron to expand per-caller usage.

### Creating a rate limit

**1. Open LLM Management → Rate Limits and click Create Policy**

**2. Name and scope**

* **Name** — appears in the denial message.
* **Scope** — see [Scope](#scope-who-a-rule-applies-to), including **Limit to group** for a **User** scope left on *All users*.

**3. Target (optional)**

Leave on **All targets**, or narrow the policy as described in [Target](#target-what-a-rule-counts). While a targeted limit is exceeded, only the matching routes stop serving.

**4. Limits**

Set **Requests / min**, **Tokens / min**, or both. At least one is required.

**5. Click Create**

![Create Rate Limit Policy dialog with name, scope, target, and limits](https://mintcdn.com/barndoor/pezu-dQLTMUCjAX8/images/llm-controls/05-create-rate-limit.png?fit=max\&auto=format\&n=pezu-dQLTMUCjAX8\&q=85\&s=2a20b5941f94d8fc768987510395b5d5)

Unlike budgets, a rate limit's scope and target **can** be edited later. (The one exception: a policy using **Limit to group** has its scope locked.)

> [!NOTE]
>
> Older policies may show a scope of **Model** or **LLM Provider**. Those scopes never enforced correctly, and the edit dialog says so. Recreate them with the identity as **Scope** and the model route or provider as **Target**.

### When a caller hits the limit

```http theme={null}
HTTP/1.1 429 Too Many Requests
retry-after: 60
content-type: application/json
```

```json theme={null}
{
  "error": {
    "message": "Rate limit exceeded (policy: Sales-team rate cap). Try again in 60 seconds.",
    "type": "rate_limit_error",
    "code": null
  }
}
```

A targeted rate limit that blocks every route returns `429` `rate_limit_error` with `Retry-After: 60` and a message like `All routes for model 'gpt-5.5' are blocked by rate limits: …`.

> [!NOTE]
>
> `Retry-After` is always the full window length, 60 seconds: waiting that long is guaranteed to clear the window, though callers often succeed sooner as older requests age out. The OpenAI and Anthropic SDKs honor it automatically.

> [!TIP]
>
> Requests per minute and tokens per minute are enforced independently. A caller under the request cap can still be throttled by the token cap, and vice versa. Token usage is recorded after each response, so a single very large request can overshoot the token limit before the next one is refused.

***

## Model Access

Model access policies decide whether a caller may use a route at all. The section has two parts: an org-wide **posture** and a list of **Model Access Policies**.

![Model Access section with the posture card above the list of allowlist and denylist policies](https://mintcdn.com/barndoor/pezu-dQLTMUCjAX8/images/llm-controls/06-model-access-list.png?fit=max\&auto=format\&n=pezu-dQLTMUCjAX8\&q=85\&s=1d3e9160d043bbe12f17201cccb2a1e7)

### Posture: open or locked down

The card at the top of the section, **Require an explicit grant to use a model**, sets what happens to a route that no policy mentions:

| Posture | Badge | Meaning |
| - | - | - |
| Off *(default)* | **Open** | Any model or route you set up is usable by everyone in the organization unless a policy restricts it. |
| On | **Locked down** | A model is usable only where an allowlist policy grants it. New models and routes are unusable until granted. |

Turning it on asks for confirmation, and warns you if no allowlist exists yet — in that state every request would be denied, including your own.

> [!WARNING]
>
> Allowlists only ever **narrow** access in the Open posture — they never grant anything beyond it. To make "no grant, no access" the rule, switch the posture on.

### Creating a policy

**1. Open LLM Management → Model Access and click Add Policy**

**2. Name, policy type, and scope**

* **Name** — appears in the denial message.
* **Policy Type** — **Allowlist** (only these targets are allowed) or **Denylist** (these targets are blocked).
* **Scope** — Organization, Group, Role, User, API Key, or AI Agent. Leaving the entity blank applies the policy to every entity of that type.

**3. Add targets**

Pick a kind under **Add a target**, choose a value, and click **Add target**. Mix any number of targets:

| Target kind | Matches when… |
| - | - |
| **Model Route or Routing Policy** | The caller's `model` names this route or routing policy (a `provider/` prefix is ignored). |
| **Model** | The route resolves to this underlying model, whichever route name the caller used. |
| **Provider** | The route is served by this provider. |
| **Provider + Model** | This route name is served by this specific provider. |
| **Route Group** | The route belongs to this route group — so routes added to the group later are covered automatically. |

Model, route, and provider + model values accept a trailing `*` wildcard (for example `claude-*`).

**4. Save**

The policy appears in the list. Use its **Enabled** toggle to switch it off without deleting it.

![Create Model Access Policy dialog with a Route Group target added](https://mintcdn.com/barndoor/pezu-dQLTMUCjAX8/images/llm-controls/07-create-model-access.png?fit=max\&auto=format\&n=pezu-dQLTMUCjAX8\&q=85\&s=dbf0943f567146ef59b39a4c4eb98efd)

### How policies combine

Model access has no "more specific overrides broader" rule — every policy whose scope matches the caller is evaluated together:

1. If **any** matching denylist matches the route, the route is denied.
2. Otherwise, if **any** allowlist applies to the caller, at least one of them must grant the route.
3. Otherwise the **posture** decides: allowed when Open, denied when Locked down.

Policies are evaluated per route. If a route name fans out to several providers and only some are denied, the request proceeds on the allowed ones — a denied provider is never used, not even for failover. The caller sees a `403` only when no route survives.

> [!NOTE]
>
> **Provider** targets are deliberately asymmetric. In a **denylist**, a provider covers everything routed to it, including custom route names. In an **allowlist**, it grants only the provider's own models — to grant a custom route name that points at the provider, add it as a **Model Route** or **Provider + Model** target.

### When a caller is denied

```http theme={null}
HTTP/1.1 403 Forbidden
content-type: application/json
```

```json theme={null}
{
  "error": {
    "message": "Model 'claude-opus-5-5' is blocked by access policy: External-models-only",
    "type": "permission_error",
    "code": null
  }
}
```

The message depends on why the route was refused:

| Reason | Message |
| - | - |
| A denylist matched | `Model '<model>' is blocked by access policy: <names>` |
| No applicable allowlist granted it | `Model '<model>' is not allowed by access policy: <names>` |
| Locked-down posture, nothing granted it | `Model '<model>' has not been granted to you. This organization requires an explicit model access grant.` |

> [!NOTE]
>
> Model access **fails closed**. If Barndoor can't read the organization's posture when a decision depends on it, the request is refused with `503` `service_unavailable_error` ("Model access posture for this organization is temporarily unavailable…"), never silently allowed. A matching denylist or granting allowlist is still honored during such an outage.

***

## Governance settings

Three org-wide switches sit alongside the controls. Each takes effect on the next request.

| Setting | Where | Default |
| - | - | - |
| **Require an explicit grant to use a model** | **Model Access** | Off (Open) — see [Posture](#posture-open-or-locked-down). |
| **Require pricing for Model Routes** | **Model Pricing** | Off — see [Managing Model Pricing](https://docs.barndoor.ai/how-tos/manage-model-pricing.md#require-pricing-for-model-routes). |
| **Require requests to use a routing policy** | **Routing Policies** | Off. When on, requests must name a routing policy; naming a model or route directly is refused. Model access, budgets, and rate limits still apply. See [Routing Policies](https://docs.barndoor.ai/how-tos/llm-routing-policies.md); the feature may not be enabled for your organization yet — contact Barndoor. |

***

## What callers see when something is denied

| Response | Triggered by | Example message |
| - | - | - |
| **401** `authentication_error` | Missing, invalid, or revoked API key | `invalid API key` |
| **403** `permission_error` | Model access policy or locked-down posture | `Model 'foo' is not allowed by access policy: Production-only` |
| **404** `not_found_error` | The `model` field doesn't resolve to a route | `model 'foo' not found or not available` |
| **429** `rate_limit_error` | A rate limit (`Retry-After: 60`) | `Rate limit exceeded (policy: Sales-team rate cap). Try again in 60 seconds.` |
| **429** `budget_exhausted` | A **Block Requests** budget | `Token monthly budget exhausted (budget: Engineering monthly) (100% used: 1001234 / 1000000 tokens).` |
| **503** `service_unavailable_error` | Model access posture temporarily unreadable | `Model access posture for this organization is temporarily unavailable, …` |

Denials use the error shape of the endpoint you called, so common LLM SDKs surface them as ordinary errors. OpenAI endpoints use `{ "error": { "message", "type", "code" } }`. `/v1/messages` and `/v1/messages/count_tokens` use Anthropic's envelope for every denial in this table, including the `401`: `{ "type": "error", "error": { "type", "message" } }`.

On `/v1/responses`, the two `429`s also change `type`. Rate-limit and budget denials return `"type": "usage_limit_reached"`. The value in the table (`rate_limit_error` or `budget_exhausted`) moves to `code`, and `resets_at` gives the Unix time (in seconds) when the limit lifts. A budget denial omits `resets_at` when its reset time isn't known. Codex shows the message of a `429` only when its type is `usage_limit_reached`, as "You've hit your usage limit. Try again at …". If your own client calls `/v1/responses`, read `code` to tell the two denials apart:

```json theme={null}
{
  "error": {
    "message": "Token monthly budget exhausted (budget: Engineering monthly) (100% used: 1001234 / 1000000 tokens).",
    "type": "usage_limit_reached",
    "code": "budget_exhausted",
    "resets_at": 1793491200
  }
}
```

***

## Troubleshooting

> [accordion] A user keeps getting 429s — which rule is responsible?
>
> Read `error.message`: it names the rule — `(policy: …)` for a rate limit, `(budget: …)` for a budget, or a list of blocked routes for a targeted rule. Open that rule to check its configuration and live usage. For a per-member rule, expand the row to find the user.

> [accordion] A budget reset later than I expected
>
> Budget periods roll over at **midnight UTC**, not local time: daily at 00:00 UTC, weekly on Monday, monthly on the 1st. The **Resets in** column's tooltip shows the exact UTC instant.

> [accordion] Everyone in a group is sharing one allowance, but I wanted one each
>
> A **Group** scope pools one allowance across all members. To give each member their own, use **Scope: User**, leave it on *All users*, and set **Limit to group** to that group.

> [accordion] An AI Agent budget or rate limit never moves
>
> Agent-scoped rules only match requests made with an API key bound to that agent. Traffic on an unbound key isn't counted.

> [accordion] My model access policy isn't firing
>
> Check the policy's **scope** and that it's **enabled**. Remember that in the Open posture an allowlist only restricts the callers it applies to — everyone else is unaffected. Wildcards must be trailing: `claude-*` works, `*-mini` doesn't.

> [accordion] A spending budget stays at \$0
>
> Either the models being called have no price (neither your rules nor Barndoor's defaults cover them), or the budget targets a provider whose **Calculate token cost** setting is off. See [Managing Model Pricing](https://docs.barndoor.ai/how-tos/manage-model-pricing.md).

> [accordion] I want to know who's close to a budget
>
> Set **Alert Thresholds** (default `80, 90`) to be alerted before the budget blocks anyone. The **Status** column shows breached thresholds at a glance, and **Reporting → LLM Usage Dashboard** shows consumption trends.

## Frequently Asked Questions

> [accordion] When should I use a budget vs a rate limit?
>
> Use a **budget** for total consumption over a long horizon (a team's monthly spend). Use a **rate limit** for short-term load (smoothing bursts, stopping a runaway loop). They compose: a budget for *how much*, a rate limit for *how fast*.

> [accordion] Can I give one user more than the default allowance?
>
> Yes. Create the default as a **User** rule on *All users*, then a second rule for **User: that person** with the same Target and a higher limit. The specific rule replaces the default for that user only. The same works for a group of users via **Limit to group**.

> [accordion] Do controls apply to embeddings?
>
> Yes. Embedding requests count tokens against budgets and rate limits and are subject to model access, like chat requests.

> [accordion] Are warn-only budgets useful?
>
> Yes — they record usage and raise threshold alerts without blocking anyone. A common pattern is to run a budget in **Warn Only** for a period or two to calibrate the limit, then switch it to **Block**.

> [accordion] How can I test a policy without disrupting other users?
>
> Scope it tightly — a single test **User** or a dedicated **API Key** — and call the gateway with that user or key. Widen the scope once you're happy with the behavior.

## Need Help?

Reach out to [support@barndoor.ai](mailto:support@barndoor.ai) with:

* The name of the budget, rate limit, or policy involved.
* The exact `error.message` returned to the caller (if any).
* The scope and target of the rule.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.