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.
- Products
- WorkersKV
- Source
- Community resourceGitHub repository
- Author
- AtlasReaper311
Key points
- Meters: Workers requests 10 million, KV reads 10 million, KV writes, deletes and lists 1 million each, KV storage 1 GiB. Limits are wrangler.toml variables to update when the plan or published pricing changes.
- A cumulative meter warns when current usage is at or above the threshold (80% by default) or the end-of-period projection is above the included amount; KV storage is checked as a point-in-time gauge. Healthy checks stay silent and current data is readable at GET /quota.
- Workers CPU time is not covered: the README says the query is limited to validated datasets and the boundary is reported plainly rather than presenting partial CPU data as complete cost coverage. A separate offline cost-guard CLI produces reports from local snapshots and changes nothing.
Original sources
Last updated
atlas-quota-watch: a read-only Workers and KV quota watchdog
Open original sourceA 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.
More to read
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.
neoblender13: an AI agent’s recursive alarm system turned a ~$10 monthly Cloudflare bill into $1,500; $400 credited.
neoblender13 says the Cloudflare bill is normally around $10 a month, but this month it was hit with a $1,500 bill because an AI agent created a recursive alarm system that ballooned Durable Objects storage writes, and that Cloudflare support was not very helpful. In later replies the author says they did not realize spending limits were alert only, received a $400 credit and still had to pay $1,100, that the single alert email got buried in the inbox, and that a Discord bot now reports costs every 12 hours.
Michael Liyang: record every AI call in D1 and downgrade before the budget runs out
@Michael_liyang argues that on a free tier the danger is not one expensive call but not knowing which call is expensive: write each call's usage to D1 by user and model, have a daily Cron check budgets and downgrade first, and look at which user is burning quota rather than only the total.