billflare.

Brolly: self-hosted cost guardrails and emergency controls for Cloudflare

Brolly (standardagents/brolly, MIT) is a self-hosted Cloudflare app that watches billable usage across Workers, Durable Objects, D1, R2, KV, Queues and AI, alerts when spend moves out of line, and offers approval-first, reversible quarantine controls; automatic controls are opt-in and it never deletes resources.

Products
WorkersDurable ObjectsD1R2KVQueuesWorkers AI
Source
Community resourceGitHub
Author
standardagents

Key points

  • The README describes five-minute active telemetry, an optional one-minute hot watch and hourly billing reconciliation, with a daily ledger in D1 for up to 730 days.
  • It supports ordered alert levels with per-level limits for daily or Cloudflare billing-cycle periods.
  • Controls are approval-first quarantine with rollback state and an audit trail; automatic controls are opt-in, missing telemetry is kept as an explicit coverage-gap state, and Brolly never deletes resources or customer data.
  • Installation uses Deploy to Cloudflare; sign-in with Cloudflare binds one account to the installation and the OAuth grant is stored encrypted in your own D1.

Original sources

  1. Undated

    Brolly: self-hosted cost guardrails and emergency controls for Cloudflare

    Open original source

    Brolly (standardagents/brolly, MIT) is a self-hosted Cloudflare app that watches billable usage across Workers, Durable Objects, D1, R2, KV, Queues and AI, alerts when spend moves out of line, and offers approval-first, reversible quarantine controls; automatic controls are opt-in and it never deletes resources.

Author experienceWorkers +10

How I keep Cloudflare under $5: where surprise bills come from

Ashish Sharma (@sarmaasis) runs several sites on the $5 Workers Paid plan and lists, product by product, the usage patterns he says quietly run up a Cloudflare bill, ending with a 12-item checklist.

Durable Objects

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.

Official docsWorkers Logs +3

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.