Guides · Agent security
Agent spending controls and budget limits
The cheapest AI incident to prevent is the runaway spend: an agent in a loop, a misread instruction, or a hijacked tool call quietly converting your budget — or your customers' money — into API calls, orders and refunds. Spending controls are how you decide, in advance and in numbers, the maximum any agent can cost you before a human is involved. This guide shows how to set those numbers so they protect the business without strangling the agent's usefulness.
By the Ingenious AI team · Published 14 November 2026 · Reviewed 14 November 2026
The short answer
Give every agent four spending controls: a per-action cap (the largest single transaction it may make alone), a period budget (the most it may spend per hour or day), a velocity limit (actions per minute, which catches loops), and an approval threshold (the amount above which a human must approve the literal action). Set the numbers from the agent's real job — its 95th-percentile legitimate day, with headroom — and enforce them in a gateway outside the model, so a manipulated agent cannot argue its way past its own limits.
Try it free: Agent Auth Gateway — set per-agent budgets, allowlists and approval queues in the gateway built for exactly this control.
What is agent spending controls?
the financial guardrails placed on an AI agent's ability to spend, pay, refund, order or consume priced resources: caps on single actions, budgets over time, rate limits, and thresholds that trigger human approval. They exist because an agent's spending authority, left undefined, defaults to whatever its credentials allow — which is usually everything — and because money is the easiest agent failure to measure after the fact and the most painful.
Why budgets are a security control, not just finance hygiene
A hijacked or looping agent without limits has unbounded loss: it can refund, purchase or call paid APIs until something external stops it — usually your bank or your provider's invoice. A budget converts that unknown into a number you chose. Security teams sometimes treat spend caps as a finance concern; attackers treat them as the difference between a nuisance and a payday. If your threat model includes injection (it should), then every agent with payment-adjacent tools needs a cap the way every door needs a lock.
The four controls and what each one catches
Per-action caps catch the single big mistake — the $5,000 refund that should have been $50. Period budgets catch slow bleeds — fifty plausible $80 actions that individually look fine. Velocity limits catch loops and bursts — the agent retrying a failing action 400 times an hour. Approval thresholds catch the judgement calls — legitimate-looking actions above the size where a human should look at the literal details. Each control has a failure it owns; a stack with only one of them has three holes shaped exactly like the missing ones.
Setting numbers that protect without stalling
Start from data: run the agent read-only or in shadow mode and measure its real distribution — typical action size, busiest hour, busiest day. Set the per-action cap at roughly the largest legitimate action you have seen, the period budget at the 95th-percentile day plus headroom, and the approval threshold where your own discomfort begins. Numbers set from imagination either strangle the agent (staff route around them) or float so high they never fire (a control that never fires is a rumour). Review the numbers quarterly against actuals; a growing business should see its thresholds deliberately raised, by a person, on a date.
Enforce outside the model
Limits written into a system prompt are suggestions the model can be talked out of. Enforcement belongs in deterministic code — a gateway that mediates the agent's tool calls, checks the caps before execution, and keeps the ledger. The gateway's refusal is not negotiable by conversation, which is the entire point. Log every refusal with the attempted action: a spike in refusals is an early-warning signal of loops, misconfiguration or attack, and it should page a human exactly like any other production anomaly.
Approvals that show the real action
When an action crosses the approval threshold, the approver must see the literal action — recipient, amount, items, account — not the agent's summary of it. Summaries are where manipulation hides: the agent (or the injection steering it) describes the action it wants approved, not necessarily the action queued. Build the queue so approving is one tap on true data, expiry is automatic, and 'approve all' does not exist. An approval flow that trains humans to tap through is worse than none, because it manufactures false assurance.
Your 5-action checklist
- Set all four controls per agent: per-action cap, period budget, velocity limit, approval threshold.
- Derive the numbers from measured legitimate behaviour (shadow mode), not from guesses.
- Enforce limits in a deterministic gateway outside the model; log and alert on every refusal.
- Make approvals display the literal action with expiry and no bulk-approve option.
- Review thresholds quarterly against actual spend and raise them deliberately, never automatically.
Worked example: Coral Cable Supplies
Coral Cable Supplies, a fictional wholesaler, gave its reordering agent a $250 per-action cap, a $1,500 daily budget, and human approval above either. In its third month, a supplier's malformed catalogue feed caused the agent to interpret a case price as a unit price and begin reordering aggressively. The velocity limit tripped first — 60 orders in an hour against a norm of 4 — and the daily budget stopped the run at $1,480 of commitments, every one of them cancellable because fulfilment approval was part of the flow. Without controls, the same loop would have committed roughly $38,000 before the morning report. The post-incident change was small and telling: catalogue-feed changes now require a human confirmation of unit-of-measure before the agent may order from a changed feed — a control on the input, added to the controls on the money.
Frequently asked questions
Won't budgets just block legitimate busy days?
Only if they are set from averages. Set the period budget from your busiest legitimate day plus headroom, and make the breach action an approval request rather than a hard stop where the business allows it. A control that fires rarely and asks a human is usable; one that fires weekly gets disabled.
Should every agent have the same limits?
No — limits should follow the job. A research agent's spend is API calls; a purchasing agent's is purchase orders. Per-agent numbers, derived from per-agent behaviour, are what make the controls both safe and unobtrusive. Uniform limits are a sign nobody measured anything.
What is the difference between a cap and an approval threshold?
A cap is a hard stop: the action cannot happen at all. A threshold is a handoff: the action can happen after a human approves the literal details. Use caps where no legitimate case exists above the line, thresholds where judgement is genuinely needed.
Do spending controls help against prompt injection?
They bound its value. An injected agent that cannot spend more than its caps, cannot send outside its allowlist and needs approval for big actions is a contained problem. Injection defence tries to stop the manipulation; spending controls limit what a successful manipulation can buy — you want both.
Who should set the numbers — engineering or finance?
Both, with engineering measuring and finance owning the risk decision. The numbers encode how much loss the business accepts from one agent on one bad day; that is a business judgement built on engineering data, and it should be revisited like any other risk acceptance.
Related guides and tools
- How to choose a website security scanner
- DMARC setup guide for small businesses
- Website security checklist for small businesses
- AI agent security: a buyer's guide
- How much does a website security audit cost?
- DMARC vs SPF vs DKIM: what each one actually does
- How to stop email spoofing of your domain
- AI chatbot security checklist
- All Ingenious AI guides
- The full Ingenious AI platform suite
- The security suite overview
- Agent Auth Gateway — free tool