billflare.

Cost optimization · Content tag

Browse content discussing cost optimization.

93 matching items

Cases · 7

Workers

ivebenfreed: a Dynamic Workers bill came to nearly $80 in October after unique-worker charges.

X user @ivebenfreed (Ben Freed) says the Dynamic Workers bill came to nearly $80 last month because each Code Mode call spun up a new instance, including via Cloudflare's official @cloudflare/codemode package, at $0.002 per unique worker per day past the first 1,000 a month; on the worst day in October there were over 12,000 of them. The author later stopped using Dynamic Workers (the count went from roughly 2,600 a day in October to zero since November 13). “October's pace would have come to about $155 a month” is a projection and is not used as the event amount. Replies in the thread are not official Cloudflare responses.

Reported amount · USD

$80

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

Meathill: OpenNext KV ISR cache left unpaid TTL work and ballooned storage.

Meathill reports that an OpenNext Cloudflare KV incremental-cache path for Next.js ISR left a TODO for KV TTL, so versioned page snapshots accumulated. Dashboard billable storage showed 3.59 GB-month over the 1 GB free allowance with ongoing extra charges, and historical zombie data reached about 24 GB before he moved to a new namespace. He does not state a dollar invoice total.

Reported amount · USD

Not disclosed

Reported cause: Write volumemeathill.com
First reported: Latest update:
D1

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

Reported cause: Repeated pollingx.com
First reported: Latest update:
D1

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

Reported cause: Read volumefullstacksveltekit.com
First reported: Latest update:
D1

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

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

RetainDB: a reported $36k bill from a queue loop with 81 users.

Reddit user alameenswe, building RetainDB on Workers, KV, Durable Objects and Queues, reports a Cloudflare bill of about $36k for one month with 81 users; the post body says $35,000. He attributes it to a queue consumer that re-queued async writes, 12 unbatched Durable Object writes per memory write and a kv.list() authentication fallback.

Reported amount · USD

$36,000

per month

Reported cause: Unbounded loopwww.reddit.com
First reported: Latest update:

Guides · 85

GuideDurable ObjectsAI SearchWorkersCloudflare CLI

xiaomovps: sleep-while-waiting in Pi 1.6.1 and Agents SDK 0.34.0, Search for Agents billing, and enabling a subscription from the CLI

On 2026-11-27, 𝕏 user xiaomovps describes several billing-related changes in Pi 1.6.1 and Cloudflare Agents SDK 0.34.0. The author says ToolPark, while waiting for confirmation or a scheduled task, writes state into the Durable Object's built-in SQLite and then sleeps, and does not occupy background runtime; Search for Agents search usage is counted against the AI Search plan quota; after upgrading cf to above 1.0.0-rc.5 and logging in again, you can view the price in the terminal and confirm enabling Workers Paid, R2, or Zero Trust, provided a payment method is already bound on the account. The author also warns: once a session has run on Pi 1.6, the storage format is upgraded and old Pi 1.5 cannot read it; do not roll the Worker back to 1.5.

GuideEmail SendingWorkers

Marcos Placona: Workers Free Email Sending is not free Resend; use it as a no-quota alert pipeline to verified addresses

On 2026-11-26, X user Marcos Placona wrote that Email Sending on the Workers Free plan is often misread as “free Resend.” The author restates the official limits: Free-plan sends are only to verified destination addresses (error E_RECIPIENT_PLAN_RESTRICTED otherwise), those sends are free on every plan and do not count toward the monthly quota or daily sending limit, with up to 200 verified destinations per account, 50 recipients per message, and 25 MiB per message. The author sketches a cron Worker uptime checker, warns against stretching the free path into a 200-person newsletter, and says to pay the $5 Workers Paid plan the moment mail has to go to someone who is not on the verified list. Worker config samples in the article body were missing from the extracted text.

GuideWorkersR2D1Email Routing

Have a domain, don't buy a server yet: quota boundaries when using the Cloudflare free plan for DNS and going live

In an 𝕏 article on 2026-11-26, 𝕏 user Egg_2rich compiled a free-quota quick-reference table against what the author says is the 2026-11-26 Cloudflare documentation, and wrote several pitfalls: Workers Static Assets static requests do not consume the daily request quota, but the per-file limit is 25 MiB; do not set run_worker_first to true, or after Free is exceeded the related paths return 429 directly and do not fall back to static assets; the Free Worker per-invocation CPU limit is 10 ms; R2 egress is free, but Standard storage has free quotas of 10 GB-month, Class A 100 万次, Class B 1,000 万次, and others, and downloads through a Worker count toward the Workers Free daily request quota of 100,000 次.

