billflare.

Workers KV billing guides

Read Workers KV billing guides with links to original sources.

59 matching items

Guides · 58

GuideWorkers KVWorkersD1

Feng Yi: On the free tier, the cheapest rollback is not a release—it's a switch in KV

On 2026-11-21, X user @Michael_liyang (Feng Yi) wrote: on the free tier, the cheapest rollback is not a release—it's a switch in KV. Steps: 1 put the switch in KV; 2 read the switch first on the request—on takes the new path, off takes the old path; 3 canary-split by user hash, 10% first and then full rollout; 4 if something goes wrong, change KV and roll back immediately, without waiting for a release. Path: request → read switch → split → new/old path → log to D1. Switches also need expiry cleanup; don't let them pile up into dead config.

GuideWorkers KVWorkers

Community: Workers KV showed 656,000 reads against low Worker activity and a 100,000 daily get-operation notice

On 2026-11-20, Cloudflare Community user james.x.hassett reported unexpectedly high Workers KV reads that did not appear consistent with Worker activity. On 19 November, the KV usage dashboard showed 656,000 reads at 16:00, plus 768 list operations and 3 writes, and the author received a Cloudflare notice that the 100,000 daily KV get-operation limit had been exceeded. Observability logs showed some unusual requests to unrelated paths, but visible Worker activity did not appear sufficient to explain the KV-read volume. The author had not changed the Worker, KV namespace, or application code while investigating, and could not reproduce the spike. There is no staff reply and no invoice amount in this thread.

GuideD1R2WorkersKVQueues

qianshuixia2026: D1 free row-read cap burned twice in one day, plus R2 and Workers pitfalls after the first paid orders

浅水虾 (@qianshuixia2026) published a 16 November 2026 X article after the first $12 and $29 orders. On 14 November a 10-minute cron full-table scan burned the D1 Free 5 million daily row-read cap in 2 hours 14 minutes; the same evening the author ran wrangler d1 execute --remote statistics that scanned about 4.08 million rows in 5 minutes and hit the cap again, then paid $5 to upgrade to Workers Paid. The article also covers an R2 multipart complete() customMetadata mismatch that failed a >24 MB export five times (50 credits sent as apology), 128 MB / 10 ms / 50-subrequest walls that a paid plan does not lift, and Queues’ 10,000 daily operations with three operations per delivered message.

GuideWorkersKVD1

风易: On the free tier, what Cron fears most is task overlap; use a KV lock to skip rather than running again in parallel

On 2026-11-13, X user @Michael_liyang (风易) wrote an experience note about scheduled tasks on the Workers free tier: what is feared most is not failure, but overlap. Cron triggers once every 5 minutes; if the previous run has not finished, the next one arrives, and the same batch of data is processed twice. The approach the author gives is: take a KV lock before executing, and skip immediately if it cannot be obtained; the lock must carry an expiration time, so that a hung task does not leave the lock stuck; after the run finishes, write to D1 and then release the lock. The chain is trigger → take the lock → skip if not obtained → execute if obtained → write the result → release the lock. The author emphasizes: the lock prevents duplicates; it does not prevent slowness.

GuideWorkersKVD1

Workers Free: 50 subrequests per request is a wall, not a quota

风易 (@Michael_liyang) says a single Workers Free request can make at most 50 subrequests, counting upstream calls, KV reads and D1 writes, and going over fails with an error; he suggests counting subrequests, caching what you can, batching reads and splitting overflow work into a queue.

GuideKVDurable ObjectsWorkers

Why a per-request key pool did not fit KV's free tier, and moving it to a Durable Object

A Reddit user who built an MCP reverse proxy on Workers says keeping the API-key pool in KV cost 1 list, N reads and 1 write per request, so the Free plan's 1,000 writes and 1,000 lists a day capped it at roughly 500 calls a day; moving the pool to a SQLite-backed Durable Object (100,000 rows written and 5 million rows read a day on Free) removed the wall and a race condition.

GuideWorkersKVD1

GouGeHSLU: Workers Free allowances from the official pricing page

@GouGeHSLU summarizes Workers Free from the official pricing page: 100,000 requests/day with 10 ms CPU each, unlimited free static-asset requests and no egress charge, plus KV/D1/log Free meters, notes Free has no Durable Objects and hard-stops instead of billing, and says Free quotas reset at 00:00 UTC.

GuideWorkersD1R2KVDurable ObjectsWorkers AI

Polaris: self-hosted Free-plan remaining-quota and cost dashboard on Workers

etak64n/polaris is an MIT-licensed dashboard on Cloudflare Workers that shows how much of each Free plan limit is left and the cost/metrics of Workers, D1, R2, KV, Durable Objects, Queues, Workflows, Hyperdrive, Browser Run and Workers AI. It deploys behind Cloudflare Access and reads Analytics with an API token kept as a secret.

GuideWorkersD1KVR2QueuesDurable ObjectsWorkers AIImages

WquGuru: a read-only Cloudflare billing audit prompt

WquGuru (@wquguru) shares a read-only audit prompt that checks account usage, D1 query plans, loops and retries, Durable Object wake-ups, high-priced operations and Worker config, then ranks risks by worst-month cost.

GuideWorkersDurable ObjectsWorkers AIKV

A personal AI agent on the free tier: what runs out first

A dev.to guide by akaranjkar08 builds a Telegram agent on Workers, Durable Objects and Workers AI and works through the free quotas: at about 30 chats a day, Workers AI neurons run out first, then Durable Object row writes, then CPU time. Cost figures are the author's examples.

