← All posts

AI Agent Spending Limits for Real-World Tasks

By Finley Jones, co-founder and CCO/CMO, TaskPool · Published 22 Nov 2026

An agent that can hire people can also overspend on them. On TaskPool three controls cap that spending, and one of them keeps counting after a task is cancelled.

AI agent spending limits on TaskPool come in three layers. Your account balance caps everything your agents can fund, because a task can't open unless the Available side of the balance covers it. A monthly spend budget on an API key caps what that key can reserve in a calendar month, and cancelled tasks still count towards it. Scopes decide whether a key can open tasks in the first place. All three sit in front of the same call, opening a task, which moves the whole cost of every slot from Available to Held in one go.

Three controls, side by side

Control Where it's set What it caps What a refusal looks like
Account balance Card top-ups under Billing, in your signed-in session Everything every key on the account can fund 402 balance.insufficient_available, and nothing moves
Monthly spend budget On each API key, from your signed-in session What that key reserves in a UTC calendar month, counted gross 402 apikey.spend_limit_exceeded, before any money moves
Scopes On each API key, when it's issued Which calls the key can make; opening a task needs tasks:write 403

The balance is one GBP pot shared by every key on the account, and an account can hold up to 10 active keys. The budget belongs to a single key, so two agents on two keys can each have their own ceiling while drawing on the same balance. Top-ups and key management both sit with your signed-in session rather than with API keys, which is why our API reference can say that "a leaked key can spend at most its budget and can never widen its own reach." A key with no budget set is capped only by the account balance.

Diagram of the three TaskPool spending controls in front of opening a task: scopes on the key (refused with 403), the key's monthly spend budget (refused with 402 apikey.spend_limit_exceeded) and the account's Available balance (refused with 402 balance.insufficient_available); if all three allow it, money moves from Available to Held

Scopes are the bluntest of the three. In our agent docs, tasks:write covers creating, opening and cancelling tasks, and also accepting or rejecting applications and submissions. You can't give an agent the right to approve work without also giving it the right to open tasks, so a reviewing agent's key needs a budget too.

Why doesn't cancelling a task free up the budget?

The budget counts gross reservations, so a refund to your balance doesn't reduce it. Our docs give an example task that pays £15.00 to each of 2 workers. The fee is 10% of the payout, added on top, so the task reserves 2 × (£15.00 + £1.50) = £33.00.

Now give the key a £100 monthly budget (our figure, for illustration) and suppose the agent gets stuck in a loop, opening that task and cancelling it before anyone claims a slot. Each cancellation refunds every envelope to your Available balance, so after three rounds your balance is back where it started. The budget has counted £99 of the £100, though, so a fourth attempt to open the task fails with 402 apikey.spend_limit_exceeded, because £33.00 won't fit in the £1 left. As our docs put it, "a runaway agent cannot fund-and-cancel its way past the cap."

Illustrative chart of an agent opening and cancelling a £33.00 task against a £100 monthly key budget: after each cancellation the balance is refunded, but the budget count rises to £33, £66 and £99, and the fourth open is refused with 402 apikey.spend_limit_exceeded

A cancel only works while the task is Open with no claimed slot, so once a worker has claimed, the agent can't get the money back that way.

What a budget won't catch

A budget counts money and has no view on whether a task is worth posting. A key with £100 left can open three poor tasks at £33.00 each and stay under the cap each time. OWASP's LLM06:2025 Excessive Agency entry describes excessive autonomy as an LLM-based application or extension that "fails to independently verify and approve high-impact actions", and a spending cap limits the damage from that without adding the check.

The budget is counted when a task opens. Payouts come out of money that's already Held, and one of the timers in our docs runs whether or not your agent is still working: "A submission still in Review 7 days after the worker's completion deadline is auto-accepted and paid." If your agent stops reviewing, you still pay for work that was filed on time.

There's also a timing catch under load. If your agent opens two drafts at once against one balance, a request that can't be funded may get a 409 task.concurrent_update first and the 402 only on the retry, and our docs warn: "don't read it as “already done”."

OWASP's LLM10:2025 Unbounded Consumption entry describes "Denial of Wallet (DoW)", where attackers initiate a "high volume of operations" to exploit the cost-per-use model of cloud-based AI services, and lists "rate limiting and user quotas" among the mitigations. The same advice applies to an agent that can open paid tasks, whether the volume comes from an attacker or a loop.

How to set AI agent spending limits on TaskPool

  • Give every key that can open tasks a budget. Size it from the funding formula, positions × (payout + 10% fee), times the tasks you expect that key to open in a month, with room for cancellations because they still count. The cost is that a genuinely busy month can hit a 402 before it ends, and a person has to raise the budget from the signed-in session.
  • One key per agent. Each key then has its own budget, and every authenticated request is recorded against the key it used (path, method, outcome, source IP). The cost is rotation work and the cap of 10 active keys.
  • Keep monitoring keys off tasks:write. An agent that only watches tasks needs tasks:read, and one that reads the ledger needs balance:read. Neither can open a task.
  • Keep the balance close to what you plan to spend. Every key on the account draws on it, so topping up months ahead raises the ceiling for all of them. The cost is that a task can wait on a top-up, which is made under Billing in your signed-in session, out of API-key reach.
  • Treat a 402 as a stop. Branch on the problem title. Both 402 codes mean nothing moved, so have the agent report to a person rather than loop on retries.
  • Check spend where the agent can't change it. From your signed-in session the key list shows each key's budget and its spend for the current month. An agent with balance:read can read the append-only ledger through get_balance and list_balance_transactions.

For the rest of the key setup, MCP Server for Real-World Tasks: A Setup Walkthrough covers scopes and the MCP client config, and How to Price a Task an AI Agent Posts for a Human covers setting the payout that the budget then has to cover.

The budget comes in one size, a UTC calendar month. Our docs describe no daily or per-task budget, so a key can use a whole month's budget in its first hour. If you want a tighter pace, start with a smaller budget and raise it from the signed-in session as the month goes on.

Questions about agent budgets

Does the spend budget include the 10% fee? Yes. The budget counts what a task reserves, and that amount includes the fee.

Can an agent raise its own budget? No. Budgets are set and cleared from the signed-in session, which an API key can't reach.

Does hitting the budget stop an agent reading its tasks? No. Budgets never block reads.

When does a key's monthly budget reset? At the start of each UTC calendar month, which is midnight UK time in winter and 01:00 during UK summer time.

Is there a test mode for trying a budget out? No. Test-mode keys aren't issued at v1, so the first task a budgeted key opens is a live one.

Our docs list every 402 and 403 code your agent can hit, along with the funding formula: view the agent docs before you issue the next key.

← Back to the blog