Budgets
A budget caps an agent's model spend, in dollars, tokens or both. Set it in a policy.
budget: usd: 5.00 tokens: 200000 per: day # turn, day, week, month or total grant: {usd: 2.00} on_exhausted: ask # or denyThe call that crosses the limit runs. The next one needs approval:
This agent has spent $5.02 of $5.00 today. Approve to allow $2.00 more.
- Approving adds
grant.on_exhausted: denyends the turn instead. - An agent's conversations share its budget. An org policy's budget is shared by the org's agents.
- Prices come from the provider, then the model catalog, then
config.yaml'smodels. wardrik lsshows each agent's spend today. Eachmessage.completedandtool_call.completedevent has acost.
Every key and limit rule is in Policies › Budgets.