GuideEmail RoutingEmail Sending

TooleryAI: when using Cloudflare for HTTPS and free receiving, avoid Flexible redirects, and tell Email Routing apart from Email Sending

In a checklist article on 2026-11-26, 𝕏 user TooleryAI writes several pitfalls on the Cloudflare side: if the origin itself also forces HTTPS, do not choose Flexible, or it may trigger ERR_TOO_MANY_REDIRECTS; the Email Routing free plan centers on free receiving and forwarding, and if you want to send outbound from a domain mailbox, the author says you can pair it with Resend, or watch Email Sending (Beta), which is still in internal testing in the sidebar. The article also includes domain-purchase promotions and other content; this entry includes only the parts related to Cloudflare configuration and billing boundaries.

GuideEmail SendingWorkers

SlivenRed: don't rush to replace Resend with Cloudflare Email Sending; the two free-tier logics differ

On 2026-11-26, 𝕏 user SlivenRed compares the free-tier logic of Cloudflare Email Sending and Resend. The author says that to send to external customers, the Resend free plan is 3,000 封 per month (daily cap 100 封), with no restriction on recipients; the Cloudflare free plan cannot send to external unfamiliar mailboxes, and the minimum spend to send to customers is upgrading to Workers Paid (the author writes it as 5 美元 per month, about 台币 160 元), which includes 3,000 封, then $0.35 每千封 after that (the author writes it as about 台币 11 元). For an internal verified list (cap 200 个信箱), the author says Cloudflare is completely free and does not count against quota. The author suggests: if Workers and DNS are already bound, consider spending $5 to consolidate; if you want to use the free quota first for e-commerce notifications, or to look at open rates and newsletters, using Resend directly is more convenient.

GuideEmail SendingWorkersEmail Routing

frankzeng2020: hands-on steps for sending alerts to a verified mailbox with Email Sending on Workers Free

On 2026-11-25, 𝕏 user frankzeng2020 writes that when he sends to a verified mailbox from his own free account, the quota column shows unlimited, and he does not need to create an API key. The post gives the steps for Onboard Domain, adding and verifying the recipient mailbox under Destination addresses in Email Routing, and wrangler email sending send. The author warns not to use it to send verification codes to users; if the domain is still sending mail elsewhere and had no DMARC before, the author says Cloudflare will add a reject rule. In a later reply, the author separates the monitoring Worker from the site Worker, and says both are currently on Cloudflare and that external monitoring is still needed to be safer.

GuideArgo Smart RoutingR2

木豚Moku: Argo may still bill on a cache hit; free R2 egress does not mean images that pass through an Argo-enabled domain are free

On 2026-11-25, X user @wohaoz (木豚Moku) writes: one Cloudflare Argo billing pitfall is that it does not charge only for cache-miss origin traffic; traffic the domain delivers to visitors may still count toward Argo even on a cache hit. So free R2 egress does not mean cover images that pass through a domain with Argo enabled are also free. To isolate this cost, images should be served directly from another independent domain zone that does not have Argo enabled; merely switching to another subdomain under the same root domain does not isolate it. The author says that after the covers were moved out, Argo usage dropped noticeably. The body is complete (note_tweet matches the displayed text). The accompanying images were not OCR’d. This is the author’s observation, not the full text of an official rule.

GuideContainersDurable Objects

aobane_tsumugu: with Durable Object-managed Containers, lowering memory can still raise cost if an older CPU generation is assigned

On 2026-11-24, @aobane_tsumugu (青羽つむぐ) wrote that Cloudflare Containers are billed on CPU, memory, and disk usage time. The author said that besides the preset “scheduler-backed application” combination, a “Durable Object-managed application” option that lets the user choose the instance size was released on September 30, and that in theory cutting memory from 3 GB to 1 GB would cut the memory portion of the cost to one third. The author also said that, in their observations, Durable Object-managed containers tend to be assigned older-generation host CPUs, making the same work 1.1–3.6 times slower; the extra CPU-seconds can outweigh the memory saving, so cost can rise instead. The author described this as their impression as of late November 2026, not an official statement. The visible post and the note_tweet text are the same complete body.

GuideWorkersD1R2

iamAnish: an author example of about $65/month on Vercel + Supabase + Resend versus $5/month on Cloudflare

