A prompt to set up Cloudflare budget and usage alerts
Merill Fernando (@merill) shares a prompt that asks a coding agent to install Cloudflare’s CLI, check for a billing budget alert and add usage alerts based on last month’s usage, and lists what it set up for him.
- Products
- WorkersDurable Objects
- Source
- Author experience𝕏
- Author
- Merill Fernando (@merill)
Key points
- The prompt asks the agent to install Cloudflare’s CLI (npm i -g cf), log in, check for a billing budget alert, review last month’s usage, add usage alerts for Workers requests, Workers CPU and Durable Objects set well above normal, and send a test alert.
- The author reports it set up a $10 budget alert, alerts on Workers requests (2M) and CPU (20M ms), alerts on Durable Objects requests, duration, reads and writes, and a received test email in under three minutes.
- He writes that Cloudflare has no spending cap and alerts are all you get, and asks why usage alerts cannot be set on SQLite-backed Durable Objects, the default type that shmily7’s alarm loop hit.
Original sources
Original post
Read on 𝕏Merill Fernando
@merill · Original 𝕏 post
Rough one. If you've got a project on Cloudflare (vibe coded or not), here's a prompt to make sure this doesn't happen to you 👇 Paste into Claude Code or any agent : "Install Cloudflare's CLI (npm i -g cf) and log me in. Check I have a billing budget alert. Look at last… https://t.co/jqdyX4vJvf
More to read
Cloudflare billing pitfalls thread
The author organizes Cloudflare billing risks by product and shares experience with budget alert emails.
A simulation game, a reported $4,483.74 in Durable Object reads.
Jonathan Mann (@songadaymann) reports spending $4,483.74 on Durable Object reads while building a simulation game. Rita Kozlov replies, “let us see what we can do”; Mann thanks her, and she replies that she is DMing him for details.
Four layers of cost protection for small Cloudflare projects
David Z (@davezfr) writes an X article for vibe coders on budget alerts, stop conditions for paid paths, automatic pausing, and letting a personal agent verify and pause.