Guides

Cost control for AI agents: caps that actually stop spend

By . Published . 5 minute read.

The short answer

Seat licences cap themselves; the runaway risk is in usage billing for coding agents, API keys and extra credits. Set hard limits at company, group and person level, alert at 50, 80 and 100 per cent, decide in advance what happens when a cap trips, and review cost per task every month.

A per-seat AI licence costs the same whether it is used or not. The bills that surprise people come from usage: coding agents working past their seat allowance, API keys used by scripts and agents, and extra usage credits switched on to “keep people working”. A looping agent can spend a month’s budget in a night. The fix is a hard cap at every level that can carry spend, an alert before it trips, and a decision, made in advance, about what stops when it does.

Why agents spend differently

A chat assistant answers one question at a time. An agent takes many steps to finish one task. IBM’s guide to agent spend explains why: “an agent might carry context from one step to another, retrieve additional information or include detailed tool instructions in its prompts. As a result, a single business task can involve many model interactions and a higher token count than the initial request would imply” (IBM, 10 September 2026).

The security world has a name for the worst case. OWASP’s Top 10 for LLM applications lists “Unbounded Consumption”, where an application “allows users to conduct excessive and uncontrolled inferences, leading to risks such as denial of service (DoS), economic losses, model theft, and service degradation”. One of its example scenarios is an attacker exploiting “the pay-per-use model of cloud-based AI services, causing unsustainable costs” (OWASP). Among its mitigations is a simple one: “Apply rate limiting and user quotas”.

You do not need an attacker for this to happen. A badly written loop, a stuck retry or an agent given a far bigger task than intended will do it.

What normal looks like

Before you set a cap, you need a baseline. Anthropic publishes one for Claude Code: “Across enterprise deployments, the average cost is around $13 per developer per active day and $150-250 per developer per month, with costs remaining below $30 per active day for 90% of users.” It also advises starting “with a small pilot group” to establish your own baseline before wider rollout (Claude Code documentation). Treat a vendor’s average as a starting point, not a budget: your codebase, models and habits will differ.

Where the caps live

The controls depend on how people reach the tool. Using Claude as the worked example, because its documentation sets this out clearly:

  • Team and Enterprise plans. “The seat allowance is the default ceiling.” To let people continue past it, you turn on usage credits “and set spend limits at the organization, group, or individual member level”. A spend report shows estimated spend per user and per model, “updated daily” (Claude Code documentation).
  • API organisations (the Console). Claude Code spend is managed “through workspaces. You can set workspace spend limits and view cost and usage reporting in the Console” (Claude Code documentation). The organisation also has a monthly spend limit, which you can set below your tier’s cap (Claude API documentation).
  • When the limit is reached. On the API, “API usage pauses until 00:00 UTC on the first day of the next month, unless you request a higher limit sooner”, and requests return an error (Claude API documentation). That is what a hard cap means: work stops. Plan for it.

Other vendors have their own settings and names. Check each tool your company pays for by usage, and write down where its cap is set and who can change it.

Five rules for caps that work

These are the checks behind control AG8 in the Standard published on this site.

  1. Cap every level that can spend. A company-wide cap stops a disaster; a per-person or per-group cap stops one runaway agent eating everyone else’s budget. Use both.
  2. Alert before the cap, not at it. Send alerts at 50%, 80% and 100% to a named person who will read them, not to a shared inbox.
  3. Decide in advance what happens when a cap trips. Who can raise it, how quickly, and on whose approval. A cap that anyone can lift with one click in the middle of the night is a suggestion.
  4. Test it. Trigger a test alert and confirm the named person received it. Settings that are never tested are assumptions.
  5. Review cost per task, not just the total. IBM argues that “measures such as cost per task and steps per task can provide a clearer view of efficiency than price per token alone” (IBM). A monthly report that names waste, such as idle seats, runaway runs and oversized models used for small jobs, is what keeps the total down (MO5).

How I run my own agents

I run a small company of AI agents every day, so these rules are not theory for me. Spend there is capped by two always-on services: one reads the real subscription usage meter, and one prices usage in dollars. When a hard limit trips, the whole agent company is paused and any work in flight stops, after a note is filed that explains why. There are two services because the platform’s own budget control cannot see subscription billing, which is a gap worth checking in your own tools.

A second guard checks each job before an agent hands it on, and warns or blocks when a simple job is about to be sent to a larger, more expensive agent than it needs. Neither guard is clever. They are hard limits that fire whatever the agent “thinks”, which is the point.

Frequently asked questions

Do per-seat licences need caps?

A seat billed at a fixed price cannot run away. Its waste is a seat nobody uses, which a quarterly seat review catches (AC8). Caps matter wherever any part of the tool is billed by usage, including extra credits added to seat plans.

Will a cap stop people working?

Yes, if it trips, and that is the trade. Set the levels from a measured baseline, alert early, and agree who can raise a cap quickly for a real need. Stopping a runaway agent at 2am is the reason the cap exists.

Who should own AI spend?

One named person, usually the AI owner or the IT lead, with the finance team receiving the monthly report. Spread across teams, nobody notices the slow climb.

What about agents built on API keys by individual developers?

Each agent should have its own key with its own limits, stored in a secrets manager, never a person’s admin login (AG7). A shared key with no cap is the most common way a small experiment becomes a large bill.

Sources

All pages were read on 1 December 2026.

  1. IBM, on AI agent token spend management, 10 September 2026: https://www.ibm.com/think/insights/ai-agent-token-spend-management
  2. OWASP Gen AI Security Project, LLM10:2025 Unbounded Consumption: https://genai.owasp.org/llmrisk/llm102025-unbounded-consumption/
  3. Claude Code documentation, managing costs (page updated 30 November 2026): https://code.claude.com/docs/en/costs
  4. Claude API documentation, rate limits and spend limits: https://docs.claude.com/en/api/rate-limits
  5. The author’s own agent organisation and guard rails: see the Proof page for what they do and do not show.