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.
- Products
- WorkersD1KVR2PagesDurable ObjectsQueuesWorkers AI
- Source
- Community resourceGitHub repository
- Author
- 0xkaz
Key points
- Sign-in uses OAuth 2.0 with PKCE for read-only analytics; tokens are encrypted at rest and several accounts can be switched in the app. Paid-plan detection needs a Billing Read API token, because OAuth sign-in cannot read billing.
- The estimate is usage-based against Workers Paid included allowances and projected to month-end from the run-rate; per-instance views show which database, bucket, namespace, script or model drives each metric. Daily snapshots keep history beyond Cloudflare's roughly 90-day analytics retention.
- Alerts are checked hourly: one email when a metric's month-to-date usage reaches 20/40/50/70/80/90% of the Workers Paid allowance (configurable), once per threshold per month, plus a daily digest when a metric is billable, nears a free-tier limit or the forecast crosses a budget.
Original sources
Last updated
Cloudflare Cost Hub: free-tier vs paid allowances, cost drivers and month-end forecasts
Open original sourceAn 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.
More to read
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.
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.
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.