Set a budget
Choose Add budget on the Budgets card, then Edit on a row to change or remove it. The card is on:- Usage for the organization or a project.
- The Usage tab of an agent profile.
- The sidebar of a top-level agent.
{"type": "org"} as the scope, or --scope-type org with the CLI. For an agent profile, use {"type": "profile", "project_id": …, "agent_profile_id": …} (--scope-agent-profile-id), and for an agent, {"type": "agent", "project_id": …, "agent_id": …} (--scope-agent-id). Listing or fetching a budget returns its spend so far in the current interval as usage.
Creating an organization, project, agent profile, or agent also accepts budgets, a list of {"interval": …, "amount_usd": …} created with it, one per interval.
Intervals
Intervals follow UTC:
A call counts toward the interval it started in.
What counts
- Model calls only. Each call counts at the cost described in How costs are calculated. Machines and web search aren’t counted.
- Models need a price. While a budget applies, calls to a model are refused unless it has your own prices, runs through OpenRouter, or has a public list price.
- Models priced at 0 keep running. Budgets never stop a model whose own prices are all 0, such as a self-hosted model, because its calls add no spend.
- Every project counts toward the organization. An organization budget includes spend from all of its projects, including deleted ones.
- Subagents count toward their top-level agent. An agent budget includes the agent’s subagents. A profile budget includes every top-level agent started from the profile and their subagents, even subagents started from a different profile.