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.
- Products
- WorkersDurable ObjectsD1R2KVQueues
- Source
- Community resourceGitHub repository
- Author
- pablo-collantes
Key points
- The README lists 23 billable metrics against Workers Paid allowances, cycle-to-date usage, end-of-cycle projections that skip one-off bursts, and alerts at 50/75/90/100%, on projected overage, hourly spikes and polling failures.
- Kill switches can block a hostname at the WAF, turn off a Worker’s workers.dev route, remove cron triggers or pause a queue. Each needs fingerprint or screen-lock confirmation and can be undone, and they start in dry-run mode.
- It uses two tokens kept on the server: a read token (Account Analytics Read and related reads) and a separate kill-switch token with edit rights. The phone reaches the server only over Tailscale, so no Cloudflare token sits on the phone.
Original sources
Undated
CF Usage
Open original sourceAn 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.
More to read
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.
sylwair: nearly $900 of usage in under two days after a project mistake.
@sylwair says a recent project mistake ran up nearly $900 in less than two days. He says he spotted it in Cloudflare's billable-usage view and stopped the abnormal service, and in a reply adds that the daily billing figures appeared with a delay, so the amount did not visibly drop after he stopped it.
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.