Skip to content
Docs
Request access

Budgets

Available

Reserve, call, settle, and the hard stop For every model call the engine reserves the worst case, makes the call, then settles the actual cost and releases the rest. If a budget cannot take the reservation the task is blocked; with no applicable budget the call is refused. Reserve the worst caseprompt tokens × input price+ maximum output tokens× output price Make the call Settlethe actual cost;the rest is released a budget cannot take the reservation no applicable budget Hard stopthe task is blocked and a human decides Call refuseddefault deny Reserve the worst caseprompt tokens × input price+ maximum output tokens× output price Make the call Settlethe actual cost;the rest is released a budget cannot take the reservation Hard stopthe task is blocked and a human decides no applicable budget Call refuseddefault deny
Every model call: reserve, call, settle. A reservation that does not fit stops the work before the call is made.
Diagram as text
  1. Reserve the worst case: prompt tokens times the input price plus the maximum output tokens times the output price.
  2. Make the call.
  3. Settle the actual cost and release the rest.
  4. If any applicable budget cannot take the reservation: a hard stop. The task is blocked and a human decides.
  5. If no budget applies: the call is refused (default deny).

A budget caps spending for one scope: a run, task, agent, team (an agent’s subtree) or the whole org. A limit is an amount in a currency (USD only for now) and is always a Decimal, never a float.

For every model call the engine:

  1. Reserves the worst case: prompt tokens times the input price plus the maximum output tokens times the output price.
  2. Makes the call.
  3. Settles the actual cost and releases the rest.

If any applicable budget cannot take the reservation, it is a hard stop: the task is blocked and a human decides. A call with no applicable budget is refused (default deny). Going over is never silent.

A budget can have a window: none, day or month (UTC calendar windows). on_breach says what happens at the next window after a breach: reset or hold (a human must lift it). Lifting a block needs a human and a reason, and is recorded.

Prices are versioned data with a source, never hard-coded. Each price has an effective date, rates per million tokens, and where the number came from. An unknown price is recorded as unknown and the call is blocked, never guessed.

A team can allow an unknown model with a price override: a provisional price per million input and output tokens, who set it and why. Both rates are required so budgets can still stop. Each use is a ledger event. See Price overrides.

A real (non-fake) run must state the data class (--data synthetic) and the cap you accept (--confirm-cap USD). The run budget is the hard stop.

Was this page helpful?