GuideWorkersDurable ObjectsD1R2KVQueuesWorkers AI

Brolly: self-hosted cost guardrails and emergency controls for Cloudflare

Brolly (standardagents/brolly, MIT) is a self-hosted Cloudflare app that watches billable usage across Workers, Durable Objects, D1, R2, KV, Queues and AI, alerts when spend moves out of line, and offers approval-first, reversible quarantine controls; automatic controls are opt-in and it never deletes resources.

GuideWorkersKVR2Images

Cloudflare Recognizer

An open-source Workers + KV tool that polls Cloudflare analytics on a cron, tracks usage against a contract commit on a custom billing cycle, and alerts on surges, aimed at Enterprise accounts.

GuideWorkersKVD1R2Queues

cf-usage-guard

An open-source library that reads account usage from the Cloudflare GraphQL API and circuit-breaks individual Worker bindings before overages.

GuideWorkersD1R2KVDurable ObjectsQueues

FlareCost: Free plan limits that fail the request (not bill)

FlareCost’s free-plan-limits page lists Workers, KV, D1, R2, Durable Objects and Queues Free meters in one table: daily Free limits reset at 00:00 UTC and fail the request instead of billing, except R2 which bills past its monthly free tier on any plan. Reviewed against official pricing pages on 2026-11-02.

GuideKV

FlareCost: Cloudflare KV cache TTL minimum

FlareCost’s kv-cache-ttl page (reviewed 2026-11-02) is checked against the official Cloudflare pricing pages listed under Sources. Free plan: cacheTtl cannot be below 30 seconds. Paid plan: 30 seconds. A read can still be served from cache inside that window. That does not remove the read from the KV bill when the read is performed. Cache TTL is not a discount published on the pricing page.

GuideKV

FlareCost: Cloudflare KV write limits

FlareCost’s kv-daily-writes page (reviewed 2026-11-02) is checked against the official Cloudflare pricing pages listed under Sources. Free plan: 1,000 writes per day to different keys. One write per second to the same key. Paid plan: No daily write cap on the limits page. One write per second to the same key still applies. Pricing includes 1 million writes a month, then $5 per million. Deletes and list requests have the same Free daily cap of 1,000 and the same Paid price as writes. A write-heavy KV namespace gets expensive faster than a read-heavy one.

GuideKV

FlareCost: Cloudflare KV key size

FlareCost’s kv-key-size page (reviewed 2026-11-02) is checked against the official Cloudflare pricing pages listed under Sources. Free plan: 512 bytes. Metadata up to 1,024 bytes. Paid plan: 512 bytes. Metadata up to 1,024 bytes. The key limit is the same on Free and Paid. Keys per namespace are unlimited on the KV limits table. Key size does not change the per-key read or write price.

GuideKV

FlareCost: Cloudflare KV storage limits

FlareCost’s kv-storage page (reviewed 2026-11-02) is checked against the official Cloudflare pricing pages listed under Sources. Free plan: 1 GB per account and per namespace. Paid plan: The limits page says unlimited storage. Pricing includes 1 GB and then charges $0.50 per GB-month. There are 1,000 namespaces per account on both plans in the limits table. The calculator uses the pricing page for dollars and the 1 GB Free cap as a hard stop.

GuideKV

FlareCost: Cloudflare KV value size

FlareCost’s kv-value-size page (reviewed 2026-11-02) is checked against the official Cloudflare pricing pages listed under Sources. Free plan: 25 MiB. Paid plan: 25 MiB. A value can be large, but you still pay one read or one write per key. Bulk reads are billed by the number of keys. Do not use KV as a cheap object store. R2 is the object meter, and its price is per GB and per operation class.

GuideWorkersKVD1Durable Objects

FlareCost: what the $5 Workers Paid plan includes

FlareCost's explainer says Workers Paid is a $5 monthly minimum per account that includes the Paid allowances for Workers requests and CPU, KV, Hyperdrive and Durable Objects; included usage is not extra credit on top of the $5, overages are added to it, R2 keeps its own free tier, and the plan is separate from a zone plan. Reviewed against the Workers pricing page on 2026-11-02.

GuideWorkersDurable ObjectsD1R2KVQueues

CF Usage

An open-source Go server plus Android app that polls Cloudflare GraphQL Analytics every minute, tracks Workers Paid allowances, projects the cycle, alerts, and offers confirmed kill switches.

GuideDurable ObjectsKVWorkers

sean1093/purse-strings: in-process LLM spend budgets, with optional Durable Objects or KV stores

The MIT-licensed TypeScript library purse-strings (sean1093/purse-strings) is described as a denial-of-wallet guard for apps that call LLM APIs: per-user, per-session and global token, cost and request budgets, plus step, tool-call and time limits for agent loops. It has zero runtime dependencies and can keep counters in memory, Firestore, or Cloudflare Durable Objects or Workers KV. The README warns that with multiple process replicas, each replica enforces the limit, so the effective limit is N times the configured value unless a shared store is used, and that a Durable Objects or KV store is what a hard limit needs. Reviewed from the public README on 2026-11-19. Example figures in the docs include a user-daily cap of costUsd: 1 and a fleet-daily cap of costUsd: 200.

Skills · 1

Skill

Cloudflare billing risk audit skill

Ask your coding agent to check a Cloudflare project for loops, retries and repeated work that could drive up costs, with code locations and suggested improvements.

daftai-cloudflare-billing-audit