After a $10,000 loop bill: budget alerts and a cost-audit prompt for vibe-coded projects
铁柱AGI (@cgnot996) writes an X article that walks through creating a Cloudflare budget alert, explains why it is only a notice, lists cost-amplifying code patterns, and gives a read-only audit prompt and steps for when a bill has already spiked.
- Products
- WorkersDurable ObjectsD1QueuesKV
- Source
- Author experience𝕏
- Author
- 铁柱AGI (@cgnot996)
Key points
- The author argues that vibe-coded projects pass functional checks while polling, alarms, retries and full-table scans keep running without errors, and that AI-written code does not estimate trigger frequency × unit price × run time.
- He shows the dashboard path for a billing budget alert (Manage Account → Billing → Billable Usage → notifications → Create alert → Billing budget alert) and suggests a threshold of two to three times normal monthly spend, capped by the loss you can bear.
- He notes alerts are based on the previous day’s data, send one email per billing period, need a Super Administrator, Administrator or Billing role, exclude fixed fees such as Workers Paid, and do not pause service or cap spend.
- He lists patterns to check: alarms that reschedule themselves without a stop condition, polling without backoff, cron jobs without cursors or idempotency, D1 queries without indexes or WHERE, Worker/Queue call loops without retry limits or dead-letter queues, per-request KV or Durable Object writes, and AI loops without iteration caps, and gives a read-only audit prompt covering them.
- If a bill has already spiked, he suggests stopping the triggering sources first, exporting usage data and fix records, and filing a billing appeal in Support, and writes that relief is decided case by case.
Original sources
Original post
Read on 𝕏铁柱AGI (@cgnot996) writes an X article that walks through creating a Cloudflare budget alert, explains why it is only a notice, lists cost-amplifying code patterns, and gives a read-only audit prompt and steps for when a bill has already spiked.
铁柱AGI
@cgnot996 · Original 𝕏 post
https://t.co/6G2XYCLf2h
More to read
Feng Yi: AI cost weekly|11/20; watching the model unit price is not enough—first split costs across requests, CPU, tokens, writes, and retries
On 2026-11-20, X user @Michael_liyang (Feng Yi) published "AI cost weekly|11/20". The conclusion is that watching the model unit price is not enough—first split costs across requests, CPU, tokens, writes, and retries. Figures the author checked this week: creating a D1 table is rows_written=2, and inserting 1 row is rows_written=1; the Workers free tier is 100,000 requests/day; the D1 free tier is 5,000,000 row reads/100,000 row writes per day; R2 egress is 0 美元. Suggested ledger fields: requests / rows_written / cpu_ms / input_tokens / output_tokens / retry_rate / cost_per_success. The author cautions: a free quota is not 0 cost.
MrSaneApps: Workers AI usage above the startup-credit cap left $2,473.38 due; Cloudflare declined an invoice adjustment.
MrSaneApps posts what the author describes as a customer-service reply: Cloudflare is not able to adjust invoice IN-85233588 and $2,473.38 remains due; the plan covers Workers AI up to $2,500 over the program term, $2,503.84 in credits was applied to Workers AI usage and the rest billed at standard rates, and startup credits cannot be moved to cover Workers AI above that cap. The quoted reply says the dashboard Credits page showing a $50,000 Workers AI cap applies to the $350,000 tier, that an October 7 reply on case 02359041 should have pointed out the $2,500 cap, apologizes for both, and says the dashboard text was reported for correction without changing the program terms. The author says they were misdirected while trying to understand the plan terms, asks for a human to review the screenshots, and asks Cloudflare to forgive this month’s error.
Four months of CI on Cloudflare Containers: per-use vCPU billing and a hard cap that stopped CI
@kelvin_des describes moving all CI from GitHub Actions to one Cloudflare Container per job and puts the list-price bill for the same 90 days at about $1,608 versus $3,288–$6,502 for GitHub-hosted runners, because Containers bill vCPU on use and his boxes were about 41% busy. He also reports a ledger bug that made his own hard daily minute cap refuse every container, after which he bounds spend by max containers × per-job deadline.