Cloudflare D1 billing cases
Browse public Cloudflare D1 billing reports, reported amounts, and follow-ups, with links to original sources.
Total reported amount
$59,673.89
46 cases · 40 with reported amounts · 6 amount unknown
Reported cases
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
edwardindiedev: a billing alert revealed an AI-written query scanning the whole table; the screenshot shows $98.49 of D1 Rows Read.
edwardindiedev says a Cloudflare billing alert arrived unexpectedly; the author first suspected a traffic spike on a recently launched site, but found that an AI-written query in their own backlink platform scanned the full table every time the platform was opened to check backlink-pool usage. The attached cost breakdown shows D1 Rows Read of 123.49B total, 98.49B billable, costing $98.49, with daily cost rising sharply around October 31–November 1, 2026 (UTC).
Reported amount · USD
$98.49
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
nanyuan0412: an unnoticed bug made a personal site’s database write nonstop, burning $106 in 4 days.
nanyuan0412 says an unnoticed bug in a personal website made the database write nonstop and quietly burned 106 dollars in just 4 days. The attached spend summary shows a total cost of $106.00 for usage observed October 15–26, 2026, all on the D1 Rows Written line, plus a projected cycle cost of $273.83 (a projection, not counted as the reported amount). In a reply the author says they had used the full Cloudflare stack for convenience and that, with no circuit breaker at all, it blew up.
Reported amount · USD
$106
prince (@prince_twets): a D1 full-scan bug led to an unexpected ~$200 bill for a pre-launch SaaS; asks for a one-time credit.
prince (@prince_twets) says the pre-launch JobClaw SaaS, which has no customers or revenue, received an unexpected bill of about $200 after a D1 full-scan bug. The author says their own report attributes about $182 of it to D1 read overage, that the query paths were removed and production was shut down, and that they cannot afford it. The author asks whether Cloudflare Billing could review a one-time credit, offers to share details privately, and tags Cloudflare accounts and staff in a follow-up reply.
Reported amount · USD
$200
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.
Reported amount · USD
$2,739.12
Aaron Edwards: an accidental $1,200 D1 bill.
Aaron Edwards (@uglyrobot), replying to Jay’s D1 thread, says he had an accidental $1,200 D1 bill last month and advises caching reads heavily.
Reported amount · USD
$1,200
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
wickedev: a D1 ranking-update loop and about $10,846 across two billing periods.
wickedev reports about $10,846 from a repeated D1 ranking update: a paid $6,209 September bill plus $4,637 estimated for the October billing period. He later says a $5,704 refund was approved and is still being processed.
Reported amount · USD
$10,846
Yan Zhu (picturepan2): about $400 from a D1 row-reads spike.
Yan Zhu (@picturepan2) says he also hit an about $400 Cloudflare bill the previous month when D1 database row reads spiked. He quotes the shmily7 Durable Objects thread for context and does not report a refund or support outcome.
Reported amount · USD
$400
mcwangcn reports $1,300 in D1 charges after a bot attack.
@mcwangcn says D1 writes previously cost over a thousand dollars and separately mentions Workers CPU charges without giving an amount. He later shares a Cloudflare bill and says $1,300 of its $3,600 came from D1 after a bot attack.
Reported amount · USD
$1,300
D1 status writes: an author reports a 150-dollar charge and refund.
@wofuhuola describes a generated tool writing Reddit post statuses globally every five minutes and deleting expired rows. The author says one month cost 150 dollars, went unnoticed for three months, and was later refunded after an appeal.
Reported amount · USD
$150
per month
OpenCils: a $231 D1 charge reported waived after a three-month ticket.
@OpenCils reports emailing Cloudflare on June 24 about a D1 charge. He says billing support forwarded the ticket to billing engineering on August 27, and that Cloudflare later waived the $231 D1 charge as a one-time courtesy and lifted account restrictions.
Reported amount · USD
$231
Sven Guettner: a D1 bug produced a $1,868 bill from about 1.89 trillion row reads.
Sven Guettner says a wrong database setting on offercompass.app made every small update read the whole table in the background between Aug 28 and Sep 22, 2026, totaling about 1.89 trillion rows and a $1,868 D1 bill. He fixed the bug, shut the project down, opened ticket 02338870 asking for a courtesy credit, and reports only AI replies so far.
Reported amount · USD
$1,868
A 12 MB D1 database, a reported USD 1,966.35 invoice.
@imselmon reports a USD $1,966.35 D1 invoice for a roughly 12 MB database with over two billion row writes. The author says the activity is abnormal and is investigating the database usage.
Reported amount · USD
$1,966.35
D1 row reads: an author reports a $108 bill in seven days.
@shivek_khurana reports a $108 Cloudflare D1 bill over seven days after a workflow read more rows than needed. The author says adding an index reduced reads by about 90%.
Reported amount · USD
$108
CloudPrinters.sa: an auth refresh-token bug drove about 2 billion D1 writes and a ~$2,078 charge.
Community user salman1 says D1 normally costs CloudPrinters.sa nothing, but over the August 16 to September 15, 2026 cycle an auth bug rewrote one account's entire refresh-token history every time a stale token was retried, generating roughly 2 billion D1 writes. He says the revoke logic and retry loop were fixed and that a billing ticket requests a courtesy credit for the D1 write overage of about $2,078.
Reported amount · USD
$2,078
per month
A $303.81 D1 charge was met with a $250 account credit instead of a refund.
Community user snailrun160, a student, says a September 12, 2026 invoice of USD 308.81 included USD 303.81 in unexpected D1 usage charges with no usage or spending warnings. After an appeal, support applied a one-time USD 250 goodwill account credit but declined a cash refund; the author asked for the full USD 303.81 back to the original payment method. A Cloudflare team member first said the billing team had been engaged, then said the credit is the latest response and no refund or other amount can be given.
Reported amount · USD
$303.81
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
D1 migration: the author reports a $911.56 charge after stopping the job.
@m0xandrew says a hobby-project D1 migration reached 8,274% of a budget alert, so he stopped it and requested a one-time waiver. He later reports a $911.56 charge, closure of the old case and opening a new support case.
Reported amount · USD
$911.56
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
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
OperonAtlas: a one-time D1 import wrote 320.76 million billable rows, about $321; the $1 alert came after.
Community user user33412 runs OperonAtlas, a non-commercial academic research database on Workers and D1, and says a one-time large database import and indexing wrote about 370.76 million D1 rows, 320.76 million billable, about $321. A $1 budget alert only arrived after the operation had finished. The author first says a support case requesting a one-time adjustment was opened, then says no billing option could be found; an MVP asked which was the case.
Reported amount · USD
$321
An unindexed D1 query produced a $100.90 rows-read overage.
Community user jaime.ruiz.pallares says an unindexed query in their own code caused a $100.90 D1 Rows Read overage on a $105.90 invoice dated August 13, 2026, already paid. The Billing support form appeared to end at a Back button; after an MVP pointed out that all suggested-article dropdowns must be expanded, the author opened a billing case to request a one-time goodwill credit.
Reported amount · USD
$100.90
Repeated full catalog reloads into D1 produced a $249.44 charge.
Community user josh129 says repeated full reloads of two D1 databases caused an unexpected $249.44 D1 usage charge. The invoice was already paid; they enabled D1 usage notifications, reduced publishing frequency and are changing the pipeline to write only changed rows, and ask for help getting an existing billing case reviewed for a one-time courtesy credit.
Reported amount · USD
$249.44
A runaway client sync loop read D1 619.52 billion billable rows, a $619.52 overage.
Community user hoagiaytim.hp says a bug in their own code made the client-side sync re-read the full dataset on every pass between July 16 and 23, 2026, reading 644.52 billion D1 rows in 30 days, 619.52 billion of them billable, against databases holding about 103 MB. They say a support case for the $619.52 Rows Read overage sat unassigned for 20 days across five follow-ups.
Reported amount · USD
$619.52
Rentier Digital: D1 billed a zero-user dev app like production traffic.
Phil (rentierdigital) reports a filing-monitor app still in development—zero users—reading about 47 million D1 rows in a day (averaging about 12.9 million against a 5 million free-tier daily cap, with a July 2 spike to 22 million). He traces the cost to a background poller scanning 18,000 rows per tick and returning empty 447 of 451 times, then migrates off D1. He does not state a dollar invoice amount.
Reported amount · USD
Not disclosed
A missing index on a D1 DELETE read about 4 trillion rows, a $4,114.97 charge.
Community user user11226 says a missing database index made a DELETE operation repeatedly scan the table, generating about 4.03 trillion D1 rows read in the billing period and an unexpected $4,114.97 bill on what they understood to be a $5-a-month subscription. In follow-ups they accept they should have configured billing alerts, say Cloudflare successfully challenged their chargeback while the urgent billing case took more than three weeks to get a response, and ask for someone to review the circumstances.
Reported amount · USD
$4,114.97
Kent C. Dodds: full-table D1 aggregates produce a $195.05 rows-read line item.
Kent C. Dodds links a pull request on X calling it "an unfortunate lesson". The pull request says the Aug 8, 2026 Cloudflare invoice ($213.79 total) included a $195.05 D1 line item for 195 billion rows read (Jul 8–Aug 7), mostly attributed to two full-table PostRead aggregates cached only in per-isolate memory. The change moves those results to a shared KV-backed cache.
Reported amount · USD
$195.05
An unexpected D1 read charge grew from $176.37 to $195.85 within the billing period.
Community user akelmithat1 reports an unexpected one-time D1 charge of $176.37 in the July 20 to August 20, 2026 period from a small test-only collector project and asks for a one-time courtesy credit. The same day they update that billable D1 rows read kept backfilling to $195.85 (195.85 billion billable rows) although the Worker showed no invocations, and ask for the adjustment to apply to the final amount.
Reported amount · USD
$195.85
per month
D1: an author reports a $3,500 bill in 48 hours and a full waiver.
@darylginn reports about $3,500 in D1 charges over 48 hours. He says an AI-assisted Postgres migration omitted indexes and caused about 970 billion row reads daily, and that Cloudflare waived the bill.
Reported amount · USD
$3,500
557 million D1 rows written produced about $949.
Community user s0565184740 says their first-ever usage invoice, about $949, was driven almost entirely by 557 million D1 rows written from a now-fixed code bug, and that the account was restricted with "Exceeded maximum DB size" on every D1 write. They ask for a goodwill waiver and service restoration but say the Support Portal offered no way to open a billing case; an MVP replied that opening all the questions reveals the button.
Reported amount · USD
$949
MXGA: a reported $209.37 bill after a D1 query bug.
@luoleiorg describes a D1 query bug that raised usage roughly 1,400-fold. An initial $200-plus report becomes $209.37 in a later post; the author says Cloudflare waived the previous month’s entire invoice after a support request.
Reported amount · USD
$209.37
A crawler hitting a 380k-page sitemap drove 800 billion D1 row reads and an $800.03 charge.
Community user faithalarmapp says Google crawling a 380,000-page sitemap generated 800 billion D1 row reads in one week (June 22 to 28, 2026), an unexpected $800.03 charge, and asks for a goodwill credit. A Cloudflare Customer Reliability Engineer replied that the payment redirect on the dashboard can be clicked through to open a billing ticket. After fixing caching and redirects, the author reports about four weeks later that the support case has no resolution and that the account was downgraded to the free tier.
Reported amount · USD
$800.03
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
Full-table scans on D1 produced $564.23 in usage for one cycle.
Community user need1026 says a hot-path query that full-scanned a large table without an index drove the May 13 to June 12, 2026 cycle to $564.23 of billable usage, almost all D1 Rows Read ($562.84). The author added the missing indexes on June 5 and asks for a one-time credit before the invoice is finalized.
Reported amount · USD
$564.23
per month
Mircea Trofimciuc: agent count(*) queries on D1 and a reported $700+ bill.
Mircea Trofimciuc (@MirceaTrofim) reports a $700+ bill after an AI agent ran a few count(*) queries on a large D1 table to get the number of records. He says support won't credit the account and that he was charged, and asks @CloudflareDev for help.
Reported amount · USD
$700
D1 row reads: a $134.14 invoice from unindexed queries.
Justin Ahinon reports that his April 21, 2026 Cloudflare invoice was $134.14, with $127.60 from 127,599,130,859 D1 row reads on a 765,000-row database. He attributes it to full table scans in queries that ran on every page load.
Reported amount · USD
$134.14
contact.freeicon: inefficient D1 queries produced about $748 in four days.
Community user contact.freeicon, running a non-profit free icon library on cloudflare-icon.pages.dev, reports unexpected D1 charges of about $748 from April 13–17, 2026 after a LEFT JOIN GROUP BY query scanned about 6.4 million rows on every page request and bot crawling drove about 200 billion reads. The author replaced the query with a pre-computed indexed column and 72-hour KV caching.
Reported amount · USD
$748
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
6.3 trillion D1 row reads in one day led to a $6,781 charge and a billing dispute.
Community user markbooth63, a solo developer on Pages and D1, says a coding bug ran a full table scan on every API request on April 7, 2026, causing 6.3 trillion D1 row reads in a few hours and a $6,781 invoice. He says he fixed it and filed a billing dispute the same day, added an index, and that after 10 days without a response the balance was reduced to $6,357 with no explanation.
Reported amount · USD
$6,781
D1 import failures reset the database and inflated writes to about 550 million rows.
ken7 reports migrating a read-heavy site to Workers with D1, then repeated internal D1 failures that reset the instance and forced full re-imports. The author says about 550,456,381 rows written on the invoice reflect failed import retries rather than production usage, and requests a waiver or credit. No dollar amount is given.
Reported amount · USD
Not disclosed
Little Bear Apps: a D1 write loop and a reported full US$4,586.64 invoice waiver.
Nathan Schram reports that two bugs wrote 4.83 billion D1 rows in January 2026 on an account that usually costs $5 a month, an overage he estimated at about $4,868. After a support ticket, a Community post, direct emails and a Reddit post, he says Cloudflare waived the full $4,586.64 invoice on February 19.
Reported amount · USD
$4,586.64
per month
user1234567 (colorlabs.net): a bot attack and 1.9 trillion D1 row reads led to a huge bill.
Community user user1234567 (colorlabs.net) says a bot attack, with no-referrer requests, fake user agents and over 100,000 visits from Singapore, got through the Cloudflare proxy despite Bot Fight Mode and produced a huge D1 bill: about 500,000 requests reportedly generated 1.9 trillion D1 row reads. The author contacted support on January 8 when the bill was generated, disputes it under case 01919383, deleted the database, Worker and Pages site, and says the R2 and Workers subscriptions were then cancelled, taking the sites down. No amount is stated.
Reported amount · USD
Not disclosed
lieft: 51.1M D1 rows written billed $52 where the author expected $2.
Community user lieft says D1 rows written for the billing cycle were 51,129,049, only 1,129,049 above the 50 million free allowance, so the charge should have been $2 instead of the $52 on the invoice. The author asks for a refund, reposts when no one replies, and later says a support request was filed but still had not been handled.
Reported amount · USD
$52
user2412: failed D1 imports that hit the 30s timeout still billed 109M writes, $59.
Community user user2412 says importing the CBDB biographical database (about 80 tables, 9.5 million rows, 375 indexes) into D1 with Wrangler repeatedly hit the 30-second timeout, and each failed attempt still consumed billed writes even though the transactions rolled back. The account was charged for 109 million writes against a 50 million free tier, so 59 million writes were billed at $1 per million, $59. The author argues the platform's timeout limit is being turned into user cost, and later posts billing case 01780096.
Reported amount · USD
$59
Related billing guides
Cloudflare billing pitfalls thread
The author organizes Cloudflare billing risks by product and shares experience with budget alert emails.
Budget alerts
Cloudflare documents account-wide spend alerts and their notification limits.
D1 billing incident and circuit breakers
Nathan Schram describes D1 write risks and circuit-breaker approaches.
Four layers of cost protection for small Cloudflare projects
David Z (@davezfr) writes an X article for vibe coders on budget alerts, stop conditions for paid paths, automatic pausing, and letting a personal agent verify and pause.
Optimize costs
Cloudflare lists ways to find and reduce usage-based charges by product.
cf-usage-guard
An open-source library that reads account usage from the Cloudflare GraphQL API and circuit-breaks individual Worker bindings before overages.
Lanshu: an AI-assisted Cloudflare billing risk checklist
Lanshu (@LufzzLiz) shares a six-step prompt for checking account ownership, usage, runaway consumption and budget alerts. Replies add alarm logging, email delivery checks and separate notifications.
After a $10,000 loop bill: budget alerts and a cost-audit prompt for vibe-coded projects
铁柱AGI (@cgnot996) writes an X article that walks through creating a Cloudflare budget alert, explains why it is only a notice, lists cost-amplifying code patterns, and gives a read-only audit prompt and steps for when a bill has already spiked.
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.
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.
Watch D1’s daily row quotas while testing
Michal Raczka (@michalraczka) warns that D1’s daily row read and write quotas can stop all D1 queries until midnight UTC, notes that indexes trade reads for extra writes, and moves heavy tests to local Miniflare.
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.
D1 pricing and free daily row limits
Cloudflare explains D1 read/write billing, free daily limits, and usage tracking.
How I keep Cloudflare under $5: where surprise bills come from
Ashish Sharma (@sarmaasis) runs several sites on the $5 Workers Paid plan and lists, product by product, the usage patterns he says quietly run up a Cloudflare bill, ending with a 12-item checklist.
Overmind: a macOS menu bar meter for Cloudflare usage and bill
An open-source macOS menu bar app that reads a Cloudflare account’s Workers and D1 usage and bill with a read-only token and warns before a free-tier limit runs out.
Cloudflare Medivh: a self-hosted near-real-time bill estimator
An open-source, self-hosted monitor that adds today’s estimated usage cost to Cloudflare’s daily-updated billable usage, sends summaries, and calls a webhook when the current cycle crosses a budget.
Billable Usage API
Cloudflare introduces an API that returns a self-serve account’s usage and cost by product and service period, currently updated daily.
Cloudflare Cost Guard: a read-only agent skill for runaway-billing audits
Layer Cache’s open-source agent skill, announced by Domenico (@purposelyblnk), audits a Cloudflare codebase from source alone for paths that can run up uncontrolled billable usage, and reports findings without changing code or calling Cloudflare.
The Ultimate Cloudflare Guide: what each piece costs and where it bites
Elia (@eliakuratli), who runs several products on Cloudflare, walks through the developer platform with what each piece costs, what the Workers Paid plan includes, and a short prevention list for the one risk he says can actually hurt: no hard spend cap.
Cloudflare free plan from scratch: which services bill on overage, and what to set up first
李天才 (@Lniosytest) re-walks a popular Cloudflare beginner tutorial (domains, email routing, R2, Workers AI) against the October 2026 docs, prompted by the $10,811 Durable Object alarm bill, and adds a table of what happens on overage plus a pre-flight list for avoiding a runaway bill.
A small project read 33 billion D1 rows: where the reads came from and a pre-release checklist
Sylwair reviews how a small content site on Workers Paid used more D1 rows read than the monthly allowance, explains how D1 counts scanned rows, names the four query patterns that multiplied reads, and lists the fixes and a checklist to run before shipping.
D1 enforces free tier daily query limits
Cloudflare’s changelog announces that from September 1, 2026, D1 queries on Workers Free accounts fail once the account exceeds its daily row read or row write limit.
D1 free tier hard limits: budgeting a small app’s database after the September 2026 enforcement
涂阿燃 reads Cloudflare’s September 2026 D1 free tier enforcement notice and turns it into a budget for small apps: how rows are metered, which query patterns burn the daily quota, how to find them, and how to degrade gracefully when the quota runs out.
Estimating a SaaS bill on Cloudflare Workers by billing unit, not by MAU
李辰 of 小李出海笔记 argues that a Cloudflare SaaS bill cannot be read off monthly active users and walks through Workers, D1, R2, Workers AI and Vectorize by their own billing units, with an estimation template and a checklist.
CF Usage
An open-source Go server plus Android app that polls Cloudflare GraphQL Analytics every minute, tracks Workers Paid allowances, projects the cycle, alerts, and offers confirmed kill switches.
How to cap your Cloudflare Workers bill, and what you cannot cap
CostHex concludes there is no dollar cap that stops a Worker, and lays out what can contain a bill instead: per-invocation limits, keeping abusive traffic away, and earlier warnings.
Cutting a D1 bill 95% with composite indexes, ANALYZE and a KV cache
Justin Ahinon walks through finding the four queries behind 127.6 billion D1 rows read and fixing them with indexes, ANALYZE and cache-aside KV for layout-level data.
Where to see D1 rows read and Durable Objects requests before the invoice
Howard tabulates eight public 2026 Cloudflare bill spikes (seven D1 rows read, one Durable Object alarm loop) and turns them into concrete places to check and a ten-times-baseline alert rule.
Cloudflare billing risk audit skill for coding agents
Kid (@singkid9527), who collects cases and guides for Billflare, open-sourced a skill that has a coding agent review a project's configuration and source in read-only mode for paths that can amplify Cloudflare costs.
Moving a blog to EmDash on the D1 free tier: row reads ran out and the author rolled back twice
tozai (@ccietry_tozai) tried moving a WordPress blog with about 800 daily unique visitors and 7,000 page views to EmDash on Cloudflare, exceeded D1’s 5 million daily rows-read free limit, and went back to WordPress rather than move to a paid plan without a hard cap.
Appflare spend protection: per-app usage alerts and automatic pausing in your own account
Appflare, an open-source (Apache-2.0) app manager that runs as a Worker in your own Cloudflare account, added spend protection: it reads each installed app’s usage every 5 minutes, alerts on unusual usage, and can pause an app that runs away.
Keeping a vibe-coded site alive: whether quotas stop or bill, and D1 row costs
Ren (@Ryrenz) sorts the ways a vibe-coded site “dies” into downtime, a blown bill and silent breakage; the billing sections cover what each platform does when a quota runs out and why D1 bills by rows scanned and written.
D1 scheduled updates: count runs, not empty queues
wickedev explains how a once-daily full-table update ran hundreds of times a day, and shares the checks he would add after an unexpected D1 bill.
WquGuru: a read-only Cloudflare billing audit prompt
WquGuru (@wquguru) shares a read-only audit prompt that checks account usage, D1 query plans, loops and retries, Durable Object wake-ups, high-priced operations and Worker config, then ranks risks by worst-month cost.
From 18 months at $0 to $72 a month: Meathill's Cloudflare bill review
Meathill breaks down 49 Cloudflare charges across 20 domains and a dozen projects, separating registrar renewals from the monthly usage bill and naming four cost traps: uncached Worker responses, Images, Workers Observability and cache placement.
PennyBar: a macOS menu bar for Cloudflare and other usage-billed services
An open-source macOS menu bar app that shows this billing period's spend across Cloudflare, Vercel, Railway, Neon and PlanetScale, with total and per-account budgets.
A polling table scan can read billions of D1 rows with no users
Jad (@JadMadi), replying to a $500 D1 bill thread, says D1 bills per row read rather than per query, so an unindexed scan on a polling interval can read billions of rows; he advises checking indexes and query plans.
Cloudflare free storage quotas for side projects, and where they stop
小墨同学 (@xiaomovps) lists free quotas for R2, D1, KV, Durable Objects and Analytics Engine, notes that daily-quota products error on the free plan instead of charging, and advises private access or rate limits.
NatashaTheRobot: a bot that sends a daily Cloudflare billing summary
After a $10 surprise alert, NatashaTheRobot built a scheduled bot that monitors her Cloudflare account and sends a daily billing usage summary, and shared it as a template.
scram: a self-hosted kill switch for a Cloudflare account
An open-source Worker that prices the account's usage every 15 minutes from the GraphQL Analytics API and, once a spend line is crossed, removes routes and schedules; a restore endpoint puts them back.
Cloudflare AI Usage Dashboard: per-app usage and a billing estimate
An open-source Worker that collects Cloudflare platform, Workers AI, AI Gateway, Anthropic and OpenAI usage every 5 minutes, attributes it to apps and shows a usage-times-list-price billing estimate behind Cloudflare Access.
D1 Query Budget: reject queries that read too many rows
An open-source TypeScript experiment that measures D1 rows read, checks that results are correct, and rejects a candidate query that exceeds a declared row-read budget, with a CLI that verifies the report.
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.
Writing a Cloudflare cost-guard skill for coding agents
An AIIDE List guide on turning Cloudflare billing safety into an agent skill with BUILD, AUDIT, PREDEPLOY and INCIDENT modes, plus risk rules for D1 queries, Durable Object alarms, polling, Queues and R2.
FlareMeter: Cloudflare usage in the macOS menu bar with early-warning alerts
Manish Rana's free, open-source (AGPL-3.0) macOS menu bar app and widgets show Workers, Durable Objects, KV, D1 and Workers AI usage against plan limits, estimate Workers Paid overage, and alert near limits, past a budget or on 10× spikes.
Cloudflare Spend Guard: an account-wide usage circuit breaker via shared KV
A Worker that reads account-wide usage every minute, trips when any monitored metric reaches 95% of a configured allowance, and publishes the state to shared KV for opted-in projects to refuse billable work. The README stresses it is not a hard cap.
Cloudflare Cost Hub: free-tier vs paid allowances, cost drivers and month-end forecasts
An MIT-licensed dashboard that signs in with Cloudflare OAuth, reads account analytics across products, colour-codes usage as free, within paid allowance or billable, ranks per-instance cost drivers, forecasts month-end cost and emails threshold and budget alerts.
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.
Uploads: send large bodies straight to R2 instead of through a Worker
风易 (@Michael_liyang) recommends a flow where the Worker only issues a one-time upload token, the browser uploads directly to R2, and a callback writes the D1 record, so large bodies do not burn Worker CPU or request quota.
MFlare: Cloudflare usage alerts and deploy notifications in the macOS menu bar
A macOS menu bar app introduced on V2EX by its developer: after Cloudflare OAuth sign-in it shows Workers, Durable Objects, KV, R2 and D1 usage against quotas, notifies at 80% and 100%, and reports Worker build and deploy results.
Cloudflare Usage Guard: a read-only dashboard for free-tier risk and billable usage
ThaneJoss's self-hosted, Access-protected Worker dashboard ranks near-real-time free-tier utilization for Workers, KV, D1, R2, Queues and Pages and shows official billable usage separately, without treating missing data as zero cost.
Hit the 10-database D1 free limit? Sharing one database with table prefixes
MomoAI (@MaynorAI1) describes hitting the 10-database D1 limit on Workers Free and, instead of deleting databases or upgrading, having several sites share one D1 database with per-site table and migration-table prefixes, with caveats on size and shared quotas.
How far the Cloudflare free tier goes: a walkthrough of its limits from domain to AI
铜匠 (@CopperForgeAI) walks through launching a personal site on Cloudflare and checks each free allowance against the docs, separating the domain plan, the Workers plan and Zero Trust, and warns that free limits stop service while paid overages are charged.
Three billing traps an AI left in an e-commerce backend, and a worst-case bill audit prompt
Frank Zeng (@frankzeng2020) says his AI-built e-commerce backend ran a month at $0, but a Claude audit of its Cloudflare billing found three amplification paths; he fixed them in half a day and shares a read-only audit prompt that ranks worst-case costs.
SpendFuse: a usage checker that converts Cloudflare usage to dollars and can pause a runaway Worker
@hao_ok72927 introduces SpendFuse: after a one-time API token, it installs an open-source agent in your own Cloudflare account, converts Workers, D1, KV and R2 usage to dollars, alerts on budget overruns or spikes, and on paid tiers can pause the offending Worker.
Separate production and test resources so tests do not use up production free quota
风易 (@Michael_liyang) warns that sharing one set of free resources between production and testing lets a test run exhaust production quota, and suggests separate Workers, D1 databases, KV namespaces and domains per environment.
D1’s 100,000 daily row writes: how naive upserts took a sanctions app offline
A DEV Community post by Oleksandr (alexcodebytes) describes a Workers + D1 compliance app whose ingestion hit D1’s free daily write limit (error 7500) because every upsert counted as a write, and the fixes: a WHERE clause on DO UPDATE, per-run page caps, and staging raw files in R2.
Self-hosted analytics on D1: rows scanned, not rows returned, decide the bill
Lynn (@hizachlynn) estimates how a D1-backed analytics tool without pre-aggregated rollup tables scales: dashboard queries scan raw events, so at 1 million pageviews a month one load scans about 428 million rows; all figures are the author’s estimates.
Frequent external backups of Durable Objects cost money; built-in point-in-time recovery exists
@CJavierSaldana says he constantly exported all client data from Durable Objects until the Cloudflare bill arrived, then learned that SQLite-backed Durable Objects and D1 can restore to points in the past, and cut his external backup frequency.
Cloudflare Billing Helper: a browser extension that shows free-allowance progress on the billing page
Meathill (@meathill1) built a Chrome extension that adds a panel to Cloudflare’s Billable Usage page: remaining free allowance for each billing line, projected exhaustion dates, estimated cost for the period, and a breakdown by Worker, KV namespace, D1 database, R2 bucket and Durable Object.
Free tier storage fills up with old data: expire KV, R2 and D1 entries with a nightly cron
风易 (@Michael_liyang) says what fills the free tier first is storage, not request quota: KV caches, R2 backups and D1 logs only grow. He sets expiry on cache writes and runs a nightly cron that soft-deletes, confirms and then deletes expired keys and files.
On the free tier, keep large blobs out of D1 and KV: metadata in D1, hot keys in KV, bodies in R2
风易 (@Michael_liyang) recommends splitting storage by role on the free tier: D1 holds only metadata and references, KV only hot keys and short results, and files, images and long logs go to R2.
Turn free allowances into daily budgets with alerts at 70% and 90%
风易 (@Michael_liyang) says 100,000 requests a day and 5 million rows read a day are hard walls, not a safety margin: split production and test into different Workers and D1 databases, alert at 70% and 90%, and degrade before the site returns 500s.
Six free allowances and four kinds of cost: estimating a Cloudflare bill line by line
Su (@Sukiea1008) lists six common Cloudflare free allowances and four kinds of cost — separately bought items, hard stops at free limits, metered usage on enabled services, and other services such as models and email — and walks through a PDF summariser to show why each line must be estimated in its own unit.
D1 rows read and Queues operations: two free allowances that run out with few users
Su (@Sukiea1008) explains why D1’s rows-read allowance and Queues’ operation count are easy to misjudge: a query returning 10 rows may scan 10,000, and one queue message usually costs three operations plus retries. She adds notes on indexes, KV’s one-write-per-second per key and Hyperdrive’s query count.
Running a job board on Workers Free: error 1102, D1’s 50 queries per request, and shared egress IPs
SagaSu (@sujingshen) describes keeping DMtheFounder on the Workers Free plan: SSR CPU of P50 54 ms against a 10 ms limit caused error 1102 until he edge-cached anonymous pages, an admin job hit D1’s 50-queries-per-invocation limit until he batched writes, and IndexNow 429s came from shared Workers egress IPs.
EmDash on Cloudflare: what the Free plan covers, where $5 a month is needed, and R2 billing past its free tier
HIRO3 (@engineer_num1) checks EmDash 1.3.1 against Cloudflare’s pricing and limits pages: the site deploys to the Free plan by default, but registry plugins need Worker Loader on Workers Paid, Workers and D1 stop rather than bill at Free limits, and R2 needs a sign-up and bills usage beyond its free allowance.
On Workers Free the first wall is often KV’s 1,000 writes a day, not CPU
Hliao (@Hliao2023) says the Workers Free 10 ms CPU limit counts only computation, not time waiting on external APIs, so calling model APIs rarely hits it; what usually runs out first is KV’s 1,000 writes a day. He suggests static assets for static content and D1 for frequent writes.
ideabrian/cf-cost: a password-protected Worker dashboard of usage meters, invoices and domain renewals
An MIT-licensed Worker you deploy to your own account with a read-only token: it shows every usage meter against what is included, plans, invoices by month and domain renewal dates and prices, and warns when anything passes 70%.
mjmirza/cloudflare-cost-calculator: a single-file monthly cost and margin model for an all-Cloudflare app
A client-side calculator that models the monthly cost of an app built entirely on Cloudflare — Workers, Durable Objects, D1, R2, KV, Queues, Vectorize, email and LLM usage — against revenue, with profiles from Solo to Extreme and a breakdown of each cost row.
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.
FlareCost: D1 rows-written allowance and the cost of indexes
FlareCost’s d1-rows-written-allowance guide says Free allows 100,000 rows written per day (reset 00:00 UTC) and Paid includes 50 million per month then $1 per million; INSERT, UPDATE and DELETE all count, and each index adds another written row. Reviewed 2026-11-02.
FlareCost: D1 OFFSET still burns rows-read on Free; prefer keyset pagination
@FlareCost replies that D1 Free meters rows read (scanned), not rows returned, so OFFSET still burns the 5M/day Free cap (reset 00:00 UTC), and that keyset pagination on an index avoids that. The parent post notes D1 now fails any query result over 50 MB.
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.
QuotaLab: locally test Cloudflare Workers resource budgets before production
ranajahanzaib/cf-quota-lab is an open-source harness that runs representative HTTP workloads against a local Cloudflare Worker, measures D1 and KV usage, projects daily consumption, enforces resource budgets in CI, and injects deterministic dependency failures — without Cloudflare credentials or a deploy.
Polaris: self-hosted Free-plan remaining-quota and cost dashboard on Workers
etak64n/polaris is an MIT-licensed dashboard on Cloudflare Workers that shows how much of each Free plan limit is left and the cost/metrics of Workers, D1, R2, KV, Durable Objects, Queues, Workflows, Hyperdrive, Browser Run and Workers AI. It deploys behind Cloudflare Access and reads Analytics with an API token kept as a secret.
fantuantalk: apply for Cloudflare for Startups $10,000 credits while bootstrapped
@fantuantalk’s X article walks through applying to Cloudflare for Startups as a self-funded builder: $10,000 / $100,000 / $350,000 credit tiers, one-year non-cash credits usable on Workers/R2/D1/Workers AI (with product-specific caps; AI Gateway not covered), form steps, and a note that a payment method is still required so overages or ineligible charges can bill.
runes_leo: applying for the Cloudflare for Startups $10k bootstrapped tier with an AI agent
@runes_leo describes applying for the Cloudflare for Startups $10k tier without funding: the three tiers, who qualifies, the four-page form, and three pitfalls (a sign-in button greyed out in Chrome, a required company-domain email, and a payment method required on the linked account). He later corrected the $100k/$350k criteria, said approval and credits were still pending, and on November 10 updated that Workers AI is no longer covered for new members (existing $10k-tier members up to $2,500 until December 1).
Michael Liyang: record every AI call in D1 and downgrade before the budget runs out
@Michael_liyang argues that on a free tier the danger is not one expensive call but not knowing which call is expensive: write each call's usage to D1 by user and model, have a daily Cron check budgets and downgrade first, and look at which user is burning quota rather than only the total.
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.
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.
FlareCost: what the $5 Workers Paid plan includes
FlareCost's explainer says Workers Paid is a $5 monthly minimum per account that includes the Paid allowances for Workers requests and CPU, KV, Hyperdrive and Durable Objects; included usage is not extra credit on top of the $5, overages are added to it, R2 keeps its own free tier, and the plan is separate from a zone plan. Reviewed against the Workers pricing page on 2026-11-02.
FlareCost: what a D1 full table scan costs past 25 billion rows read
FlareCost's scenario scans the same 5-million-row table 200 times a day for 30 days: 30 billion rows read, 5 billion of them billed at $0.001 per million, totalling $10.00 on Paid including the $5 minimum. It stresses that D1 bills rows scanned, not rows returned, and that indexes cut reads but add a written row when the indexed column changes. Rates as published on 2026-11-02.
Anti-abuse code that burned the Durable Objects allowance: heartbeats, rejected requests and D1 scans
Frank Zeng (@frankzeng2020) says an AI-written anti-abuse module pushed Durable Objects to 1.19 million requests against the 1 million included each month, costing him an extra $0.15; a budget alert email caught it, and the audit also found a D1 query path scanning 925 million rows a day and a signing key re-imported on every request. He shares a read-only self-audit prompt.
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.
D1 on the free plan: unindexed queries burn rows read
风易 (@Michael_liyang) says the costliest thing on the free plan is not writes but queries without an index: D1 bills by rows read and an unindexed query scans the whole table, multiplying rows read (a figure he marks as still to be confirmed). He recommends indexing hot query fields, selecting only needed columns and logging slow queries.
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.
Self-hosted Ember chat on Workers Free: daily limits stop saving messages until 00:00 UTC
Two replies about Kevin Rose's Ember chat app note that on the Cloudflare free tier the allowances are daily, and once they run out Ember stops saving new messages until midnight UTC; one cites the README's estimate of about 100 people sending 30 messages a day before the $5 Workers Paid plan is needed.
Ambersight: an open-source, read-only monitor for free-plan limits and bill spikes across Workers
Ambersight (jntegz/ambersight) runs as one Worker in your own account, reads Workers settings and metrics hourly with a read-only token, warns at 70% and 90% of each Free daily limit, and on Workers Paid alerts when a Worker's last hour is 5x its usual hour, noting there is no hard spending cap. The author announced it on X as free and read-only.
Brolly: self-hosted cost guardrails and emergency controls for Cloudflare
Brolly (standardagents/brolly, MIT) is a self-hosted Cloudflare app that watches billable usage across Workers, Durable Objects, D1, R2, KV, Queues and AI, alerts when spend moves out of line, and offers approval-first, reversible quarantine controls; automatic controls are opt-in and it never deletes resources.
FlareCost: D1 row width is not a second meter — rows read are rows scanned
FlareCost's D1 row and statement limits page lists 2 MB per row, 100 columns, 100 KB per statement and 100 bound parameters, and says a row's width does not change the row-read price: a 1 KB row and a 100 KB row are both one row, and rows read are rows scanned. Reviewed against official pages on 2026-11-02.
qianshuixia2026: D1 free row-read cap burned twice in one day, plus R2 and Workers pitfalls after the first paid orders
浅水虾 (@qianshuixia2026) published a 16 November 2026 X article after the first $12 and $29 orders. On 14 November a 10-minute cron full-table scan burned the D1 Free 5 million daily row-read cap in 2 hours 14 minutes; the same evening the author ran wrangler d1 execute --remote statistics that scanned about 4.08 million rows in 5 minutes and hit the cap again, then paid $5 to upgrade to Workers Paid. The article also covers an R2 multipart complete() customMetadata mismatch that failed a >24 MB export five times (50 credits sent as apology), 128 MB / 10 ms / 50-subrequest walls that a paid plan does not lift, and Queues’ 10,000 daily operations with three operations per delivered message.
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.
Community: D1 Free daily row-read block with about 12,000 rows showing after the UTC reset
On 14 November 2026, kaushalkrishna011 reported that production D1 reads on flexiyo.kaushalkrishnax.workers.dev were blocked with “Account has exceeded the daily D1 Free tier limit of 5,000,000 rows read,” while usage after the 00:00 UTC reset was only about 12,000 rows. A 24-hour dashboard view showed about 11 million rows, including usage before the reset. The account had one D1 database; Explore Data was also blocked. There was no staff reply as of this run.
FlareCost: the calculator only prices Workers, KV, D1, R2, Durable Objects and Queues
FlareCost’s calculator-leaves-out page (reviewed 2026-11-02) lists what its total omits: Hyperdrive queries, Workers Logs / Logpush, Vectorize, Containers, Workflows, Images, and registrar or zone plans. Logs today are 200,000 events a day on Free, and 20 million a month plus $0.60 per million on Paid, kept 3 or 7 days; from 1 December 2026 they move to Observability pricing, and those future rates were not copied. Extra D1 databases and R2 buckets above 100,000 each cost $0.10 per month and are also outside the total.
FlareCost: D1 databases: 10 on Free, 100,000 included
FlareCost’s d1-database-count page (reviewed 2026-11-02) is checked against the official Cloudflare pricing pages listed under Sources. Free plan: 10 databases. Paid plan: 1,000,000 databases per account. The first 100,000 are included. Each database above that costs $0.10 per month, even when it is empty. A single Worker can bind on the order of 5,000 D1 databases, excluding environment variables, because of the script metadata limit. The $0.10 is per database per month, on top of rows and storage. The calculator does not add that line.
FlareCost: Cloudflare D1 database size: 500 MB Free, 10 GB Paid
FlareCost’s d1-database-size page (reviewed 2026-11-02) is checked against the official Cloudflare pricing pages listed under Sources. Free plan: 500 MB per database, and 5 GB for the whole account. Paid plan: 10 GB per database. Account storage in the limits table is 1 TB, separate from the 5 GB included before the $0.75/GB-month charge. Hitting the per-database cap returns `Exceeded maximum DB size.` The billing storage meter is account-wide GB-month, not the per-database cap.
FlareCost: Cloudflare D1 queries per Worker invocation
FlareCost’s d1-queries-per-invocation page (reviewed 2026-11-02) is checked against the official Cloudflare pricing pages listed under Sources. Free plan: 50 queries per invocation. Paid plan: 1,000 queries per invocation. A `db.batch()` counts as one query against this limit, even if it contains many statements. Issuing 2,000 individual queries fails with `Too many API requests by single Worker invocation`. The batch still reads and writes the rows inside it. The invocation limit is not a billing discount.
FlareCost: Cloudflare D1 query duration
FlareCost’s d1-query-duration page (reviewed 2026-11-02) is checked against the official Cloudflare pricing pages listed under Sources. Free plan: 30 seconds, because the HTTP API itself must finish in 30 seconds. Paid plan: 30 seconds. A single statement that updates hundreds of thousands of rows can exceed execution limits. The docs say to batch work, for example 1,000 rows at a time. Time spent inside D1 still sits inside the Worker CPU and memory limits.
FlareCost: Cloudflare D1 rows-read allowance
FlareCost’s d1-rows-read-allowance page (reviewed 2026-11-02) is checked against the official Cloudflare pricing pages listed under Sources. Free plan: 5 million rows read per day, reset at 00:00 UTC. Queries fail after that. Paid plan: First 25 billion rows a month included, then $0.001 per million. A full scan counts every row. The official example is `SELECT * FROM table` on 5,000 rows counting as 5,000 reads. Paid reads are prorated. One billion rows past the allowance cost $1.
FlareCost: Cloudflare D1 Time Travel retention
FlareCost’s d1-time-travel page (reviewed 2026-11-02) is checked against the official Cloudflare pricing pages listed under Sources. Free plan: 7 days, and at most 10 restores per 10 minutes per database. Paid plan: 30 days, with the same restore rate limit. Time Travel is point-in-time recovery. It is not the undelete API. As of 23 October 2026, undelete only accepts databases deleted in the last 7 days. The pricing table does not list a separate Time Travel fee.
hiromsaeden: an unindexed D1 GROUP BY loop produced $2,129.00 in invoices on a hobby project
On 2026-11-18, Cloudflare Community user @hiromsaeden published a post-mortem of a personal hobby project. An unindexed GROUP BY aggregate query scanned about 877,000 rows to return 30 rows; an unintended loop triggered about 315,000 runs across two billing cycles. In the 15 October–15 November cycle alone, 1,447,580,203,670 rows (1.44 trillion rows) were read. Invoice IN-83890481 was $529.88 USD (paid). Invoice IN-89082487 was $1,599.12 USD ($1,447.58 D1 Rows Read + $6.16 Workers CPU + $145.38 tax). Total billed was $2,129.00 USD; the expected budget was about $20/month. Support cases #02408621 and #02434399 led to a one-time courtesy credit of $953.74 (including a held $275.00), leaving a final balance of $645.38 USD; support said no further adjustments would be made. These amounts are the author’s invoices and credits, not a Billflare case total in this guide.
风易: On the free tier, what Cron fears most is task overlap; use a KV lock to skip rather than running again in parallel
On 2026-11-13, X user @Michael_liyang (风易) wrote an experience note about scheduled tasks on the Workers free tier: what is feared most is not failure, but overlap. Cron triggers once every 5 minutes; if the previous run has not finished, the next one arrives, and the same batch of data is processed twice. The approach the author gives is: take a KV lock before executing, and skip immediately if it cannot be obtained; the lock must carry an expiration time, so that a hung task does not leave the lock stuck; after the run finishes, write to D1 and then release the lock. The chain is trigger → take the lock → skip if not obtained → execute if obtained → write the result → release the lock. The author emphasizes: the lock prevents duplicates; it does not prevent slowness.
风易: On the free tier, do not brute-force concurrent D1 writes; queue first, then write serially
On 2026-11-17, X user @Michael_liyang (风易) wrote a new D1 write experience note: on the free tier, do not brute-force concurrent D1 writes; queue first, then write serially. The author says D1 writes are serial; when several requests write the same table at the same time and collide, the mild case is a retry and the severe case is a failure. The approach is: 1. Write requests enter the queue first; 2. The consumer writes serially, batch by batch; 3. On failure, return to the queue and wait for the next round. The chain is request → enter the queue → write D1 serially → return to the queue on failure. The author emphasizes that reads can be freely concurrent, and writes must be queued.
hontrandev: a Workers Free D1 board list query read about 15,000 rows to return 58
On 2026-11-18, X user @hontrandev wrote that Cloudflare emailed that D1 had reached 78% of the 5 million rows-read-per-day limit on Workers Free, for a small internal ticketing app. The author says one board list query was reading about 15,000 rows to return 58, and that they wrote up why and how they fixed it, with a link in a reply. This is a usage warning on the Free daily cap, not an invoice amount.
yaobuilds: Auto-refresh on the stats page may use up the D1 free tier's daily quota of 5 million rows read
On 2026-11-19, X user @yaobuilds reminds: a D1 free account has a daily quota of 5 million rows read, counted by rows scanned. The author gives an example: assuming 10,000 rows are scanned per minute, 24 hours requires reading 14,400,000 rows. The suggestion is to look at meta.rows_read first, then multiply by the number of calls per day; when the total does not need to be updated in real time, it can be cached for a few minutes. The author writes that the busiest "user" may be one's own auto-refresh. This is a usage calculation method, not a bill that has already occurred.
风易: What cache fears most is looking up things that do not exist; a crawler scanning random keys makes every request hit D1
On 2026-11-16, X user @Michael_liyang (风易) wrote: what cache fears most is looking up things that do not exist. A crawler scans random keys, penetrates every time, and hits D1 directly, so the cache is added for nothing. The approach is to cache empty results as well, and give the TTL only 5 minutes; log high-frequency nonexistent keys to D1, and blacklist them once confirmed to be a crawler. The chain is request → check cache → return on hit → query D1 on miss → write an empty-value cache if it does not exist. The author's judgment: the cache prevents repeated lookups; it does not block lookups of nonexistent things on the database's behalf.
风易: On the free tier, do not send write operations one by one; a D1 batch can write N rows at one time
On 2026-11-17, X user @Michael_liyang (风易) wrote: on the free tier, do not send write operations one by one; what one batch write saves is the number of rows written and the number of subrequests. D1's batch can carry multiple statements at one time, and one call writes N rows. The chain is request → accumulate a batch → write once with batch → retry the whole batch on failure, and use an idempotency key as a backstop. The author's judgment: do not accumulate when real-time requirements are high; accumulate only for logs, bookkeeping, and bulk imports; write how long to accumulate into the config, and force a flush to disk on timeout.
风易: Do not call the upstream response live every time; use the Cache API for edge caching
On 2026-11-18, X user @Michael_liyang (风易) wrote: do not call the upstream response live every time; use the Cache API for edge caching. The approach is: the request checks the Cache API first and returns directly on a hit; on a miss, call upstream, write the successful response into the cache with a TTL; write operations do not enter the cache, and the hit rate is recorded in the D1 daily report. The chain is request → check cache → return on hit → call upstream on miss → write back → return. The author's judgment: what is cached is the upstream result, not your business state.
风易: On the free tier, do not wait synchronously for bookkeeping and log writes; return first, then persist to the database in the background with waitUntil
On 2026-11-16, X user @Michael_liyang (风易) wrote: on the free tier, do not wait synchronously for bookkeeping and log writes; return the response first, and throw write operations to the background. A synchronous write to D1 both slows the response and burns CPU time. The approach is: the response contains only the business result; bookkeeping goes through waitUntil to persist in the background; on failure, enter the queue for a catch-up write. The chain is request → call upstream → return the result first → write the books in the background → catch-up write on failure.
风易: On the free tier, do not log in full; logging in full burns the D1 rows-written count first
On 2026-11-14, X user @Michael_liyang (风易) wrote: on the free tier, do not log in full; what full logging burns first is the D1 rows-written count. The approach is: log all errors, with a trace id and an error code; sample only 1% of successes, enough to see the trend; write the sample rate into the config, temporarily raise it when investigating, then lower it back. The chain is request → assign a level → log all errors / sample successes → redact → persist to D1. The author's judgment: logs are for investigation, not for stockpiling for retirement; the rows written that are saved are left for real errors.
Nash: 115,937 D1 call-log rows since 22 October, after logging every uptime-monitor 402; sampling 1 in 100 cut the noise
On 2026-11-04, X user @NashBriggsy (Nash) wrote that their D1 call log had 115,937 rows since 22 October. Every request to their agent tools wrote one row with 17 columns (tool, status, paid, price, payer, ms, country, user agent and more). The flow was: the agent asks, gets a 402 with the price, signs, the facilitator settles, the tool answers, and the Worker writes the row. What went wrong, the author says, is that they also logged every uptime monitor’s 402, and that ran up the D1 bill. On 29 October they started sampling monitor 402s at 1 in 100 and added a time index for reports. The post does not state a dollar amount.
Feng Yi: On the free tier, the cheapest rollback is not a release—it's a switch in KV
On 2026-11-21, X user @Michael_liyang (Feng Yi) wrote: on the free tier, the cheapest rollback is not a release—it's a switch in KV. Steps: 1 put the switch in KV; 2 read the switch first on the request—on takes the new path, off takes the old path; 3 canary-split by user hash, 10% first and then full rollout; 4 if something goes wrong, change KV and roll back immediately, without waiting for a release. Path: request → read switch → split → new/old path → log to D1. Switches also need expiry cleanup; don't let them pile up into dead config.
Feng Yi: AI cost weekly|11/20; watching the model unit price is not enough—first split costs across requests, CPU, tokens, writes, and retries
On 2026-11-20, X user @Michael_liyang (Feng Yi) published "AI cost weekly|11/20". The conclusion is that watching the model unit price is not enough—first split costs across requests, CPU, tokens, writes, and retries. Figures the author checked this week: creating a D1 table is rows_written=2, and inserting 1 row is rows_written=1; the Workers free tier is 100,000 requests/day; the D1 free tier is 5,000,000 row reads/100,000 row writes per day; R2 egress is 0 美元. Suggested ledger fields: requests / rows_written / cpu_ms / input_tokens / output_tokens / retry_rate / cost_per_success. The author cautions: a free quota is not 0 cost.
Feng Yi: a free Cloudflare stack still needs an exit map; if a restore into a fresh account takes over 30 minutes, it is cheap but not operationally free
On 2026-11-21, X user @Michael_liyang (Feng Yi) replied to @hiromu_bdy that the free stack still needs an exit map: export D1 to SQL, R2 objects with checksums, and Worker config to version control. Test a restore into a fresh account; if that takes over 30 minutes, the stack is cheap but not operationally free. The 30-minute threshold is the author’s operational test, not an official limit or a billed amount.
Feng Yi: Classify the error before retrying; retrying a 4xx error a hundred times still burns quota for nothing
On 2026-11-19, X user @Michael_liyang (Feng Yi) wrote: classify the error before retrying; retrying a 4xx error a hundred times still burns quota for nothing. Steps: 1 retry only 429/5xx/timeouts/network disconnects; 2 for 400/401/403/404, return directly and do not enter backoff; 3 for non-retriable errors, only log to D1 and do not burn the upstream. The error code is the switch for retries. Path: failure → determine the error code → back off only if retriable → return directly if not retriable. The author's conclusion: retrying is a way to save money; misclassifying the error is where burning money begins.