billflare.

Spending limits · Content tag

Browse content discussing spending limits.

111 matching items

Cases · 19

Durable Objects

igorrizzom: a forgotten Durable Object alarm billed US$ 2,038; Support refunded US$ 1,533.29, leaving US$ 505.

X user @igorrizzom (Igor Rizzo), who also posted on Cloudflare Community as igorarm (urnaaovivo.com), says a personal, non-commercial prototype that collected public election data in Brazil was left running after the October 25 runoff. A Durable Object kept rescheduling itself via alarm every ~5 seconds and writing to SQLite, and the invoice reached US$ 2,038, almost all from DO rows written, with about 10k pageviews. The author says budget alerts were set up but went to an old inbox that was never checked, and that alerts do not stop usage. Spend limits for Workers and Durable Objects were only announced on November 13, after almost all of the usage; the author then set a US$ 1 spend limit, turned the collector off, and removed Cron Triggers. The author says Support refunded US$ 1,533.29 as a one-time courtesy. The remaining US$ 505, which the author later described as US$ 500 of usage plus the US$ 5 Workers Paid fee, was closed as final; the author asked for a supervisor review in case #02442826 (follow-up to #02435308) and also asked @SidChatterjee whether any goodwill path remained for pre-launch cases. There is no Cloudflare staff reply on the public X thread or the Community thread. Public Support actions are reported by the author.

Reported amount · USD

$2,038

Reported cause: Unbounded loopx.com
First reported: Latest update:
D1

hiromsaeden: an unindexed D1 query loop billed $2,129.00; a $953.74 courtesy credit left $645.38 due.

Cloudflare Community user hiromsaeden, in a post-mortem of a personal hobby project on Workers and D1, says an unindexed GROUP BY aggregate query scanned about 877,000 rows to return 30 rows, and an unintended loop triggered about 315,000 runs across two billing cycles. In the Oct 15 – Nov 15 cycle alone, 1,447,580,203,670 rows (1.44 trillion rows) were read, on top of the previous cycle’s usage. The author says the October invoice IN-83890481 was $529.88 USD, paid in full out of pocket; the November invoice IN-89082487 was $1,599.12 USD ($1,447.58 D1 Rows Read + $6.16 Workers CPU + $145.38 tax); and the total billed was $2,129.00 USD against an expected budget of about $20/month. After noticing the issue on Nov 2–3, the author deleted the Worker and the D1 database; Support confirmed all reads had stopped. In case #02408621, Support offered a $275.00 courtesy credit for October and advised holding it until the November invoice was issued on Nov 15. In case #02434399, Support applied a one-time courtesy credit of $953.74 (which included the held $275.00), leaving a final balance of $645.38 USD, and said the review was complete and no further adjustments can be made. The author, having already paid $529.88, says the remaining $645.38 cannot be afforded and the account will be downgraded on Nov 22. The author also says a budget alert fired once at the $37 mark but did not stop the charges, and that D1 currently has no hard spending cap. There is no Cloudflare staff reply on the public thread; the Support actions are reported by the author.

Reported amount · USD

$2,129

Reported cause: Unbounded loopcommunity.cloudflare.com
First reported: Latest update:
D1

Sindre Reino Trosterud (@STrosterud): bots hammered a side project’s public lookup for days, producing a $300 D1 bill.

Sindre Reino Trosterud (@STrosterud) asks a Cloudflare engineer whether Cloudflare will ever offer a spending limit rather than an alert, saying a $300 bill arrived after bots found a side project: even with is_bot checks, a rate limit was missing on a public lookup and it was hammered over a couple of days. Cloudflare principal engineer Dillon Mulroy replies with a link quoting the hard spending-cap preview. In a later reply the author says the resource was D1, that “they are following up personally”, and that it was an open-source side project rather than a business.

Reported amount · USD

$300

Reported cause: Traffic spikex.com
First reported: Latest update:
Durable Objects

neoblender13: an AI agent’s recursive alarm system turned a ~$10 monthly Cloudflare bill into $1,500; $400 credited.

