Agent Auth Gateway v1.0

Guides / 9 min read

How to Set AI Agent Spend Caps That Actually Stop Runaway Bills

Published 2026-10-11 · By the Ingenious AI team

The first time an agent loops on a flaky tool and retries two hundred times, the bill teaches a lesson that no dashboard could. Spend caps are how you learn it the cheap way.

A spend cap is a hard number: the maximum dollars an agent may consume in a day, or in a month, before the authorization layer starts refusing new work. Not an alert. Not a report you read Monday morning. A refusal — evaluated on every call, before the cost is incurred.

Caps are per agent, not per account

An account-level ceiling tells you the fleet is expensive. It doesn't tell you which agent is expensive, and it doesn't stop that agent without stopping everything else. Per-agent caps do both:

  • Daily caps bound the blast radius of a single bad day. A research agent that normally spends $0.40/day gets a $3 daily cap. A runaway loop hits the wall in hours, not days.
  • Monthly caps bound the bill. Size them from the daily cap: daily × 31 × a headroom factor of 1.5–2, so one heavy day doesn't kill the month.

Size from observed spend, not from optimism

The sizing method that works in production:

  1. Measure for two weeks with no enforcement — log every call's estimated cost. You need the 95th-percentile daily spend per agent, not the average. Averages hide the days that matter.
  2. Set the daily cap at 3–5× the p95. Tight enough to catch a loop (loops spend 10–100× normal), loose enough that a legitimately busy day passes.
  3. Set the monthly cap at 40–60× the p95 daily. This absorbs variance while still bounding total exposure.

New agents with no history get a deliberately small cap — $5/day is a fine default — and earn headroom as their spend pattern stabilizes.

Alerts are early warnings, not the control

Alert at 80% of each cap. The alert's job is to give you time to investigate or raise the cap deliberately; the cap's job is to fire when you don't. Teams that implement only alerts invariably find that everyone sleeps through the 80% ping on the one night it matters.

Estimate cost at decision time

The gateway can't price a call it hasn't seen. Feed it an estimated_cost with every authorization request — token counts × model price for LLM calls, fixed prices for tool calls — and let the policy layer sum estimates against the cap. Estimates are approximate; the control still works because loops are orders of magnitude off normal, not percentages.

What caps don't do

Caps bound dollars, not damage. A single delete_production_database call costs pennies and is worth more than any bill. That's what action policies and human approvals are for — caps handle the spend, allowlists handle the blast radius.

Sources

  • NIST AI Risk Management Framework (AI RMF 1.0), the voluntary framework for managing AI risk across design, development and use: nist.gov, 2023
  • OWASP Top 10 for Large Language Model Applications, the OWASP GenAI Security Project's risk list for LLM and agent systems: owasp.org, 2025
  • RFC 6749, The OAuth 2.0 Authorization Framework, the IETF standard behind scoped, expiring access tokens: rfc-editor.org, 2012

Frequently asked questions

What is an AI agent spend cap?

A hard number: the maximum dollars an agent may consume in a day, or in a month, before the authorization layer starts refusing new work. Not an alert and not a report — a refusal, evaluated on every call, before the cost is incurred.

Should spend caps be per agent or per account?

Per agent. An account-level ceiling tells you the fleet is expensive; it does not tell you which agent is expensive, and it cannot stop that agent without stopping everything else. Per-agent daily caps bound the blast radius of a single bad day, and monthly caps bound the bill.

How do I size a spend cap?

Measure for two weeks with no enforcement and log every call's estimated cost. Set the daily cap at 3–5× the 95th-percentile daily spend — tight enough to catch a loop, loose enough for a legitimately busy day — and the monthly cap at 40–60× the p95 daily. New agents start small, around $5/day, and earn headroom.

Are spend alerts a substitute for caps?

No. Alert at 80% of each cap so a human has time to investigate or raise the cap deliberately — but the cap is the control that fires when nobody acts on the alert. Teams that implement only alerts find everyone sleeps through the 80% ping on the one night it matters.

What do spend caps not protect against?

Damage that costs almost nothing. A single destructive tool call can cost pennies and be worth more than any bill. Caps handle the spend; action policies, allowlists and human approvals handle the blast radius.

Governing agents in production?

Spend caps, approval queues, policy simulation, burn forecasting, and step-up lockdowns — all built into the gateway. Free tier to start. Or test policies in the playground with no signup.

Share this: X Facebook LinkedIn WhatsApp
All guides The Human-in-the-Loop Approval Queue Pla… →