cloudflare-runaway-bill-audit: an agent skill that checks a project for runaway-bill risks
An MIT-licensed agent skill by pc418 that combines a deterministic read-only scan of wrangler configs (optionally read-only account checks) with an agent review of the source, and writes an HTML report plus a Markdown handoff listing alarms, suggestions and unknowns.
- Products
- WorkersDurable ObjectsQueuesR2ContainersWorkers AI
- Source
- Community resourceGitHub repository
- Author
- pc418 (@pc4189999)
Key points
- The README says it looks for the mistakes behind real runaway-bill incidents, such as a Durable Object alarm that re-arms forever, a queue consumer that re-enqueues itself, or a catch-all route that starts a container for every favicon request; incident stories come from serverlesshorrors.com.
- It covers Workers, Durable Objects, Queues, R2, Containers/Sandbox, Browser Run, Images and Workers AI. The scan reads every wrangler config and entry path; with --account it adds live read-only account checks. Then the agent traces each paid path and its controls and edits findings.json before rendering.
- The README says the audit is read-only: it never deploys, never changes the account, never writes into the scanned project and never calls endpoints that do paid work; known local Cloudflare credentials are redacted from outputs.
- It warns that a scan alone is not an audit and that a reviewed status does not certify a project as safe. The README credits the skill to an AI model and recommends running it with that model; it needs Python 3.11+.
Original sources
Last updated
cloudflare-runaway-bill-audit: an agent skill that checks a project for runaway-bill risks
Open original sourceAn MIT-licensed agent skill by pc418 that combines a deterministic read-only scan of wrangler configs (optionally read-only account checks) with an agent review of the source, and writes an HTML report plus a Markdown handoff listing alarms, suggestions and unknowns.
Announcement post: open-sourced a skill meant to stop agents from blowing up your Cloudflare bill, written from serverless horror stories.
Read on 𝕏Pc418
@pc4189999 · Original 𝕏 post
让赛博菩萨托管,放弃前agent时代架构,您也不需要凌晨四点爬起来,给您的祖传php 7.x 打补丁。同时使用本skill,有效防止agent将您的cloudflare账单写爆炸。由Astra根据serverlesshorror撰写,值得信赖,现已开源。🤗https://t.co/0GpifxbC0J https://t.co/OUMLo5HYEM
More to read
Cloudflare Cost Hub: free-tier vs paid allowances, cost drivers and month-end forecasts
An MIT-licensed dashboard that signs in with Cloudflare OAuth, reads account analytics across products, colour-codes usage as free, within paid allowance or billable, ranks per-instance cost drivers, forecasts month-end cost and emails threshold and budget alerts.
Kun Save Point (@Savepoint_kk): a D1 bug rewrote unchanged data into a $2,739.12 bill; $2,141 goodwill credit granted.
Kun Save Point (@Savepoint_kk), an indie developer who says he recently lost his job, says a bug repeatedly rewrote unchanged data while inefficient queries amplified reads, producing a $2,739.12 Cloudflare bill already paid via PayPal (D1 rows written $2,641.00, rows read $64.06, other services $34.06); he says his bills were usually under $10 a month. Cloudflare granted a $2,141 goodwill account credit under case #02391058. He asks for it to be converted into a refund to the original PayPal payment, or at least for relief on the $2,641 write charges, and later writes that the initial request was declined and has been reopened for additional review. On October 25 he adds that he missed the only alert email Cloudflare sent, whose amount was not particularly high, and received no further warning before the large card charge; on October 26 he writes that the refund request to the original payment method is still under further review. On November 10 he posts a timeline saying that after following up on November 10–11, support again stated the $2,141 could only remain as account credit and the remaining $598.12 was still undecided while the ticket was being closed.
stevesprompt: an agent clicked Upgrade in the Cloudflare dashboard and charged $1.5k; the money was refunded.
X user @stevesprompt (Steve Huang) says an agent clicked Upgrade in his Cloudflare dashboard and he was charged $1.5k, and that the money was luckily refunded. The author then lists precautions before an agent can spend money or send anything. The post does not name the product that was upgraded. There is no official public Cloudflare response in the thread.