On 2026-11-24, @iamAnish published an X article titled “How I cut my Infra bill 13x with Cloudflare,” comparing a typical AI-wrapper stack of Vercel + Supabase + Resend at about $65/month with Cloudflare at $5/month, and said that $5 covers the whole account rather than one project. The author also wrote that Cloudflare has “no bandwidth charges,” that D1 is “basically SQLite, capped at 10 GB per database (Workers Paid plan),” that Next.js on Cloudflare through OpenNext still sees occasional crashes and timeouts, and that “nobody knows if Cloudflare’s pricing stays this good forever.” The $65 vs $5 figures, and the author’s yearly $780 vs $60 / “$720 back on a single app” math, are the author’s examples, not invoice amounts. The “no bandwidth charges” claim is the author’s, not an official statement (Argo and other products can still bill for traffic). The article body is complete.

GuideWorkersR2Email RoutingWorkers AI

Overseas BabyChang: One domain to master the Cloudflare free stack; the quota table and the six pitfall tables could not be embedded in the body, so the article is not marked complete

On 2026-11-24, X user @Thuweni1 (Overseas BabyChang) posted a short post and attached the article “Master Cloudflare with One Domain: Freely Set Up a Website, Mailbox, Image Host, and AI API.” The short post says one domain plus the free plan can set up a website, a domain mailbox, an R2 image host, and a free AI API, and that the account is handed to an Agent to manage with the cf command line. The article plain_text stops at the heading “Quick reference: free quotas and the most common pitfalls.” Code blocks such as the quota table and the six pitfall tables are in article.entities.code; because they have no position in the body, they have been archived as unplacedBlocks, and the article cannot be marked complete. The author states that quotas follow Cloudflare’s official documentation and may be adjusted later.

GuideR2Email Routing

Lin Xiaotao: A $0.00 stop-the-bleeding checklist for multiple sites on Cloudflare; the article is truncated after the “3 must-enable items,” and the promised “3 things not to touch” was not read this round

On 2026-11-24, X user @tushenmei (Lin Xiaotao Overseas Diary) posted a short post and attached the article “No Sign of Traffic Yet, and You’ve Already Turned Yourself into a Full-Time Ops Person? A $0.00 Stop-the-Bleeding Checklist for Multiple Sites on Cloudflare.” The article body that was read states that, when multiple sites have just gone live, only 3 things truly save you: separating inbound and outbound mail, Turnstile anti-abuse on the backend, and hosting public images on R2. Receive mail by forwarding with free Email Routing; do not treat it as a formal outbound mailbox. Do not enable the orange-cloud proxy on MX and TXT. Turnstile must be verified again on the backend, and rate limiting should at first apply only to core endpoints such as the captcha and forms. Put public images in R2: the author says several sites together store 673.79 MB of public assets, Class A/B operations 一万多次, and the billing dashboard is still $0.00. The short-version conclusion also says not to turn on a move to Workers, KV, D1, or full-site caching before reaching that volume; the author also writes that if you insist on moving the backend into Workers, you first pay at least an extra $5 per month (the bill is what counts). A free tool read plain_text twice, both times 1762 characters, truncated after item 3, R2; the detailed body of the “3 things not to touch yet,” which the article said it would spell out, did not appear this round. $0.00, 673.79 MB, and 一万多次 are the author’s dashboard observations, not case amounts. The accompanying images were not OCR’d.

GuideContainersWorkersD1

gargantuaxdev: A Cloudflare Containers idle-billing warning; the author therefore moved the site to a VPS

On 2026-11-23, X user @gargantuaxdev (GargantuaX | Gx) writes: shipwords v0.3.0 moved from Cloudflare Workers to a VPS. The author says a video site cannot do without ffmpeg, Workers cannot run it, so the only option is Cloudflare Containers, but “it has an idle-billing problem the official team has never fixed, and a little inattention may mean a 上千元 bill.” The author also says that once the site scales up, D1 also has transaction and concurrency problems, and says “CF Workers saves hassle, but not money,” and therefore switched to a cheaper, longer-term VPS setup. The body is complete. “The official team has never fixed it” and “may be 上千元” are the author’s warning, not an official admission, and not an invoice amount.

GuideR2

Feng Yi: R2 egress is 0 美元, but Class A/B operations, storage, and read requests still have to be counted

