How do you stop an AI agent from running up a bill?

Short answer: To stop an AI agent from running up a bill, give it a spending limit per run and per day, counted from the provider’s records, and keep a limit on the whole account. When Airu Labs ran down a paid tool’s balance in October 2026, the cause was our own AI work sessions, not the scheduled agents, so a limit on the agents alone would have missed it.

  • 0 of 5AI assistants asked how to stop an agent running up a bill mentioned that an agent on a schedule pays for every check, even one that finds no work, though all five gave limits for each run.How it was measured: On November 19, 2026 Airu Labs asked ChatGPT search, Google AI Mode, Perplexity Sonar, Perplexity Sonar Pro and Claude Sonnet 5.5 with search, once each, how to stop an AI agent from running up a big bill. We read every sentence in the five answers about schedules, idle or empty checks, and limits.
  • About 800Paid calls in a single day from our own AI work sessions, on October 2 and again on October 7, 2026, while a day of our scheduled agents’ runs, counted on October 8, cost less than a hundredth of either.How it was measured: Counted from the paid research tool’s own list of calls. The October 2 calls left the wallet we prepay for it nearly empty by October 5, and the October 7 calls came after a top-up. We print counts and shares, not amounts.
  • 720Times an agent that checks every hour wakes up in a 30-day month, and it pays for every one of them, work or no work.How it was measured: 24 checks a day through a 30-day month. In our always-on agent test one check of an empty inbox used about 3,300 to 6,400 tokens, depending on the model, because the agent reads its instructions again every time it wakes.

AI agent cost control comes down to three limits and one habit. An agent pays its AI provider for every step it takes, and it keeps taking steps until something stops it, so the limits go on each run, on each day and on the whole account, and the habit is deciding what the agent does when a limit stops it. AI assistants already give good advice on the first limit. What they leave out is the bill nobody sees, an agent on a schedule paying for every check that finds nothing. Some bills do not come from the agent at all, and our own surprise bill, in October 2026, came from our AI work sessions at the laptop and not from our scheduled agents.

Why do AI agents run up bills?

Because they pay for every step and keep going until something stops them.

An agent works in a loop. It reads its instructions, decides on a step, uses a tool, reads the result and decides again, and Shogo’s guide to agent costs points out that each step sends the instructions and the history so far back to the model. So the bill grows with the number of steps, not the number of jobs. Three things push the number of steps up.

  1. A loop that never finishes, where the agent keeps trying a step that cannot work.
  2. Retries after an error, where each new try is another paid call.
  3. A schedule. An agent that wakes every hour pays for each check, including the many that find no work.

The model multiplies all three. In our always-on agent test six models did the same inbox job, and the cost of a busy run differed by up to about 70 times, mostly because the bigger models charge more for each token, with the Claude models’ caching left off.

Where should the limits go?

On the run, on the day and on the account, because each one catches a different failure.

Limit What it catches Who sets it
Per run One stuck loop, or one run that keeps retrying The builder, in the agent’s code, as a cap on steps and on spending
Per day A schedule that fires too often, or many small runs adding up The builder, counted from the provider’s own records
Per key One agent’s spending, kept apart from everything else on the account You, where the provider allows it, as OpenRouter does
Per account Everything, including people who use the same account You, in the provider’s console

The daily count should come from the provider’s records and not from the agent’s memory. A new run that starts its own count at zero never sees what the runs before it spent, so a daily limit kept inside one run is not a daily limit at all.

If an agent you already run has none of these limits, we can add them, along with what it should do when one stops it. Book a 30-minute call and tell us how often it runs.

Our page on what AI costs to run each month explains how each provider’s account limit works and how it differs from an alert.

Where did our own surprise bill come from?

From our own AI work sessions, not from the agents that run on a schedule.

In early October 2026 the wallet we prepay for our paid research tool ran nearly empty. The tool’s own list of calls showed why. Our AI work sessions at the laptop made about 800 paid calls on October 2, which left the wallet nearly empty by October 5, and after a top-up they made about 800 more on October 7. A day of the scheduled agents’ runs, counted on October 8, cost less than a hundredth of either of those days. A limit on each agent would not have caught it, because no agent did it.

