Source-linked reports: Amounts and outcomes come from the original reports and linked replies.
Bhargav (@codewithbhargav): an AI agent added idle polling to Cloudflare and a database and ran up a $300 bill.
Bhargav (@codewithbhargav) says an AI coding model made a change to the project’s flow that added a lot of idle polling to Cloudflare and the database, which ran up a $300 bill in no time. The post does not say how the $300 is split between Cloudflare and the database. In a follow-up reply the author says the issue was caught because the same problem had happened several times in the project.
What happened
- Reported cause
- Repeated polling
- Incident date
- Date not recorded
- First reported
- 2026-10-27 22:57 UTC
- Billing outcome
- Not recorded
- Case progress
- Not established
- Public Cloudflare reply
- Not linked
Original sources
Each entry links to the report or reply it describes.
Case timeline
Author reports the bill
Read on 𝕏The author says idle polling added by an AI model to Cloudflare and the database ran up a $300 bill.
Bhargav
@codewithbhargav · Original 𝕏 post
I had 6.1 Astra make a change in our flow where it added a bunch of idle polling to cloudflare and database and raked up 300$ bill in no time. It's like it does a great job a lot and then also does a lot shoddy utterly senseless work from time to time and you don't know which agent turns up on a day. Had another dumb mistake today with 6.1 Sol just now. Yeah these are smart, but they aren't really on autopilot. Lots of hand holding.
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.
Travis Reeder: a $2,500 Cloudflare bill.
Travis Reeder (@treeder), replying in the thread about Jay’s D1 bill, says the same thing happened to him and he got a $2,500 bill. He says Cloudflare recently added budget alerts and he set up about ten of them to catch problems faster.
风易: On the free tier, do not log in full; logging in full burns the D1 rows-written count first
On 2026-11-14, X user @Michael_liyang (风易) wrote: on the free tier, do not log in full; what full logging burns first is the D1 rows-written count. The approach is: log all errors, with a trace id and an error code; sample only 1% of successes, enough to see the trend; write the sample rate into the config, temporarily raise it when investigating, then lower it back. The chain is request → assign a level → log all errors / sample successes → redact → persist to D1. The author's judgment: logs are for investigation, not for stockpiling for retirement; the rows written that are saved are left for real errors.