billflare.

xiaomovps: sleep-while-waiting in Pi 1.6.1 and Agents SDK 0.34.0, Search for Agents billing, and enabling a subscription from the CLI

On 2026-11-27, 𝕏 user xiaomovps describes several billing-related changes in Pi 1.6.1 and Cloudflare Agents SDK 0.34.0. The author says ToolPark, while waiting for confirmation or a scheduled task, writes state into the Durable Object's built-in SQLite and then sleeps, and does not occupy background runtime; Search for Agents search usage is counted against the AI Search plan quota; after upgrading cf to above 1.0.0-rc.5 and logging in again, you can view the price in the terminal and confirm enabling Workers Paid, R2, or Zero Trust, provided a payment method is already bound on the account. The author also warns: once a session has run on Pi 1.6, the storage format is upgraded and old Pi 1.5 cannot read it; do not roll the Worker back to 1.5.

Products
Durable ObjectsAI SearchWorkersCloudflare CLI
Source
Author experiencexiaomovps 𝕏 post
Author
小墨同学

Key points

  • Author xiaomovps (小墨同学) posted at 2026-11-27T07:05:00Z and summed up the theme as sorting out hidden bills, not burning billing while waiting, and switching to the web console less. The first point is mainly that Pi 1.6.1 splits cache misses, cache-warming costs, context-compression costs, and discarded inference content into 4 separate reminders, and that models.classify() in Codemode can obtain the real charge when it goes through OpenRouter. These are billing observations on the Pi / OpenRouter side, not official Cloudflare bill line items.
  • On Cloudflare Agents SDK 0.34.0, the author says it follows Pi 1.6 and adds the ToolPark mechanism: when a cloud Agent needs to wait for confirmation, wait for a scheduled task, or wait for a child Agent to return, it writes the waiting state into the Durable Object's built-in SQLite and then sleeps immediately, does not occupy background runtime, and is later woken via harness.signal(). This is the author's description of SDK behavior and cannot on its own be upgraded into an official Cloudflare conclusion about Durable Object billing.
  • On Search for Agents, the author says that after it is turned on from the domain Overview page it automatically builds an index and exposes /.well-known/search under the domain, returning the original Markdown rather than a fabricated summary; the author also explicitly writes that search usage is still counted against the AI Search plan quota.
  • On enabling a subscription from the command line, the author says that if you upgrade cf to above 1.0.0-rc.5 and log in again to authorize, or connect an MCP client that supports the new protocol, you can see the price clearly in a terminal popup and confirm enabling Workers Paid, R2, or Zero Trust, but only if a payment method was already bound on the account beforehand. This matches the wording in the 2026-11-25 official changelog, "billing information and a payment method must already be in place." The author ends with a warning: once a session has run on Pi 1.6, the underlying storage format is upgraded and old Pi 1.5 cannot read it; if you hit deploy problems after upgrading, you can only fix forward by changing the code, and should not roll the Worker directly back to 1.5.

