Guide
Stop agent spending before the charge lands
The short answer: an agent that loops does not slow down by itself. It keeps paying for calls until a limit outside the agent stops it. 119 of the 656 public cases in our library mention a loop or a runaway. Kill what is still running, pause anything that restarts it, turn off auto-reload, and set a hard limit at the provider. Then reconcile the bill.
For developers running Claude Code, Codex or any agent with an API key or extra usage turned on. A hard limit outside the agent is what stops the next loop before the bill lands.
Stop it now: 4 steps
- 1
Kill what is still running. End the session, then look for child processes and background jobs it started. In one report the session stopped but the processes kept calling the API for about 17 hours (#100546).
- 2
Pause the schedule. Disable cron entries, scheduled tasks and hooks that relaunch the agent. Recurring jobs built as full AI runs are the quiet way a loop comes back.
- 3
Turn off auto-reload. A loop with auto-reload on keeps buying credit. In the largest case we hold, a loop ran for six days, about $9,364 of extra usage (#107256).
- 4
Set a hard limit outside the agent. Set the spend limit at the provider, then check the bill. If you would rather have it set up for you, that is a paid job on Upwork.
What a loop costs
Three public reports show the range. A recursive subagent loop cost $27.60 (#69578). Background processes that outlived the session cost about $2,000 in 17 hours (#100546). A Stop hook that kept returning a block ran for six days, about $9,364 (#107256). The fix is the same in all three: the stop has to live outside the agent.
If the loop was not your fault, appeal it
A loop you started yourself is the hardest case to win. A loop caused by a product defect, a hook that would not stop, or a cap that did not hold is easier to argue. Attach the day-by-day reconciliation: the invoice, the logs showing the loop, and the time you killed it. Use the free appeal template and send it from your own account.
FAQ · Stop agent spending before the charge lands
The session stopped. Is the spending stopped?
Not always. In one report the session stopped at its usage limit, but background processes it had started kept calling the API for about 17 hours, about $2,000 (#100546). Check for processes and scheduled jobs that outlive the session.
What stops a loop fastest?
Kill the process, pause the schedule, and turn off auto-reload, in that order. A client-side budget flag alone is an estimate; the provider spend limit is the hard stop.
What stops a loop for good?
A hard limit outside the agent. Set the spend limit at the provider, then check the bill — the free check shows what the loop already cost. If you would rather have the limit set up for you, that is a paid job on Upwork.
Can I get loop charges back?
Sometimes, rarely in full. Of 656 public cases only 59 report an outcome and 12 of those got any money back. A loop caused by a defect or a cap that did not hold is the strongest case.
Sources
- GitHub issue #107256: loop ran six days, about $9,364
- GitHub issue #100546: background processes kept calling the API for 17 hours, about $2,000
- GitHub issue #69578: uncontrolled recursive subagent loop, $27.60
Case counts on this page come from our research library of 656 verified public AI billing dispute cases (170 curated cases plus 486 collected on 2026-11-24). Counts are keyword counts over the case texts; one case can match more than one pattern.
Fireborn finds and stops surprise charges for free, and the appeal templates are free too. The paid service is a hard spend cap set up for you, sold on Upwork. It does not promise refunds or log in on your behalf. Figures on this page follow the sources cited. Last verified: 2026-11-27. By Fireborn (6hn68).