On 2026-11-22, X user @Michael_liyang (Feng Yi) writes in a reply: R2 egress is 0 美元, but Class A/B operations, storage, and read requests still have to be counted; for a small project, first calculate uploads, downloads, and lists once each on a 每万次 basis, then decide whether to put both logs and images on R2. This is a new short tutorial from an existing author, and it is not merged with the older piece. The body is complete. Egress at 0 美元 must be checked against official R2 pricing; that Class A/B and storage are still billed is the author’s restatement of an existing official rule, and what is added is the budgeting method of “first calculating uploads, downloads, and lists on a 每万次 basis.”

GuideD1R2Workers

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.

GuideWorkers KVWorkersD1

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.

GuideWorkersD1R2

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.

GuideObservabilityWorkersR2

Feng Yi: After Observability is billed by write volume, capture all errors and sample only 1%–10% of successful requests; put the body in R2 and set a 7-day expiry

On 2026-11-20, X user @Michael_liyang (Feng Yi), replying to @AdrianPunk115's reminder that from 1 December logs and request tracing will be billed by the volume of data written and stored, wrote: once billing is by write volume, this will change to "capture all errors and sample 1%–10% of successful requests"; a trace keeps only request_id/route/status/duration, and the raw body and prompt go in R2 with a 7-day expiry. The author cautions: estimate bytes written per day before launch, and don't wait for the bill to find that tracing costs more than the business.

GuideWorkers

citlayik: a forgotten CORS Anywhere proxy was still serving other people and pushed the account to 91% of the daily Workers request limit

On 2026-11-20, X user @citlayik (pseudozach) wrote that Cloudflare emailed that morning that the account had hit 91% of its daily Workers request limit. In the dashboard the author found an old CORS Anywhere proxy they had stopped thinking about: the URL was still doing its job, “just not for me.” The post is a free-tier usage warning, not an invoice; it does not state a dollar amount or say that a charge was issued.

GuideWorkersD1

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.

GuideWorkersD1

风易: 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.

GuideD1

风易: 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.

GuideD1Workers

风易: 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.

GuideD1Workers

风易: 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.

GuideD1Workers

风易: 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.

GuideD1R2WorkersKVQueues

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.

GuideWorkers

ivebenfreed: official @cloudflare/codemode Dynamic Workers came to nearly $80, about $155 at October’s pace

Ben Freed (@ivebenfreed) reports that Dynamic Workers used for code mode, including Cloudflare’s official @cloudflare/codemode package, created a new instance on each call. Unique Workers past the first 1,000 in a month are charged $0.002 each per day; a worst October day had more than 12,000, and the bill came to nearly $80. October’s pace would have been about $155 a month. After switching to static bash / Pyodide / QuickJS workers, the unique-worker count went from roughly 2,600 a day to zero from 13 November. These amounts are the author’s figures and are not added to guide totals; a related case already records the approximate $80 bill.

GuideD1Workers

风易: 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.

GuideWorkers

风易: Cold starts on the free tier cannot be eliminated; do not let a Cron health check become a timer that burns quota

On 2026-11-14, X user @Michael_liyang (风易) wrote: cold starts on the free tier cannot be eliminated, and can only be hidden. The first request has to establish the connection on the spot and load the model on the spot, and users fully perceive that slow moment. The approach is for Cron to send a lightweight health check once every 5 minutes, taking only the health check and not inference, to keep the warm instance; alert only after the health check fails two times in a row, and do not let the keepalive itself become a timer that burns quota. The chain is Cron → health check → record status → alert on failure → switch to degradation.

GuideWorkersKVD1

风易: 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.

GuideWorkers

Feng Yi: CORS preflight can also burn the free allowance; uncached OPTIONS add one extra Worker invocation before every real request

On 2026-11-13, X user @Michael_liyang (Feng Yi) wrote that cross-origin preflight also burns the free allowance. The browser sends an OPTIONS preflight before each cross-origin request; if it is not cached, that is one extra Worker invocation before every real request, and under volume this is what hits the wall first. The author’s approach: add Max-Age on the preflight response to lengthen the cache, allow only fixed origins and methods, and do not use wildcards. The path is request → preflight cache lookup → return on hit → enter the Worker only on a miss.

GuideWorkers

annightyhq: Workers Paid bills CPU time, not time spent waiting, so set a CPU limit for heavy work

@annightyhq explains Workers Paid pricing for people comparing it with Vercel Pro: $5 includes 10 million requests and 30 million CPU ms a month, overage is $0.30 per million requests and $0.02 per million CPU ms, egress and static asset requests are free, and waiting on databases or upstream APIs is not billed; he suggests setting a per-invocation CPU limit for CPU-heavy work such as image processing.