Original sources

  1. Published

    Original post

    Read on 𝕏

    On 2026-11-27, 𝕏 user xiaomovps describes several billing-related changes in Pi 1.6.1 and Cloudflare Agents SDK 0.34.0. The author says ToolPark, while waiting for confirmation or a scheduled task, writes state into the Durable Object's built-in SQLite and then sleeps, and does not occupy background runtime; Search for Agents search usage is counted against the AI Search plan quota; after upgrading cf to above 1.0.0-rc.5 and logging in again, you can view the price in the terminal and confirm enabling Workers Paid, R2, or Zero Trust, provided a payment method is already bound on the account. The author also warns: once a session has run on Pi 1.6, the storage format is upgraded and old Pi 1.5 cannot read it; do not roll the Worker back to 1.5.

    小墨同学

    @xiaomovps · Original 𝕏 post

    Pi 1.6.1 配合 Cloudflare 这波更新,跑云端常驻 Agent 更省心了 前面写过几次把 Pi Durable 放到 Cloudflare 上跑长期任务,这两天两边刚好同步更新了一批很实在的功能 没有花哨的概念,全在解决算清暗处账单、等待时不空耗计费和少切网页后台这些具体问题,挑 4 个最实用的变化跟大家聊聊 1、Pi 1.6.1 把容易忽略的消耗拆成了 4 个独立提醒 以前开缓存提示基本是一锅炖,这次在 /settings 的 Notices 下面直接拆成了缓存未命中、缓存保温费用、上下文压缩成本和推理内容丢弃 4 个独立开关 比如模型在压缩后丢掉了部分推理片段,或者空闲保温花了多少钱 现在都能分开盯住,另外 Codemode 里的 models.classify() 走 OpenRouter 时也能直接拿到真实扣费而不是估算价了,扩展弹窗还补上了 blockedKind 方便终端区分当前是卡在等权限审批还是等登录 2、Cloudflare 上的 Pi 等人回复时能彻底休眠了 Cloudflare Agents SDK 升到 0.34.0 跟进了 Pi 1.6,最实用的就是加上了 ToolPark 机制 简单说,当你的云端 Agent 跑到一半需要等你点确认、等定时任务到点,或者等另一个子 Agent 返回结果时,它会把等待状态写进 Durable Object 自带的 SQLite 里然后直接休眠,不占后台运行时长 等你通过 harness.signal() 把结果递进去再自动唤醒接着跑,顺带还支持在创建会话时直接把别的平台导出的历史聊天记录写进去 3、域名后台一键给网站加上 Agent 专属搜索 在 Cloudflare 域名后台的 Overview 页面点一下开启 Search for Agents,它就会自动帮你建好索引,并在你的域名下暴露一个 /.well-known/search 接口 外部 Agent 过来查资料时,这个接口不会瞎编总结,而是直接返回干净的 Markdown 原文喂给你的模型,自己做文档站或者知识库接入非常省事,但是搜索用量还是按 AI Search 的套餐额度来算 4、不用切回网页后台,直接在命令行或 MCP 里开服务 以前在终端里让 Agent 部署项目,一旦撞上免费额度上限,还得专门打开浏览器去后台绑套餐 现在把 cf 命令行升到 1.0.0-rc.5 以上重新登录授权,或者接好支持新版协议的 MCP 客户端,就能直接在终端弹窗看清价格并确认开通 Workers Paid、R2 或 Zero Trust,但是前提是账号里已经提前绑好过付款方式 最后提醒一个升级前必须留心的坑:会话一旦在 Pi 1.6 上跑过,底层的存储格式就会升级,旧版 Pi 1.5 是读不了的 所以在 Cloudflare 上升完级如果遇到部署小问题,只能改代码往前修,千万别直接把 Worker 回滚到 1.5 版本
Author experienceWorkers +4

runes_leo: applying for the Cloudflare for Startups $10k bootstrapped tier with an AI agent

@runes_leo describes applying for the Cloudflare for Startups $10k tier without funding: the three tiers, who qualifies, the four-page form, and three pitfalls (a sign-in button greyed out in Chrome, a required company-domain email, and a payment method required on the linked account). He later corrected the $100k/$350k criteria, said approval and credits were still pending, and on November 10 updated that Workers AI is no longer covered for new members (existing $10k-tier members up to $2,500 until December 1).

D1

hiromsaeden: an unindexed D1 query loop billed $2,129.00; a $953.74 courtesy credit left $645.38 due.

Cloudflare Community user hiromsaeden, in a post-mortem of a personal hobby project on Workers and D1, says an unindexed GROUP BY aggregate query scanned about 877,000 rows to return 30 rows, and an unintended loop triggered about 315,000 runs across two billing cycles. In the Oct 15 – Nov 15 cycle alone, 1,447,580,203,670 rows (1.44 trillion rows) were read, on top of the previous cycle’s usage. The author says the October invoice IN-83890481 was $529.88 USD, paid in full out of pocket; the November invoice IN-89082487 was $1,599.12 USD ($1,447.58 D1 Rows Read + $6.16 Workers CPU + $145.38 tax); and the total billed was $2,129.00 USD against an expected budget of about $20/month. After noticing the issue on Nov 2–3, the author deleted the Worker and the D1 database; Support confirmed all reads had stopped. In case #02408621, Support offered a $275.00 courtesy credit for October and advised holding it until the November invoice was issued on Nov 15. In case #02434399, Support applied a one-time courtesy credit of $953.74 (which included the held $275.00), leaving a final balance of $645.38 USD, and said the review was complete and no further adjustments can be made. The author, having already paid $529.88, says the remaining $645.38 cannot be afforded and the account will be downgraded on Nov 22. The author also says a budget alert fired once at the $37 mark but did not stop the charges, and that D1 currently has no hard spending cap. There is no Cloudflare staff reply on the public thread; the Support actions are reported by the author.

Author experienceContainers +1

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.