BuildNot yet confirmed elsewhere1 publisher3 min readPublished
A $115-an-hour agent loop can drain a $500 monthly hard cap in about four hours
OpenAI, Google and Vercel offer hard spend caps that reject requests, with Anthropic's in early access, a dev.to comparison found. The caps are monthly and enforced with a delay, and the post says none of them stops a single bad hour on its own.
The Engineer · Build desk

Key figures: Google says actual costs on Google Cloud can take more than 24 hours to process. Billing data for Gemini project caps can lag by about 10 minutes. A 10-minute lag at $115 an hour is roughly $19 of additional spend.
| Figure | Value | Note | Claim |
|---|---|---|---|
| Time for Google Cloud actual costs to process, more than | 24 hours | 4 | |
| Gemini project cap lag | 10 minutes, about | 3 | |
| Extra spend in a 10-minute lag, roughly | 19 dollars | at $115 an hour | 23 |
What happened
- OpenAI returns HTTP 429 with a named spend-limit code once a limit is hit, resumes at the monthly reset or when the limit is raised, and says enforcement is not instantaneous.
- Anthropic's monthly limits can be set through the API only in early access, and the post says that route requires contacting your account team.
- Vercel AI Gateway sets budgets at team, project, API key and team member scope, the finest-grained of the vendors the post covers.
Why it matters
- constraint Gemini's billing-account tier cap pauses the service for every linked project until the 1st of next month, so one project's loop stops all of them.
- exposure Gemini project caps are marked experimental and may be exceeded by batch mode and agent sessions, so the workload most likely to loop is the one the cap may miss.
- decision Teams have to build the hour-level control themselves. The post puts a cheap daily check at the tool-call layer, beneath the vendor's monthly cap.
- contradiction The post says enforcement lags in every hard cap, yet its Vercel row describes a check before each request. The excerpt ends before saying whether Vercel's usage data lags.
The $115 figure is a scenario with a condition attached. The agent is in a retry loop on Claude Opus 5.5, and every turn re-sends a 150K-token context uncached [24]. The passage does not include the per-token price or the turn rate behind the number. For it to transfer to your workload, your loop has to send the full context uncached on every turn. A workload that caches its context is outside it.
When a soft alert's threshold is crossed, someone gets an email and requests still go through. Crossing a hard cap's threshold gets an error back instead [14]. In OpenAI's guide, spend alerts are described as not enforcing a cap [18]. An unattended agent produces spend at machine speed, and the alert goes to a human who is asleep [15]. Simon Willison made the same argument on 3 October 2026, according to the post: a soft cap is not enough, and most people would rather get an error than an unexpected $10,000 bill [16].
Take the post's example, a monthly $500 cap. The post says one bad night can eat a large share of it before anyone looks [9]. At $115 an hour the loop reaches $500 in about 4.3 hours [22]. Lag adds to that. Google says billing data for Gemini project caps can trail by about 10 minutes [3], which is roughly $19 of extra spend at the same rate [23]. Google also says actual costs on Google Cloud can take more than 24 hours to process [4].
The scopes differ. OpenAI enforces at organization and project level [19]. Google Cloud's Spend Caps cover one project and one eligible service, and requests already in flight finish and accrue charges [13]. Vercel budgets apply at team, project, API key and team member scope [6]. A team on several providers sets a differently shaped limit in each.
Anthropic's row has the widest gap. The post says Anthropic documents the limit but not the failure behaviour [21]. Google's tier cap also has no documented error code [20]. We think that is the first thing to check, because a retry loop can only stop on an error it recognises. OpenAI's cap returns a named code for each scope [2], so a harness can match it. Where the code is undocumented, the harness is guessing.
AWS is the least settled row. The post calls AWS project spend limits a limited release and could not verify Bedrock-specific behaviour on any official AWS page [25]. It relays Willison quoting AWS that the project is paused for the month, and a Hacker News commenter's report of a deletion warning after 90 days, and says to treat both as unverified [26].
By the post's account, every cell in its table comes from vendor documentation or a source named in the row [17]. The table therefore records what vendors say a cap does, and says little about how one behaves under a loop. In our view a vendor cap is the right ceiling for an unattended agent. It needs a faster control beneath it, because a monthly limit that trips at hour four has already used the whole month's allowance [22].
What to watch
- Anthropic documenting the failure behaviour of its spend limits and moving API-set limits out of early access.
- AWS publishing Bedrock-specific spend limit behaviour on an official page, which would settle the unverified pause and deletion reports.
- Any vendor adding an hourly or daily scope to its hard cap, since every cap in the post is monthly or close to it.
Clarity's read
What the record supports and how the coverage leans. The claims behind it follow.
Reality
- Evidence55
- Adoption
- Insufficient
- Hype gap+15
- Incentives
- Insufficient
- Confidence58
Claim ledger
Ranked by verification strength, evidence, and original report placement.
- [1]
Hard caps exist at OpenAI, Google (Gemini API and Google Cloud), Vercel AI Gateway and, in early access, Anthropic. They are monthly, enforced with a delay, and scoped differently at every vendor.
- [2]
OpenAI's hard limit returns HTTP 429 with organization_spend_limit_exceeded or project_spend_limit_exceeded, resumes when the limit is raised or at the monthly reset, and OpenAI says enforcement is not instantaneous.
- [3]
Google says billing data can lag by about 10 minutes for Gemini project caps.
- [4]
Google says actual costs on Google Cloud can take more than 24 hours to process.
- [5]
Anthropic's monthly organization and workspace limits can be set through the API only in early access, and the post says the API route requires contacting your Anthropic account team.
ReportedSupportedSource: dev.to post, citing Anthropic's spend limits API referenceView cited source - [6]
Vercel AI Gateway offers budgets at team, project, API key and team member scope.
- [7]
The Vercel AI Gateway checks the budget before each request and rejects new ones.
- [8]
The post says enforcement lags in every hard cap on the market today.
- [9]
A monthly $500 cap lets one bad night eat a large share of it before anyone looks.
- [10]
None of the vendor hard caps stop a single bad hour on their own, so the post's five-layer stack puts a cheap daily check at the tool-call layer.
- [11]
The Gemini billing-account tier cap pauses service for all linked projects until the 1st of the next month.
- [12]
Gemini project spend caps are marked experimental, and batch mode and agent sessions may exceed the cap.
- [13]
Google Cloud Spend Caps cover one project and one eligible service, monthly. In-flight requests finish and accrue charges, and the user stays responsible for overage from reporting latency.
- [14]
A soft alert sends an email at a threshold and traffic keeps flowing. A hard cap returns an error once the threshold is crossed.
- [15]
An agent running unattended produces spend at machine speed while the alert goes to a human who is asleep.
- [16]
Simon Willison made the same argument on 3 October 2026: soft caps will not cut it, and most people prefer errors to a surprise $10,000 bill.
- [17]
Every cell in the post's table comes from vendor documentation or a source named in the row; where no statement was found, the cell says not documented.
- [18]
OpenAI's own guide says spend alerts do not enforce a cap, and a hard limit makes affected requests fail.
- [19]
OpenAI offers hard limits at organization and project level via 'Enforce a hard limit'.
- [20]
For the Gemini tier cap, the error code is not documented.
- [21]
Anthropic documents the limit but not the failure behaviour.
- [22]
At about $115 an hour, a loop reaches a $500 cap in roughly 4.3 hours.
- [23]
A 10-minute billing lag at $115 an hour is roughly $19 of additional spend.
- [24]
A coding agent stuck in a retry loop on Claude Opus 5.5 can spend about $115 an hour if every turn re-sends a 150K-token context uncached.
- [25]
AWS project spend limits are described as a limited release, and Bedrock-specific behaviour is not documented in any official AWS page the post's author could verify.
- [26]
Willison quotes AWS that the project is paused for that month; a commenter on the Hacker News thread quotes a deletion warning after 90 days with no action. The post says to treat this as unverified.
ReportedInsufficientSource: dev.to post, citing Willison and a Hacker News commenterView cited source
Sources
1 independent publisher whose own reporting we read for this story.
- dev.toClaude Code Spend Limit: Hard Caps That Stop a Runaway Bill
1 article · October 12, 2026
Topics and entities
Follow any of these and your For You feed starts watching them — no settings page required.
Topics
- LLM API billingFollow
- AI spend controlsFollow
- Coding AgentsFollow