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

# Limits: agent budgets, run caps, period budgets

> Cap what an agent spends over a day or month, and what a single agent run may spend.

**Authority › Limits** lists the limits on what may be spent. Admins write; finance reads. It has three cards.

## Budgets

This card is a pointer. It shows a count and an **Open budgets** link. Budgets are created and edited in **Spend › Budgets**; see [Budgets](https://docs.tensorcost.com/spend/budgets.md). That includes the per-member kinds: a limit for **Each developer** (see [Coding agents](https://docs.tensorcost.com/developers/coding-agents.md)), a margin floor, **Every customer keeps a margin**, which can step a customer's calls down to a cheaper model at 90 percent of their limit and refuse them at 100 (see [Every customer keeps a margin](https://docs.tensorcost.com/spend/budgets.md#every-customer-keeps-a-margin)), and a fixed amount, **Each customer, a fixed amount**, which refuses at 100 and never steps down (see [Each customer, a fixed amount](https://docs.tensorcost.com/spend/budgets.md#each-customer-a-fixed-amount)).

## Agent budgets

> [!NOTE]
>
> Available on Scale and Enterprise to create or edit. Delete works on any plan.

An agent budget limits what one agent, one team, or everyone together spends over a day or a month, across all their runs. Periods are a UTC day or month.

Fields:

* **Scope.** Workspace budget, Agent (an agent id such as `support-bot`) or Team (a team an admin created).
* **Period.** Daily or monthly.
* **Limit** in USD, at least 0.01.
* **Enforcement.** "Warns at 90%, then blocks at the limit", or "Blocks at the limit".

> [!WARNING]
>
> Agent budgets are saved and shown, but TensorCost doesn't block or warn on them yet. The console says "Not enforced yet in this environment". To have enforcement switched on for your workspace, ask TensorCost. Until then, use a budget in **Spend › Budgets**, which does enforce, or a run cap, which blocks where your workspace has enforcement for that layer.

## Run caps

A run cap limits what one agent run may spend. A run is every call that carries the same workflow id, set by the SDK. The card lists scope, `$X / run` and mode, and **Manage run caps** opens **Activity › Runs**, where you create them (see [Activity and Proof](https://docs.tensorcost.com/activity-and-proof.md)). You can set a workspace-wide default plus per-agent overrides.

| Mode | Behavior |
| - | - |
| Warns callers | At 90 percent, calls get a warning. It never blocks. |
| Blocks at the limit | The run's next call is refused with HTTP 403, where your workspace has enforcement for that layer. Otherwise the cap is recorded and the call goes through. |

Where a run cap is checked:

* **Through the proxy**, before the call is forwarded.
* **In the SDK**, when it runs at `govern` or above. At `observe`, a cap is recorded only. Bedrock and Vertex calls aren't checked before they go out yet.

If the counter store can't be reached, calls go through. Calls made at the same moment on one run can each pass the check before the counter rises, so a cap can be overshot by a few concurrent calls. Calls already in flight finish.

Admin and finance can create, edit and delete run caps. If your plan drops below Scale, existing caps still stop calls, where your workspace has enforcement for that layer, until you remove them.


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