So our scheduled agent that uses the paid research tool now has two stops written into its code, one per run and one for any 24-hour stretch. The count comes from the paid service’s own records, so a new run cannot start the count again, and when the count cannot be read, nothing is bought. The script our work sessions use to call the research tool also refuses paid calls once the whole account has spent a set amount in a 24-hour stretch, though a call typed straight into the tool skips it, and our test harness stops sending calls once a test reaches its cap.

What should an agent do when it hits a limit?

Stop cleanly and tell a person, because a limit shows up as an error.

When an account reaches a provider’s spending limit, the provider answers the agent’s calls with an error. Anthropic’s page says its monthly cap for a usage tier pauses usage until the first day of the next month, and that its own software’s automatic retries fail until then. An agent that treats the error as a passing glitch tries again and again, or stops halfway through a job with nobody knowing.

  1. Never retry a spending error. Retry a dropped connection, never a spending limit.
  2. Save where the job stopped, so it can finish later without starting over.
  3. Tell one person, once, in the place they already look.
  4. When the agent cannot read how much it has spent, it spends nothing.

That last rule is written into the code of our scheduled agent that uses the paid research tool.

What do empty checks cost?

Tokens every time, because an agent pays to find out there is nothing to do.

An agent that checks every hour wakes 720 times in a 30-day month. In our always-on test one check of an empty inbox used about 3,300 tokens on GPT-6 Luna and about 6,400 on Claude Sonnet 5.5, because the agent reads its instructions again each time it wakes. At 3,300 tokens that is about 2.4 million tokens a month for checks that found nothing, and checking four times an hour makes it four times as many.

Two ways to bring it down are checking less often and keeping rarely used text out of the instructions. When we moved a service sheet out of the agent’s instructions and behind a tool it calls when needed, an empty check on GPT-6 Luna fell from about 3,300 tokens to about 1,650. Busy runs used about the same tokens either way, and the same change cost GPT-6 Luna some accuracy, which our page on agent harnesses covers. So test a change like that before you keep it.

What do AI assistants tell owners about agent bills?

Good limits for each run, and nothing about empty checks.

On November 19, 2026 we asked five AI assistants, once each, “How do I stop an AI agent from running up a big bill?” The five were ChatGPT search, Google AI Mode, Perplexity Sonar, Perplexity Sonar Pro and Claude Sonnet 5.5 with search. All five told owners to cap the steps or the spending of each run, which is sound advice. None mentioned that an agent on a schedule pays for every check, including the ones that find no work. This is one answer per assistant on one day, and answers change from day to day.

What should you ask your builder?

Four questions, before the agent runs on its own.

  1. Whose name is the AI account in? It should be yours, so the limits and the bill are yours to see.
  2. What are the limits per run, per day and on the account, and where is each one set?
  3. What does the agent do when a limit stops it?
  4. How often does it wake up, and what does one empty check cost?

If you have no builder to ask, you can ask us. Airu Labs builds custom AI systems for small and mid-size companies. The client owns the code and the accounts it runs on, so the answer to the first question is always the client.

FAQ

Questions people ask.

Does it cost money to use an AI agent?

Yes. Most agents pay their AI provider for every piece of text they send and get back, so a busy agent costs more than an idle one, and an agent on a schedule pays a little every time it checks for work.

Is a spending alert the same as a spending limit?

No. On OpenAI an alert only sends a notice and the agent keeps running, while a spending limit makes its calls fail once it is reached. Set both, and decide ahead of time what the agent does when the limit stops it.

What is a rate limit?

A speed limit, not a money limit. It caps how many calls or tokens an account can use per minute, so an agent under a rate limit can still spend a lot slowly.

Can I put a spending limit on one API key?

On some providers you can. OpenRouter lets you set an optional spending cap on a single key, which stops that key when its cap is used up, even while the account still has credit left.

Why did my AI agent stop halfway through a job?

Check your spending and usage limits first, because a provider stops a capped account by answering its calls with an error. Anthropic’s monthly cap for a usage tier, for example, pauses usage until the first day of the next month.

Sources

  1. Rate limits, Anthropic, 2026-11-19
  2. Spend limits, OpenAI, 2026-11-19
  3. API rate limits, OpenRouter, 2026-11-19
  4. How to Reduce AI Agent Costs: Match the Model to the Task, and Never Get Locked to One (2026), Shogo, 2026-11-19