GuideWorkersWorkers AIR2D1Pages

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).

GuideWorkersR2D1Workers AI

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.

GuideD1Workers

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.

GuideDurable ObjectsSQLite

Bradley Leatherwood: on Durable Objects every SQLite row read is billed; a quiet-moment ANALYZE produced 20,006 reads to return 5 rows, and a plain ANALYZE on a 37,000-row object was billed about 2 million rows

On 2026-11-02, Bradley Leatherwood published an inKibra note, also linked from the X account @mayliveforever, about SQLite inside Cloudflare Durable Objects. The platform bills every row SQLite reads, not just the rows it returns: a lookup that returns 5 rows but checks 20,000 is billed for 20,000. The author says that for several days the Cloudflare bill ran around $66 a day, almost all of it rows read, because queries were reading every row when no index was used; the peak day came to $366, mostly rows written. These amounts are the author’s reported invoices, not a Billflare case total in this guide. The same event is already recorded as a Billflare case; this entry is the technical post-mortem, including later figures the case snapshot may not yet carry.

GuideWorkersDurable ObjectsQueuesContainersCron Triggers

Lunora: codegen lints that name the billing meter a loop moves

Daniel (@_prisis_) says a Cloudflare bill spike is usually a loop, not traffic; his framework Lunora now flags count_without_index, queue_dispatch_cycle, cron_every_minute and container_long_sleep_after at codegen, before deploy, naming the meter each one moves.

GuideDurable ObjectsContainersR2

Packing always-awake Durable Objects into Containers to cut duration cost

Robert Chandler (@bertie_ai) says keeping 1,000 Durable Objects awake costs $4,050 a month, and that he ran the same 1,000 for $22 a month by pooling them inside Containers with workerd; the thread covers why, the durability trade-off and when real Durable Objects are still cheaper. The figures are the author’s calculations, not a bill.

GuideDurable ObjectsR2WorkersWorkers Logs

Designing a poker game on Durable Objects so idle time costs nothing

Philip Atkinson describes the architecture of his multiplayer poker game on the Cloudflare Developer Platform and the cost rules he follows: archive finished games out of Durable Object storage, hibernate WebSockets, wake with alarms and treat logging as a cost decision.

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.

GuideContainersDurable ObjectsWorkers

Sadcat: inactivity timeout and idle memory and disk billing in a Cloudflare Containers primer

On 2026-10-04, the Sadcat blog (byline Xiao Bian) published “Cloudflare Containers: A Complete Primer — Worker, Durable Object, and the Container Lifecycle.” The article writes that setInactivityTimeout() can keep an instance alive for a while after the Durable Object has no activity, up to six hours; if it is not set, the Container is stopped soon after the Durable Object goes idle. Billing is in units of 10 毫秒; CPU is charged by actual time used, while memory and disk are charged by the instance’s configured amount and time alive, so keeping a long inactivity timeout on a large number of idle instances still accumulates RAM and disk charges. Workers Paid includes some CPU, memory, and disk quota within 5 美元 per month, and usage beyond that is billed by consumption; Worker, Durable Object, logs, and network transfer are each calculated separately. The article says regions such as Taiwan, Oceania/Korea/Taiwan, currently include 500 GB of egress per month, and 0.05 美元 per GB beyond that. These price figures must be checked against the official Containers pricing page and not treated as case amounts. This piece was published before this round’s X window; it is a new find from this round’s web search and was not originally in the catalog.

GuideDurable ObjectsContainersWorkers

Outgoing WebSockets don’t hibernate

Fabrizio Lamanna (@fabriziolams) describes building a Twitch giveaway tool on Cloudflare and learning that Durable Objects hibernate incoming WebSockets but not outgoing ones, so an always-on outbound chat connection keeps the object resident and on the bill; he moved that connection to Containers.

GuideDurable ObjectsContainersWorkersBrowser Rendering

An AI agent on Durable Objects versus an always-on container

bigdatachads compares Cloudflare’s Moltworker, which keeps an agent in a Sandbox container, with his agent built natively on Workers and Durable Objects, arguing that a container kept running 24/7 to avoid cold starts costs far more than per-request Durable Objects for a personal agent. The figures are his estimates.

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 productsWorkersDurable ObjectsR2

Optimize costs

Cloudflare lists ways to find and reduce usage-based charges by product.

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