billflare.

A static site that sent every request through the Worker: check run_worker_first

gm365 got repeated Workers usage-alert emails (up to 92%) on a static site and traced them to an AI-written "run_worker_first": true in the config.

Products
Workers
Source
Author experience𝕏
Author
gm365 (@gm365)

Key points

  • The author says his static site’s config had "run_worker_first": true, so every asset request invoked the Worker first. He removed it after the usage emails reached 92%.
  • In a follow-up he writes that the line came from an AI agent during a move to a new domain: instead of a simple 301 redirect, it routed all requests through the Worker, and about a thousand visitors could use up the daily 100,000 free requests. He reports no actual charge this time.
  • Official docs (rechecked 2026-10-14): run_worker_first defaults to false; true invokes the Worker even when a request matches an asset, and an array of route patterns limits that to specific paths. Static asset requests are free and unlimited, while Worker invocations are billed; on the Free plan, requests over the limit get a 429 instead of falling back to assets.

Original sources

  1. Published

    Original post

    Read on 𝕏

    gm365 got repeated Workers usage-alert emails (up to 92%) on a static site and traced them to an AI-written "run_worker_first": true in the config.

    gm365

    @gm365 · Original 𝕏 post

    差一点就体会了一把什么叫“CF 账单刺客”。 早上连续收到 CF 的邮件告警,都是 CF Worker 额度消耗进度的内容(最高到 92%) 让 Grok Bot 检查了一下,原来之前不知道是哪个 AI 给我埋的坑。 配置文件写了一行: "run_worker_first": true 明明是一个静态站,结果所有资源都先请求一遍 CF Worker(纯纯没必要啊)。 赶紧给改了,AI 大佬们写代码手下留情吧。
  2. Follow-up: the author traces who added the setting, says a thousand-odd visitors could exhaust the 100,000 daily free requests, and mentions an earlier $1,200 bill from AI-written code making billions of RPC calls.

    Read on 𝕏

    gm365

    @gm365 · Original 𝕏 post

    GPT 6 Astra 模型是真的能出活儿,不服不行 今天发现 CF Worker 额度告警,一通分析,发现问题出在一个配置项上。 先是 Grok Bot 分析,然后出 PR,之后 Opus 5.5 审计并合并上线。 结束后,我又重新打开了 Claude 会话,想让它分析下当初是谁改的这个配置项(罪案现场调查)。 很快就有结果了,原来是大聪明 GPT 6 Astra (medium)。 当初因为迁移到独立域名,Astra 直接在 CF 配置文件中,让所有请求都走 Worker。 明明有更简单的方案(配置 301 跳转),但需要人类辅助操作一下,于是 Astra 自作聪明,选了一条自己就能搞定的路子。 结果是埋下隐患。 上千用户访问量,直接就能耗光一天 10 万的 Worker 请求额度。 虽然没有实际损失,但这个代码水平,你哪敢放心让 Codex 帮你处理任何严肃的生产代码。 要说真损失,那还得是 Gemini 3.8 帮我写的代码,调用了几十亿次 RPC 请求,直接让账单原地爆炸($1200)。 差的模型让你更快、更多的亏钱,算是体会到了。 没想到的是,连 GPT 6 Astra 都归到了跟美国大豆包一个类别。 所以问题来了: Gemini 4 为何还不放出来? GPT 为何还不推出匹敌 Opus 5.5 的模型? 国产模型这么久来还没新消息,真的是因为 Claude 屏蔽了 99% 的蒸馏请求导致的?
Author experienceContainers +2

gargantuaxdev: A Cloudflare Containers idle-billing warning; the author therefore moved the site to a VPS

On 2026-11-23, X user @gargantuaxdev (GargantuaX | Gx) writes: shipwords v0.3.0 moved from Cloudflare Workers to a VPS. The author says a video site cannot do without ffmpeg, Workers cannot run it, so the only option is Cloudflare Containers, but “it has an idle-billing problem the official team has never fixed, and a little inattention may mean a 上千元 bill.” The author also says that once the site scales up, D1 also has transaction and concurrency problems, and says “CF Workers saves hassle, but not money,” and therefore switched to a cheaper, longer-term VPS setup. The body is complete. “The official team has never fixed it” and “may be 上千元” are the author’s warning, not an official admission, and not an invoice amount.

D1

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. On 26 November 2026 the author posted another public thread asking what a "final decision" means. He says that in the first case an agent called a refund impossible as a "final decision," then submitted it for further review; that after several business days he was told the account credits could not be refunded while the remaining amount was still under review; and that the first case was later closed without a clear resolution of that remaining amount. He opened a second case; an agent said the remaining amount had been definitively rejected, another "final decision." After the author posted on X, a senior billing specialist (Agent D) confirmed that the previously rejected amount had actually been refunded. The author asked whether the larger $2,141 account credit could be converted into a cash refund; after being told it was under review, an agent from the first case declared another "final decision": no refund. The author asks who reviews these requests and why a supposedly final rejection was later followed by an actual refund, and says D1 on Workers Paid still lacks a configurable hard spending cap. The posts cite cases #02391058 and #02447083. There is no staff reply on that public thread.

Official docsWorkers +3

Activate Workers Paid, R2, and Zero Trust subscriptions from the Cloudflare CLI or MCP

On 2026-11-25 Cloudflare announced that accounts can activate subscriptions, including Workers Paid, R2, and Zero Trust, from the Cloudflare CLI (cf) or Cloudflare MCP servers, without switching to the dashboard. The changelog says this requires cf 1.0.0-rc.5 or later, a fresh cf auth login so the session receives updated OAuth scopes, a verified email address, and an existing billing profile with a payment method on file. MCP clients that support elicitation show the plan price and ask permission before activating; clients that do not are directed to the dashboard.