Cloudflare billing guides
Browse billing risks, cost limits, and troubleshooting experience by product.
308 guides
Cloudflare cost playbook
A community playbook for Cloudflare cost retrospectives, cost models, and code review.
D1 billing incident and circuit breakers
Nathan Schram describes D1 write risks and circuit-breaker approaches.
WebSocket hibernation with Durable Objects
Cloudflare shows how Durable Objects hibernate WebSocket connections while idle.
Durable Objects alarms
Cloudflare documents how Durable Object alarms are scheduled, retried, and deleted.
Optimize costs
Cloudflare lists ways to find and reduce usage-based charges by product.
A usage circuit breaker for Cloudflare Workers
Yingjie Zhao describes a self-facing circuit breaker that pauses cron jobs on his Workers-based news aggregator as monthly usage nears plan allowances.
cloudflare-cost-guard
Louis Cai’s open-source rules and TypeScript base class for keeping Durable Object alarms and Worker schedulers from runaway loops.
cf-usage-guard
An open-source library that reads account usage from the Cloudflare GraphQL API and circuit-breaks individual Worker bindings before overages.
Production profiling for Workers and Durable Objects: operation guide
Cloudflare explains how to locate expensive functions and memory allocations in deployed Workers and Durable Objects using on-demand profiles and flamegraphs.
D1 pricing and free daily row limits
Cloudflare explains D1 read/write billing, free daily limits, and usage tracking.
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.
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.
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.
Artifacts pricing: billing begins on October 14, 2026
Cloudflare’s Artifacts pricing page says the Git-compatible repository product is Workers Paid only and that billing for operations and storage begins on October 14, 2026.
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.
Cloudflare Recognizer
An open-source Workers + KV tool that polls Cloudflare analytics on a cron, tracks usage against a contract commit on a custom billing cycle, and alerts on surges, aimed at Enterprise accounts.
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.
Observability pricing (from December 1, 2026)
Cloudflare’s unified pricing for logs and traces: Workers Logs, Workers Traces, Containers logs, R2 data access logs and AI Gateway logs move to per-GB ingestion and GB-month storage on December 1, 2026.
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.
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.
cloudflare-cost-to-line: daily month-end cost forecasts sent to LINE
pych-ky’s MIT-licensed Worker sends the current month’s Cloudflare usage-based charges and a month-end forecast to LINE once a day or on demand, using the Billable Usage API.
Stream pricing: minutes stored and minutes delivered
Cloudflare’s Stream pricing page explains the two billed dimensions, how delivered minutes are counted from segment requests, and how Media Transformations are billed; billing for WebRTC delivery began on October 15, 2026.
How to keep a Durable Objects dead loop from bankrupting you
karamage explains Durable Objects billing as an hourly hotel, recounts how his own alarm loop pushed the projected usage charge of a personal service from a few yen to nearly ¥8,000 (his figure), and lists four coding rules and two monitoring habits to catch a runaway loop early.
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.
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.
Workers AI pricing
Cloudflare's Workers AI pricing page: 10,000 free Neurons per day on both plans, $0.011 per 1,000 Neurons above that on Workers Paid, and per-model unit prices.
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.
Killowatt: a multi-cloud spend circuit breaker with a Cloudflare suspend adapter
An MIT-licensed circuit breaker that keeps a rolling spend ledger per account, trips when a policy window is exceeded, and on Cloudflare meters Durable Object invocations per script and suspends the Worker behind a tripped account. Enforcement is dry-run until switched on.
atlas-quota-watch: a read-only Workers and KV quota watchdog
A read-only Worker that compares Workers requests and KV usage with the Workers Paid monthly included amounts and sends one consolidated warning at 80% or when the month-end projection exceeds an allowance. CPU time is deliberately out of scope.
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.
MultiCloud-MultiPass: a multi-cloud cost kill switch with a Cloudflare provider
An AGPL-3.0 hub, evolved from a GCP cost kill switch, where sub-projects declare expected API usage before calls and report actuals after; overruns can kill the specific job, and a Cloudflare provider can disable Workers or Pages.
cloudflare-runaway-bill-audit: an agent skill that checks a project for runaway-bill risks
An MIT-licensed agent skill by pc418 that combines a deterministic read-only scan of wrangler configs (optionally read-only account checks) with an agent review of the source, and writes an HTML report plus a Markdown handoff listing alarms, suggestions and unknowns.
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.
AI Search pricing: usage billing now starts December 1, 2026
Cloudflare’s AI Search limits and pricing page: every account gets 5 million ingestion tokens, 10 GB-month of storage, 1,000 semantic and 1,000 full-text queries a month; beyond that ingestion, OCR, storage and queries are billed. A November 2 changelog moved the billing start from November 1 to December 1, 2026.
Paying with USDC: a failed stablecoin charge falls back to the card on file
Cloudflare’s stablecoin payments page says that if a stablecoin charge fails and a card is on file, Cloudflare charges the card instead. Emptying the wallet does not stop renewals; cancel the subscription before it renews.
Batching telemetry hourly through two Queues to keep R2 writes to about 720 a month
B LLC’s write-up uses two Cloudflare Queues in alternation, routed by UTC hour, and an hourly consumer that compresses each batch into one R2 object. The author says this keeps R2 writes to about 720 a month, inside the free 1 million Class A operations.
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: Workers Free caps external subrequests at 50 per invocation
FlareCost’s workers-subrequests guide says Workers Free allows 50 external subrequests per invocation (every fetch() plus redirect hops) and 1,000 internal-service operations, while Paid defaults to 10,000 (configurable up to 10 million). Reviewed against official pages on 2026-11-02.
FlareCost: Workers Static Assets requests are free and unlimited
FlareCost’s workers-static-assets guide says Free allows 20,000 files per Worker version and Paid 100,000 (25 MiB each), and that requests that only serve those files are free and unlimited — they do not count toward the Free daily request cap. Reviewed 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.
Monitor billable usage: daily cost chart matching the invoice
Cloudflare’s Billable Usage dashboard gives Pay-as-you-go accounts daily visibility into usage-based overage costs by product from the same system that generates the monthly invoice. Fixed-fee subscriptions are excluded; Enterprise contracts are not supported. Budget alerts can be created from the same page and do not pause or cap usage.
FlareCost: Cloudflare Images bills per unique transformation, 5,000 included then $0.50 per 1,000
FlareCost's Images explainer says transformations cost $0.50 per 1,000 unique transformations, both Images Free and Images Paid include 5,000 a calendar month, and on Free a new transformation past the allowance returns error 9422 instead of being billed; storage and delivery inside Images are separate Paid meters. Reviewed against official pricing pages on 2026-11-02.
FlareCost: Workers AI Neurons, 10,000 a day then $0.011 per 1,000 on Workers Paid
FlareCost's Workers AI explainer says both Free and Workers Paid include 10,000 Neurons a day resetting at 00:00 UTC; on Free the next operation fails with internal code 3036 (HTTP 429) and there is no overage price, while Workers Paid bills $0.011 per 1,000 Neurons above the allocation. Reviewed against official pricing pages on 2026-11-02.
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.
Independent. Unofficial. Source-first.