Cloudflare billing guides
Browse billing risks, cost limits, and troubleshooting experience by product.
308 guides
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.
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.
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.
A static site that sent every request through the Worker: check run_worker_first
gm365 got repeated Workers usage-alert emails (up to 92%) on a static site and traced them to an AI-written "run_worker_first": true in the config.
Next.js ISR on OpenNext + Workers KV: why the cache never expires and how to cap it
Meathill traces a KV storage overage on his own site to OpenNext's KV incremental cache writing keys without a TTL and keeping every deploy's build-prefixed snapshot, then shows how he rebuilt the cache lifecycle.
Receive Workers Issues through MCP Events
Cloudflare announces signed Workers Issues notifications for compatible MCP clients, with account or single-Worker subscriptions.
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.
Free accounts: reaching a Billing case form before activating Zero Trust Free
A Community question from a Free account: Zero Trust Free checkout requires consent to charges for usage beyond free limits, and the asker wanted official clarification and a $0 limit before activating but found only help articles under Billing; a reply says all drop-downs must be opened for the case button to appear.
Free plan FAQ: overage errors, reset time and CPU limits
风易 (@Michael_liyang) answers three common questions: whether going over the free quota silently charges you, when quotas reset, and whether the free plan can be used commercially.
ClaudeBar’s Cloudflare AI provider: Workers AI neurons and overage in the menu bar
The open-source macOS menu bar app ClaudeBar added a Cloudflare AI provider that shows today’s Workers AI neurons against the free daily allocation, an estimated Workers Paid overage, AI Gateway tokens and the last invoice, using a read-only API token.
Layered defenses after a Durable Object alarm loop
星星之火可以燎原 (@fireandstart) reads a public Durable Object alarm-loop recap and argues for layered defenses rather than relying on being more careful next time.
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.
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.
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.
Idle projects can still bill: check background tasks and storage
@An_yhl reads @shmily7’s follow-up as a reason to audit abandoned AI projects: check scheduled background work and storage reads and writes, stop what is unused instead of just closing the page, and turn on alerts knowing they will not stop anything.
Removing unneeded Durable Objects from MCP servers on Workers
Justin (@interjc) describes moving read-only MCP servers from McpAgent, which starts a Durable Object per session, to stateless createMcpHandler, and shares a prompt for auditing Workers bindings and runaway usage patterns.
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.
Introducing on-demand profiling: Cloudflare production examples
Dominik Picheta introduces on-demand CPU and memory profiling for Workers and Durable Objects, sharing Cloudflare examples of removing duplicate work and unnecessary allocation paths.
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.
A prompt to set up Cloudflare budget and usage alerts
Merill Fernando (@merill) shares a prompt that asks a coding agent to install Cloudflare’s CLI, check for a billing budget alert and add usage alerts based on last month’s usage, and lists what it set up for him.
Check getAlarm() first and keep preview off real Durable Objects
@graycoin retells the Durable Object alarm loop shared by @shmily7 and draws three habits: check getAlarm() before setAlarm(), do not bind preview environments to real Durable Objects, and reread AI-generated storage and scheduling code.
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.
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.
Durable Object alarm rules for agents.md
Viking (@vikingmute) shares the AI-generated Durable Object alarm rules he keeps in agents.md and suggests having another model review changes.
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%.
Cloudflare billing pitfalls thread
The author organizes Cloudflare billing risks by product and shares experience with budget alert emails.
Workers AI Free: error 4006 can persist after the 00:00 UTC reset
Several Workers Free users report Workers AI returning error 4006 ("used up your daily free allocation of 10,000 neurons") after the 00:00 UTC reset while the dashboard shows 0 or fewer than 10,000 Neurons used; one user observed the block lifting about 24 hours after that day’s first use. No Cloudflare staff reply as of 2026-11-13; four more topics on November 8–9 and another on November 12 report the same.
Workers tracing bills per span: measure spans per trace before choosing a sampling rate
Omid Saffari explains that a single traced request across RPC calls can produce many billable spans, and suggests measuring span density on one path before setting production sampling.
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.
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.
OpenNext on Cloudflare: 7.87M R2 reads from cache hits and 10M Worker requests from a prefetch loop
Meathill debugs two back-to-back cost spikes on a Next.js 16 site on Workers: background R2 reads on every RegionalCache hit, then an infinite _rsc prefetch loop from OpenNext cache interception, with the config changes that stopped each.
Don’t call your Durable Object alarm handler directly
Jamie Barton (@notrab) says a `<` written instead of `<=` in a self-rescheduling alarm cost him 8 billion database operations across 191,000 requests in 30 days, and that the lesson is to call setAlarm() rather than alarm().
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.
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.
Durable Objects sharing one isolate are each billed for 128 MB
David Matějka (@matej_21) points out that several Durable Objects can be placed in one 128 MB isolate while each active object is still billed as 128 MB.
Workers pricing and limits: how CPU-time billing works and how to estimate your bill
BenZ explains, in Traditional Chinese, the two dimensions of a Workers bill — requests and CPU time — the Free and Paid limits, a step-by-step way to estimate a monthly bill, and the limit errors people hit most.
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.
Video transcription on Cloudflare Containers and Workers AI: a per-hour cost model
Pete Stewart explains why ffmpeg cannot run in a plain Worker, moves it into a scale-to-zero Container, sends audio to Whisper on Workers AI, and works out what each billed component costs.
Workflows step pricing: a migration team’s cost estimate
daniel101 compares a proposed per-step meter with a production workload and discusses the trade-off between granular retries and projected cost. The figures are estimates, not an issued bill.
The immortal alarm: a Durable Object alarm that rescheduled itself forever
Bounded’s founder describes a self-rescheduling Durable Object alarm whose row writes grew with the number of objects ever created, why the in-app meter missed it, and the rule that fixed it.
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.
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.
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.
A library timer kept Durable Objects from hibernating
Anurag Bhagsain (@abhagsain) says YJS awareness’s internal 3-second setInterval stopped their Durable Objects from hibernating, so duration cost accumulated with every new presentation.
Why Next.js images got expensive on Cloudflare: route them through /cdn-cgi/image and cache them
Meathill explains why the default /_next/image endpoint on OpenNext was uncacheable and rerun on every request, and replaces it with a custom loader to Cloudflare Image Transformations plus a long Cache Rule.
The Ultimate Guide to Cloudflare’s Durable Objects: the pricing section
Ashley Peacock (@ashleypeacock) wrote a long introduction to Durable Objects; its pricing section explains GB-s, why you are billed for the full memory allocation, how WebSocket hibernation and the 20:1 message ratio lower cost, and the storage charges.
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.
Budget alerts
Cloudflare documents account-wide spend alerts and their notification limits.
Independent. Unofficial. Source-first.