neoblender13 says the Cloudflare bill is normally around $10 a month, but this month it was hit with a $1,500 bill because an AI agent created a recursive alarm system that ballooned Durable Objects storage writes, and that Cloudflare support was not very helpful. In later replies the author says they did not realize spending limits were alert only, received a $400 credit and still had to pay $1,100, that the single alert email got buried in the inbox, and that a Discord bot now reports costs every 12 hours.

Reported amount · USD

$1,500

per month

Reported cause: Unbounded loopx.com
First reported: Latest update:
Other

saastrash: hit with two consecutive months of $250+ Cloudflare bills without knowing.

In a reply to a Cloudflare engineer’s post previewing hard spending caps, saastrash says “yes please” and that they just got smacked with two consecutive months of $250+ bills and had no idea. The author adds that billing is buried, so they do not feel it is the user’s fault.

Reported amount · USD

$250

per month

Reported cause: Unknownx.com
First reported: Latest update:
D1

Kun Save Point (@Savepoint_kk): a D1 bug rewrote unchanged data into a $2,739.12 bill; $2,141 goodwill credit granted.

Kun Save Point (@Savepoint_kk), an indie developer who says he recently lost his job, says a bug repeatedly rewrote unchanged data while inefficient queries amplified reads, producing a $2,739.12 Cloudflare bill already paid via PayPal (D1 rows written $2,641.00, rows read $64.06, other services $34.06); he says his bills were usually under $10 a month. Cloudflare granted a $2,141 goodwill account credit under case #02391058. He asks for it to be converted into a refund to the original PayPal payment, or at least for relief on the $2,641 write charges, and later writes that the initial request was declined and has been reopened for additional review. On October 25 he adds that he missed the only alert email Cloudflare sent, whose amount was not particularly high, and received no further warning before the large card charge; on October 26 he writes that the refund request to the original payment method is still under further review. On November 10 he posts a timeline saying that after following up on November 10–11, support again stated the $2,141 could only remain as account credit and the remaining $598.12 was still undecided while the ticket was being closed. On 26 November 2026 the author posted another public thread asking what a "final decision" means. He says that in the first case an agent called a refund impossible as a "final decision," then submitted it for further review; that after several business days he was told the account credits could not be refunded while the remaining amount was still under review; and that the first case was later closed without a clear resolution of that remaining amount. He opened a second case; an agent said the remaining amount had been definitively rejected, another "final decision." After the author posted on X, a senior billing specialist (Agent D) confirmed that the previously rejected amount had actually been refunded. The author asked whether the larger $2,141 account credit could be converted into a cash refund; after being told it was under review, an agent from the first case declared another "final decision": no refund. The author asks who reviews these requests and why a supposedly final rejection was later followed by an actual refund, and says D1 on Workers Paid still lacks a configurable hard spending cap. The posts cite cases #02391058 and #02447083. There is no staff reply on that public thread.

Reported amount · USD

$2,739.12

Reported cause: Write volumex.com
First reported: Latest update:
Other

John Guthrie (@jlfguthrie): a similar bill from unnecessary reads and writes.

John Guthrie (@jlfguthrie), replying to Jay’s post about a D1 bill of over $500, says he “had same” but that it was his own doing: unnecessary reads and writes. He says an agent found and optimized the culprits, that he then set up billing notices for spend thresholds, and that caps would be nice. He does not give an amount or name the product.

Reported amount · USD

Not disclosed

Reported cause: Unknownx.com
First reported: Latest update:
D1

Jay (@Cyberlane): a $513.20 D1 bill for two small personal databases; Cloudflare confirms a refund.

Jay (@Cyberlane) says two small D1 databases used only by himself for two little apps produced a bill of over $500 for reads and writes. He later quotes the invoice: 452,256,462 rows written ($453) and 60,197,421,138 rows read ($60.20) for Sep 17 – Oct 16, a D1 total of $513.20 before tax. Tyson Trautmann, whose profile lists Storage & Databases at Cloudflare, replies publicly and loops in the D1 engineering team.

Reported amount · USD

$513.20

Reported cause: Write volumex.com
First reported: Latest update:
Durable Objects

Lion Brain: a Durable Object alarm loop from an AI-coding bug wrote about 250 million rows, roughly $210.

