Home/Guides/Money

AI agent spend control

An agent that costs three pounds a day is an agent nobody thinks about. The same agent in a retry loop costs three pounds an hour and nobody thinks about that either, until the invoice. This page covers how agent spend actually goes wrong, why alerting is the wrong instrument, and what a cap has to do to be worth having.

Start free trialRead docs

By David SilvaPublished

Direct answer

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

Use a prepaid balance with a hard stop rather than a postpaid account with an alert. An alert tells you money has already been spent; a hard stop ends execution when the balance runs out, so the worst case is a paused agent rather than an invoice. Then watch cost per run, not just the monthly total.

Spend failure modes

FailureWhat it looks likeWhat catches it
Retry loopRun duration and cost spike togetherPer-run cost, a hard cap
Growing contextCost creeps up run over runPer-run cost trend
Oversized payloadsOne agent dominates the billPer-agent breakdown
Fan-outCost tracks an input list sizePer-run cost, a hard cap
Forgotten agentSteady spend, nobody reads outputA quarterly prune

Where agent spend actually goes wrong

Rarely in the place people budget for. Per-call model prices are published and easy to estimate. The overruns come from behaviours that multiply the number of calls, and none of them are visible in a pricing table.

  • Retry loops. A tool fails, the agent retries, the failure is permanent, and the loop is not. Every retry is a paid call.
  • Growing context. An agent that appends to its own history spends more on every run than the run before, on the same work.
  • Oversized tool payloads. One integration that returns a whole document instead of an excerpt can dominate the token bill.
  • Fan-out. An agent that spawns sub-tasks per item quietly multiplies cost by the size of a list you did not check.

Why alerts arrive too late

A spend alert is a report about the past. By the time it fires, the money is gone, and the mechanism that spent it is still running. That is acceptable when a person is watching and can intervene within minutes. It is not acceptable for an agent that runs unattended overnight or across a weekend.

  • Provider billing is usually delayed, so the alert lags the spend.
  • An alert at 3am is read at 9am, and the loop ran for six hours.
  • The useful property is not notification, it is termination.

What a real cap does

Three things, and most spend controls only do the first. It has to be enforced at execution rather than reporting, it has to stop rather than warn, and it has to fail in a way that does not destroy anything.

  • Enforced before the call, so a run that would exceed the balance does not happen.
  • Stops execution outright, rather than continuing with a notification sent.
  • Fails safe: the agent pauses and its environment survives, so nothing is deleted and topping up resumes normal service.

Prepaid versus postpaid, and why it matters here

The billing model is the control. With postpaid, the ceiling is whatever your card allows, and a limit is a promise to bill you differently rather than a mechanism that stops work. With prepaid, the balance is the ceiling and zero is a real floor.

Watch cost per run, not the monthly total

A monthly total hides a step change until the month is nearly over. Cost per run surfaces it immediately: an agent that cost 4p a run all month and costs 60p today has changed behaviour, and you can look at why while it is still a small number.

How Qoren handles spend

Every plan includes a monthly credit grant, and credits cover model usage, web searches, environment hours, and mailboxes from one balance. When credits run out, agents pause rather than continuing to bill: model calls, searches, and further charges stop, while environments and mailboxes stay provisioned so nothing is deleted. Purchased credits never expire, and bring-your-own-key is available on every plan if you would rather pay the provider directly.

Frequently asked questions

Why did my AI agent cost so much more than I estimated?

Almost always because something multiplied the number of calls rather than because a call was expensive. Retries against a permanently failing tool, a context window that grows every run, or a task that fanned out over a longer list than you expected. Per-call pricing is easy to predict; call volume under failure is not.

Is a spending alert enough for an unattended agent?

No. An alert is a report about money already spent, and it arrives while the mechanism that spent it is still running. For an agent running overnight or over a weekend the gap between alert and intervention is the whole problem, so the control has to stop execution rather than describe it.

What happens to my agents when the credits run out on Qoren?

They pause instead of running up a bill. Model calls, web searches, and further environment or mailbox charges stop. Environments and mailboxes stay provisioned, so nothing is deleted and no work is lost. You can top up at any time, and purchased credits never expire, or wait for your plan's monthly grant to reset.

Should I bring my own model key instead?

It depends on which risk you would rather hold. Your own key means you pay the provider directly at their rates with no managed usage cap, which suits high or predictable volume. The managed key means spend is bounded by a balance that stops. Qoren supports bring-your-own-key on every plan, so it is a choice rather than a tier.

How do I estimate what an agent will cost before running it?

Estimate the normal case from the model's published per-token price and your expected run frequency, then assume the abnormal case will be several times that and set the cap accordingly. The estimate is for budgeting; the cap is for the day the estimate is wrong.

Run OpenClaw, Hermes or Codex agents 24/7, without the homework.

Qoren runs the machine, the secrets, the updates and the logs, with a hard cap on credit spend. Start from a template and have an agent working today.