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.
- Products
- WorkersD1
- Source
- Community resourceGitHub repository
- Author
- tddworks / itshan (@itshanrw)
Key points
- The README describes a menu bar app that shows the account limit closest to running out, warns before it does, points to the query or deploy behind it, and prices the current month for Free and Workers Paid plans.
- Setup uses an API token with read access to Account Analytics and Workers Scripts, plus Billing for plan and invoices; the token is kept in the macOS Keychain. It reads every 5 minutes and after the Mac wakes, and warns at 50%, 75% and 90%, or early when today’s pace would cross 90%.
- It currently watches Workers requests and CPU and D1 rows read, rows written and storage; other products are not yet covered. The README says Overmind only reads and that no call it makes can change the account.
Original sources
Original source · Last updated
Open original sourceThe author says he uses D1, was worried about runaway bills, built a menu bar app to monitor usage and cost, and would open-source it the next day.
Read on 𝕏itshan
@itshanrw · Original 𝕏 post
之前自己也在用 Cloudflare D1, 然后也担心这个问题。自己做了个一个 MenuBar 用来监控使用量和费用。 明天开源出来~ https://t.co/HFj0RjLNsG pic.twitter.com/SGuvYZvXmF
Open-source announcement: a macOS menu bar app for Cloudflare usage and bill (Workers, D1) that warns before the free tier runs out, using a read-only token; installable with Homebrew.
Read on 𝕏itshan
@itshanrw · Original 𝕏 post
We just open-sourced Overmind A macOS menu bar app that watches your Cloudflare usage and bill (Workers, D1) and warns you before the free tier says no. Read-only token. Swift + SwiftUI. Stars ⭐ & PRs welcome brew install --cask tddworks/tap/overmindhttps://t.co/PjJ4znJqis pic.twitter.com/PGL9q0oJDs
Another author, 小弟调调 (@jaywcjlove), says he added Overmind to his macOS app list and describes it as monitoring Cloudflare usage, cost and quota with alerts before the free tier runs out.
Read on 𝕏小弟调调
@jaywcjlove · Original 𝕏 post
Overmind - 监控 Cloudflare 用量、费用与额度,并在免费额度耗尽前提醒。 brew install --cask tddworks/tap/overmind 收录 Overmind 👇https://t.co/L11NxEj4P0 https://t.co/4mrMTaDbr9
Replying to a question, the author says the usage window for Free counts from 00:00 UTC today and for Paid from the last renewal date.
Read on 𝕏itshan
@itshanrw · Original 𝕏 post
For Free that's since 00:00 UTC today; for Paid it's since the last renewal date
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.
RetainDB: a reported $36k bill from a queue loop with 81 users.
Reddit user alameenswe, building RetainDB on Workers, KV, Durable Objects and Queues, reports a Cloudflare bill of about $36k for one month with 81 users; the post body says $35,000. He attributes it to a queue consumer that re-queued async writes, 12 unbatched Durable Object writes per memory write and a kv.list() authentication fallback.
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.