Replying in another user's Community thread, bennygoldstein says a bug written by an AI coding tool made a Durable Object alarm in their Lion Brain app re-index the same data every few seconds on October 10 and 11, 2026, writing about 250 million rows and costing roughly $210 in overage on Workers Paid. He says he only found out from the budget alert email, which never pauses anything, and that he opened a billing case asking for a one-time courtesy credit and a real hard spending cap.

Reported amount · USD

$210

Reported cause: Unbounded loopcommunity.cloudflare.com
First reported: Latest update:
Durable Objects

salmon evil (@evilsalmon666): a Durable Objects retry loop rewrote 577 million rows into a $577 bill; one-time $250 credit.

salmon evil (@evilsalmon666) says a task written by GPT-5.6 retried every 5 seconds after its executor went offline, rewriting about 8,800 old records on each retry, for 577 million rows written in total; the small project’s bill was $577. The $10 budget alert only emailed at $333. Support gave a one-time $250 credit, described as the maximum, leaving $332 to pay. On October 10 the author described the same staging Durable Objects bug, said the default $10 alert fired only once at $333 (case #02343658), and put the bill at about $900. A Cloudflare Community post on October 26 describes the same incident figures (a staging Durable Object rewriting about 8,800 records about every 5 seconds, about $577 of Storage Rows Written overage, a one-time $250 credit and $332.23 still due, with the first $10-alert email arriving around $333), puts the rows at about 967 million over September 20–24, and requests a further courtesy credit; a Cloudflare Team member replies that Billing support has answered the case.

Reported amount · USD

$577

Reported cause: Unbounded loopx.com
First reported: Latest update:
Durable Objects

shmily7: a Durable Object alarm loop and a reported US$10,811.41 bill.

@shmily7 reports a Durable Object alarm loop in an unused test project, then says he paid the full US$10,811.41 bill to avoid service suspension. Cloudflare’s Ashley Peacock publicly says he is looking into it internally and will follow up. Cloudflare’s Dane Knecht later replies that he escalated it too. On October 9 the author declares the case closed: he reports that, with Ashley Peacock’s help, Cloudflare decided to refund the charges incurred during the bug in full, with the money still to arrive, and posts the support ticket reply he received.

Reported amount · USD

$10,811.41

Reported cause: Unbounded loopx.com
First reported: Latest update:
D1

A missing D1 index made every lookup scan a 306,000-row table, a four-figure invoice with no budget alert.

Community user stefanr0sca, who relies on an AI coding assistant, says a missing index made every lookup scan a 306,000-row table and produced a four-figure invoice; the exact amount is not given. He says the $10 budget alert created automatically when he upgraded showed $0.00 for the whole cycle and never sent a notification, that the support case was closed automatically after a decision was promised, and that he could not reopen it or open a new one.

Reported amount · USD

Not disclosed

Reported cause: Read volumecommunity.cloudflare.com
First reported: Latest update:
D1

A D1 migration burst far past a $10 budget; the author asks for a billing grace.

Community user maxsandrew, a hobbyist on Workers Paid whose previous cycles were under $30, says moving large tables between two D1 databases to stay under the 10 GB limit pushed the bill to 8,274% of a $10 budget alert that he missed; no dollar amount is stated. He says there is no hard per-cycle stop, that batch jobs are now gated and that a support ticket was opened, and asks whether a one-time billing grace is possible.

Reported amount · USD

Not disclosed

Reported cause: Write volumecommunity.cloudflare.com
First reported: Latest update:
D1

zmuleyu (yourchars.com): a $1,481.11 invoice from 1.476 trillion D1 rows read, with a $976.11 account credit.

Community user zmuleyu (yourchars.com) says an unintended query pattern repeatedly ran high-volume D1 scans during the July 17–August 16 billing period, reading about 1.476 trillion rows and producing a US$1,481.11 invoice (US$1,476.11 for D1 plus US$5 for Workers Paid). The author restricted public access, fixed the query path and added controls and alerts. Cloudflare granted a US$976.11 account credit on August 19, leaving US$500 of the D1 charge uncredited. The author asks how the credit was calculated, why US$500 was left, and how the balance can be used; support said the amount came from a case-specific review by a Finance team, the balance applies automatically to future eligible invoices, and closed the case again. The author notes budget alerts on Workers Paid are informational, not a hard limit.

Reported amount · USD

$1,481.11

Reported cause: Read volumecommunity.cloudflare.com
First reported: Latest update:
D1

An LLM agent wrote about 5 billion rows to D1, a $5,864.11 invoice.

Community user matthieu.marielouise says that between mid-May and mid-June 2026 an LLM coding agent shipped a change that rewrote the same data every few minutes, producing about 5 billion D1 writes and a $5,864.11 invoice on an account with a baseline of about $5 a month. He says billing alerts and budget thresholds did not fire in time and the alert emails landed in spam, and that a billing ticket filed June 11 requests a courtesy credit. About two weeks later he reports no answer and says a lawyer told him the debit breached PSD2 Article 64 consent rules.

Reported amount · USD

$5,864.11

Reported cause: Write volumecommunity.cloudflare.com
First reported: Latest update:
Workers AI

klar.services: $2,829.52 of Workers AI charges after a $5 prepaid top-up.

Community user vc1 says they were on the Free plan with a $5 prepaid top-up and were charged $2,829.52 after an AI coding tool misconfigured a scraper to call Workers AI instead of a local Ollama instance. An earlier ~$160 of similar charges had been reported three weeks before without a response.

Reported amount · USD

$2,829.52

Reported cause: Inference volumecommunity.cloudflare.com
First reported: Latest update:
D1

daniel207: a dashboard left open overnight drove D1 row reads into a very large bill.

Community user daniel207 says that while getting D1 working, a dashboard generated a large number of row-read calls and was left open overnight, causing a very large bill on a Pro plan; the product is now offline. The author sent a billing request (case 02075425), escalated it, and has had no acknowledgement. The author has since set budget warnings, says they would not have helped here, and asks Cloudflare for rate limiting or a hard pause limit. No amount is stated.

Reported amount · USD

Not disclosed

Reported cause: Read volumecommunity.cloudflare.com
First reported: Latest update:
Containers

burak emre: an agent loop on sandboxes, a $1,000 bill, and support said to pay.

burak emre (@bu7emba) says his agent got into an infinite loop using the AI binding with sandboxes, and within an hour the bill reached about a thousand dollars because new sandboxes spin up fast with no way to rate limit. He says support called it his fault, and later that they had to pay the bill.

Reported amount · USD

$1,000

Reported cause: Unbounded loopx.com
First reported: Latest update:

Guides · 91

GuideWorkersR2Zero TrustCloudflare CLI

Activate Workers Paid, R2, and Zero Trust subscriptions from the Cloudflare CLI or MCP

On 2026-11-25 Cloudflare announced that accounts can activate subscriptions, including Workers Paid, R2, and Zero Trust, from the Cloudflare CLI (cf) or Cloudflare MCP servers, without switching to the dashboard. The changelog says this requires cf 1.0.0-rc.5 or later, a fresh cf auth login so the session receives updated OAuth scopes, a verified email address, and an existing billing profile with a payment method on file. MCP clients that support elicitation show the plan price and ask permission before activating; clients that do not are directed to the dashboard.

GuideWorkers

leostera: a write-amplification bug that would have cost about 2eur/hr was stopped by Cloudflare billing limits

On 2026-11-23, @leostera wrote that a write-amplification bug “would’ve costed me about 2eur/hr — caught within an hour of deploying,” and credited “@cloudflare billing limits saving the day.” The post includes an image that was not OCR’d. There is no invoice and no stated actual debit. The about 2eur/hr figure is the author’s estimate of a near miss, not a case amount.

GuideR2

Eloco: Don't rush to jump on an R2 free image host; if it isn't enabled you'll get NotEntitled, and there is no hard spend cap—getting scraped will not automatically hit the brakes

On 2026-11-21, X user @ElocoCol (Eloco|Free-tier quota tests) wrote: don't rush to jump on an R2 free image host. The quotas the author lists are 10GB of storage, 1000 万次 reads per month, and permanently free egress. Pitfall 1: free does not mean you can skip enabling it—the account must subscribe to R2 first, and if it is not enabled the API returns NotEntitled directly. Pitfall 2: there is no hard spend cap; going over the quota does not stop the service, and getting scraped will not automatically hit the brakes. These quota figures and the author's judgment that there is "no hard cap" are the author's statements, not the Billflare case total in this guide. The official R2 pricing page likewise lists a free tier of 10 GB of storage and 1,000 万次 Class B reads, plus free egress, but this post does not discuss Class A write/list operations.

GuideAccounts

Community: a user hit a limit on Free accounts they themselves can create; invited Super Admin seats may not count the same way

On 2026-11-21, Cloudflare Community user spleenteo wrote that their user had reached the limit of Free accounts they can create from the dashboard, a limit they had not been aware of. The author said that after creating several Free accounts, “after 5 or 8 (?) you won’t be able to add,” but that being invited by someone else as Super Admin still works, so the limit appears to apply to accounts the user creates in the first instance. The post asks how the limit is counted, whether leaving an account or upgrading it to paid frees a slot, whether invited accounts count, whether ownership can be transferred, and how to tell which accounts the user originally created. There is no staff reply. MVP DarkDeviL did not state an official number, said an Enterprise plan can most likely get the limit as wanted, and asked why eight or more accounts were required rather than fewer identities or a single account. The “5 or 8” figure is the author’s uncertainty, not an official quota.

GuideWorkersDurable Objects

Ru Bite: In Spend Management, turn on Block usage under Billing → Spend limits; limits reset on the subscription billing period, the notification email must be filled in separately, and after Durable Objects are paused storage fees may still continue

On 2026-11-19, X user @JustLikeBit (Ru Bite) wrote a set of notes on metered cloud services having their free quota burned through by bots, and on Cloudflare Spend Management. The author says the entry point is Billing → Spend limits: select Workers or Durable Objects, set a limit, and turn on Block usage; once the limit is hit, supported operations are blocked automatically, and it does not rely only on email alerts. A follow-up adds: limits reset on the subscription billing period, not necessarily on the 1st of each month—for example, if the renewal date is the 15th, counting starts from the 15th; to receive emails at the 80% and 100% thresholds, notification_email must also be configured separately, and setting a limit does not fill in the notification email automatically; after Durable Objects are paused, storage fees for existing data may still continue. The author attached a link to the official documentation. These are the author's restatement of official capabilities and operational reminders, not an actual bill.

GuideWorkers

rockeymen: After the site was recommended, it was scraped by headless browsers, and the Cloudflare quota was almost used up

On 2026-11-18, X user @rockeymen wrote: the night before, threejs.cc got a wave of traffic after a blogger recommended it, and was soon scraped frequently by headless browsers, and the Cloudflare quota was nearly all used up. The author says that in the middle of the night they discussed a site redesign and defenses with Codex Dot, temporarily blocked the scraping, and included an image comparing the visit volume counting the scrapes with the visit volume after filtering. They then added: after 12 midnight there was still a large volume of visits from the China region, and they were later told that a letter from Cloudflare had been received saying the quota was about to be insufficient. The public post does not state which product or which billing/free quota, and does not give a bill amount.

GuidePagesWorkers

Pages Free: creating a 21st project can hit error 8000027 at a 20-project soft limit

On 2026-11-18, Cloudflare Community user @aguscogan2525 (Free plan) reported error 8000027 — “You have reached the limit of projects you can have on your account. Contact Cloudflare support to increase your project limit.” — when trying to create a 21st Pages project via Workers & Pages > Create > Pages > Direct Upload. The author points to the public Pages limits documentation, which says the Free plan allows up to 100 projects per account, and asks for a manual increase from this initial soft limit of 20 to that documented 100. No staff reply as of 2026-11-19.

GuideDurable ObjectsWorkers

Workers Free: SQLite Durable Object row-write quota can still block after the 00:00 UTC reset

Two Workers Free users with SQLite-backed Durable Objects report that after exceeding the 100,000 daily row-write allowance, storage still threw “Exceeded allowed rows written in Durable Objects free tier” after the documented 00:00 UTC reset, even though GraphQL analytics already showed 0 rows written for the new UTC day. @vendasecoplast1 saw 114,211 rows written and 399,088 rows read on 2026-11-16 UTC, then a failure at 2026-11-17 00:17:32 UTC during CREATE TABLE IF NOT EXISTS in the constructor. @dimoncheck2020 saw 103,558 rows written on 2026-11-18 UTC and 24 failed Durable Object invocations with 0 rows written between 00:00:00 and 00:35:27 UTC on 2026-11-19, with the same constructor exception at 00:35:21 UTC. No Cloudflare staff reply as of 2026-11-19.

GuideWorkersDurable Objects

棈澧: after a Worker bill “went up tenfold” overnight, Spend Management can pause Workers and Durable Objects

棈澧 (@hodu382759) wrote on 16 November 2026 that a Worker bill had “gone up tenfold” after a night’s sleep, with no dollar amount, and pointed to Spend Management launched on 13 November. The post says a limit stops new requests and cron jobs while static assets stay up, that the feature is beta and covers only Workers and Durable Objects (not KV or R2), and that blocking is not instant, so the official docs do not guarantee the invoice will not exceed the cap. The author describes the audience as Workers Paid users; official docs say pay-as-you-go.

GuideWorkersDurable Objects

Dennis: a Spend Management block follows the subscription billing period, not the calendar month

Dennis (@lee8907200) restates the 13 November Spend Management beta and focuses on how service resumes: raise the limit above current-period spend, turn the policy off or remove it, or wait for the next paid-subscription billing period. Creating a limit or deploying a Worker does not start a new period, so the block does not necessarily lift at the next calendar month.

GuideContainersWorkers

Four months of CI on Cloudflare Containers: per-use vCPU billing and a hard cap that stopped CI

@kelvin_des describes moving all CI from GitHub Actions to one Cloudflare Container per job and puts the list-price bill for the same 90 days at about $1,608 versus $3,288–$6,502 for GitHub-hosted runners, because Containers bill vCPU on use and his boxes were about 41% busy. He also reports a ledger bug that made his own hard daily minute cap refuse every container, after which he bounds spend by max containers × per-job deadline.

GuideWorkersQueuesD1

The free plan wall people miss is CPU time, not request count

风易 (@Michael_liyang) says the Workers Free wall most often missed is the 10 ms CPU time per invocation, which fails the request outright even when the daily quota is not used up; he suggests keeping cron handlers to dispatch only and moving heavy work into small queued steps with progress saved in D1.

GuideWorkersKVD1

Workers Free: 50 subrequests per request is a wall, not a quota

风易 (@Michael_liyang) says a single Workers Free request can make at most 50 subrequests, counting upstream calls, KV reads and D1 writes, and going over fails with an error; he suggests counting subrequests, caching what you can, batching reads and splitting overflow work into a queue.

GuideKVDurable ObjectsWorkers

Why a per-request key pool did not fit KV's free tier, and moving it to a Durable Object

A Reddit user who built an MCP reverse proxy on Workers says keeping the API-key pool in KV cost 1 list, N reads and 1 write per request, so the Free plan's 1,000 writes and 1,000 lists a day capped it at roughly 500 calls a day; moving the pool to a SQLite-backed Durable Object (100,000 rows written and 5 million rows read a day on Free) removed the wall and a race condition.

GuideWorkersKVD1

GouGeHSLU: Workers Free allowances from the official pricing page

@GouGeHSLU summarizes Workers Free from the official pricing page: 100,000 requests/day with 10 ms CPU each, unlimited free static-asset requests and no egress charge, plus KV/D1/log Free meters, notes Free has no Durable Objects and hard-stops instead of billing, and says Free quotas reset at 00:00 UTC.

GuideWorkersPagesD1R2

Aria: hosting on the free tier and three pitfalls

Aria (@AionVoid) describes putting sites and small tools online on Cloudflare's free tier, then lists the pitfalls: quotas reset at 08:00 Beijing time and error out when exceeded, R2 needs a card and charges overage, and it is not a VPS.

GuideD1Workers

A $500 D1 bill? Check rows written first

Layerbase walks through the D1 write meter using a public $513.20 invoice: writes cost 1,000× reads per row, indexes add written rows, and common causes include reprocessing jobs, upsert loops and writes on the read path.

GuideDurable ObjectsWorkersAI Gateway

Refunds are not a safety net: install your own brakes on cloud bills

SagaSu (@sujingshen) writes a loss-control guide for indie developers: usage-billed code can burn money with zero users, refunds should be planned as zero, and budget alerts are not brakes; it lists five things to set up beforehand and what to do once a bill has already spiked.

GuideWorkersDurable ObjectsWorkers AIKV

A personal AI agent on the free tier: what runs out first

A dev.to guide by akaranjkar08 builds a Telegram agent on Workers, Durable Objects and Workers AI and works through the free quotas: at about 30 chats a day, Workers AI neurons run out first, then Durable Object row writes, then CPU time. Cost figures are the author's examples.

GuideAccount-wide usage-based products

A budget alert is a horn, not a brake

@GUYUE_LGY points to Cloudflare’s Budget alerts documentation: alerts send email when spend crosses a threshold but do not pause or cap usage. Before letting AI run unattended, the author checks what actually happens at the line.

GuideDurable ObjectsWorkers

Put the spending ceiling into AI-generated code

Prasenjit Sarkar (@stretchcloud) uses the Durable Objects alarm loop to argue that alarms bill without traffic, that a single console cap cannot cover multi-vendor agent work, and that generated code needs execution quotas, idempotency checks and a kill switch.

GuideWorkersD1Durable ObjectsR2Queues

Cloudflare costs $5 a month, but the bill is not capped

不追高 (@Ariella1213) writes an X article explaining that Workers Paid’s $5 is a minimum, that per-product limits and budget alerts do not cap the account bill, and how denial-of-wallet requests, write amplification, delayed stops and background retries add cost.

GuideAccount-wide usage-based productsDurable Objects

Why hard spending caps take time: Ashley Peacock on billing latency

Ashley Peacock (@ashleypeacock), who works on Durable Objects at Cloudflare, explains from experience why near-real-time spending caps are hard to build, says hard billing caps are coming soon, and suggests budget alerts plus issue alerts in the meantime.

GuideWorkers

antig3n/llm-gateway-cost-guard: a Worker that enforces a per-licence monthly LLM cost cap under concurrency

The MIT-licensed repository antig3n/llm-gateway-cost-guard is a Cloudflare Worker that sits between a paid product and an LLM provider and is described as guaranteeing that no customer licence can spend more than its monthly cap, even under heavy concurrency. The README says a naive “read balance, call model, write cost” loop overspends as soon as two requests interleave, and that 29 tests include a concurrency check: 25 parallel requests against a cap that fits only 4, with 4 admitted and 21 refused. This tool caps the author’s own LLM provider spend, not Cloudflare’s product invoice. Reviewed from the public README on 2026-11-19.

GuideWorkersKVD1R2Queues

cf-usage-guard

An open-source library that reads account usage from the Cloudflare GraphQL API and circuit-breaks individual Worker bindings before overages.

GuideAI GatewayWorkers AI

AI Gateway spend limits

Cloudflare documents cost-based budgets on an AI Gateway that block requests, or fall back to a cheaper model, once cumulative spend in a time window reaches the limit.

GuideAccount-wide usage-based products

Budget alerts

Cloudflare documents account-wide spend alerts and their notification limits.

GuideDurable ObjectsWorkers

cloudflare-cost-guard

Louis Cai’s open-source rules and TypeScript base class for keeping Durable Object alarms and Worker schedulers from runaway loops.

GuideImages

Cloudflare Images pricing: Free includes 5,000 unique transformations a month, then error 9422 with no charge

The Cloudflare Images pricing page (last updated 19 October 2026; read back on 2026-11-22) states that every account starts on Images Free, which includes transformations for images stored outside of Images, such as in R2. On Free, you can request up to 5,000 unique transformations each month at no charge. After that, cached transformations continue to be served, new ones return error 9422, and exceeding the Free limit is not billed. To go beyond 5,000 unique transformations a month, purchase Images Paid. Images Stored and Images Delivered apply only on the Paid plan. This official page does not discuss payment methods, or whether foreground segmentation and AI upscaling are included in the free 5,000.

GuideWorkersDurable Objects

Spend Management: spending limits and alerts for Workers and Durable Objects

Cloudflare’s 13 November 2026 open beta lets pay-as-you-go accounts set a monthly USD spending limit on Workers or Durable Objects usage charges (after included usage). The limit can block new billable work or send email only. It is not a guaranteed invoice cap, is account-wide per product, and does not cover the Workers Paid subscription fee, stored Durable Object data, or other products such as KV, R2 and Workers AI.

GuideWorkers AI

Workers AI pricing

Cloudflare's Workers AI pricing page: 10,000 free Neurons per day on both plans, $0.011 per 1,000 Neurons above that on Workers Paid, and per-model unit prices.

GuideD1

FlareCost: D1 Free daily row-write limit error at 100,000 rows

FlareCost's error page explains the D1 message shown when an account hits 100,000 rows written in a UTC day on Free: writes fail until 00:00 UTC, Workers Paid includes 50 million rows written a month then $1 per million, and indexes make the cap easier to hit because writing an indexed column also writes the index. Reviewed against official pages on 2026-11-02.

GuideD1

FlareCost: D1 on the Free plan, daily row caps and 500 MB per database

FlareCost's D1 Free page lists 5 million rows read and 100,000 rows written per day with 5 GB total storage, queries failing at the next row past a daily cap until midnight UTC, and per-database limits (ten databases of 500 MB each, 7 days of Time Travel, 50 queries per invocation). Reviewed against official pricing pages on 2026-11-02.

GuideWorkers

FlareCost: Cloudflare error 1027: 100,000 requests/day

FlareCost’s error-1027 page (reviewed 2026-11-02) is checked against the official Cloudflare pricing pages listed under Sources. Free plan: The limits page says the daily request limit resets at midnight UTC and the response is error 1027. Paid plan: Paid does not use this cap. Extra requests are billed at $0.30 per million. A month that averages under 100,000 a day can still throw 1027 on one busy UTC day. 1027 is a failure, not an invoice.

GuideWorkersD1R2KVDurable ObjectsQueues

FlareCost: Free plan limits that fail the request (not bill)

FlareCost’s free-plan-limits page lists Workers, KV, D1, R2, Durable Objects and Queues Free meters in one table: daily Free limits reset at 00:00 UTC and fail the request instead of billing, except R2 which bills past its monthly free tier on any plan. Reviewed against official pricing pages on 2026-11-02.

GuideWorkers

FlareCost: Cloudflare Workers daily request limit

FlareCost’s workers-daily-requests page (reviewed 2026-11-02) is checked against the official Cloudflare pricing pages listed under Sources. Free plan: 100,000 per day. The limit resets at midnight UTC. Error 1027 when it is exceeded. Paid plan: No hard request cap. 10 million a month are included, then $0.30 per million. The Free cap is per account per UTC day, shared by Workers and Pages Functions. It is not 100,000 per script and it is not a monthly pool. Paid overage is prorated. Do not round the request line up to the next million.

GuideWorkersD1

AetherGate: a self-hosted OpenAI-compatible gateway on Workers with per-member RPM, TPM and monthly budgets

haiying-ai/aethergate-ai-gateway is an MIT-licensed self-hosted OpenAI-compatible gateway that runs on Cloudflare Workers and D1. It routes one public model name to several upstream providers, issues hashed per-member sk- keys, and enforces RPM, TPM, concurrency and monthly budget policies, with a usage ledger and audit logs. This is an upstream-key control plane, not a substitute for Cloudflare’s own AI Gateway spend limits or account Spend Management.

GuideDurable ObjectsKVWorkers

sean1093/purse-strings: in-process LLM spend budgets, with optional Durable Objects or KV stores

The MIT-licensed TypeScript library purse-strings (sean1093/purse-strings) is described as a denial-of-wallet guard for apps that call LLM APIs: per-user, per-session and global token, cost and request budgets, plus step, tool-call and time limits for agent loops. It has zero runtime dependencies and can keep counters in memory, Firestore, or Cloudflare Durable Objects or Workers KV. The README warns that with multiple process replicas, each replica enforces the limit, so the effective limit is N times the configured value unless a shared store is used, and that a Durable Objects or KV store is what a hard limit needs. Reviewed from the public README on 2026-11-19. Example figures in the docs include a user-daily cap of costUsd: 1 and a fleet-daily cap of costUsd: 200.

Skills · 1

Skill

Cloudflare billing risk audit skill

Ask your coding agent to check a Cloudflare project for loops, retries and repeated work that could drive up costs, with code locations and suggested improvements.

daftai-cloudflare-billing-audit