Workers KV billing guides
Read Workers KV billing guides with links to original sources.
59 matching items
Guides · 58
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.
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.
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.
风易: 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.
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.
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.
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.
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.
Six free allowances and four kinds of cost: estimating a Cloudflare bill line by line
Su (@Sukiea1008) lists six common Cloudflare free allowances and four kinds of cost — separately bought items, hard stops at free limits, metered usage on enabled services, and other services such as models and email — and walks through a PDF summariser to show why each line must be estimated in its own unit.
On Workers Free the first wall is often KV’s 1,000 writes a day, not CPU
Hliao (@Hliao2023) says the Workers Free 10 ms CPU limit counts only computation, not time waiting on external APIs, so calling model APIs rarely hits it; what usually runs out first is KV’s 1,000 writes a day. He suggests static assets for static content and D1 for frequent writes.
Free tier storage fills up with old data: expire KV, R2 and D1 entries with a nightly cron
风易 (@Michael_liyang) says what fills the free tier first is storage, not request quota: KV caches, R2 backups and D1 logs only grow. He sets expiry on cache writes and runs a nightly cron that soft-deletes, confirms and then deletes expired keys and files.
QuotaLab: locally test Cloudflare Workers resource budgets before production
ranajahanzaib/cf-quota-lab is an open-source harness that runs representative HTTP workloads against a local Cloudflare Worker, measures D1 and KV usage, projects daily consumption, enforces resource budgets in CI, and injects deterministic dependency failures — without Cloudflare credentials or a deploy.
D1 rows read and Queues operations: two free allowances that run out with few users
Su (@Sukiea1008) explains why D1’s rows-read allowance and Queues’ operation count are easy to misjudge: a query returning 10 rows may scan 10,000, and one queue message usually costs three operations plus retries. She adds notes on indexes, KV’s one-write-per-second per key and Hyperdrive’s query count.
On the free tier, keep large blobs out of D1 and KV: metadata in D1, hot keys in KV, bodies in R2
风易 (@Michael_liyang) recommends splitting storage by role on the free tier: D1 holds only metadata and references, KV only hot keys and short results, and files, images and long logs go to R2.
Workers KV bills list() at the write rate, not the read rate
FlareCost notes that Workers KV list requests are priced like writes — 1 million included on Workers Paid, then $5.00 per million — rather than like reads at $0.50 per million after 10 million. Dashboard and Wrangler listings also count.
Cloudflare Billing Helper: a browser extension that shows free-allowance progress on the billing page
Meathill (@meathill1) built a Chrome extension that adds a panel to Cloudflare’s Billable Usage page: remaining free allowance for each billing line, projected exhaustion dates, estimated cost for the period, and a breakdown by Worker, KV namespace, D1 database, R2 bucket and Durable Object.
A free Workers AI tool: hash the input and check KV before calling the model
风易 (@Michael_liyang) shares a five-parameter loop for a free AI tool: clean and validate input, use a truncated SHA-256 hash as a KV cache key for 24 hours, and only call Workers AI on a cache miss, capping max_tokens.
Moving five self-hosted tools from a NAS to Workers: the bill and the pitfalls
@2MarsSI’s X article records two weekends moving five small tools from a home NAS to Cloudflare Workers: about ¥13 a month in NAS power and disk wear became ¥0 inside the free allowance, with a ranked list of pitfalls and cases where Workers is the wrong fit.
SpendFuse: a usage checker that converts Cloudflare usage to dollars and can pause a runaway Worker
@hao_ok72927 introduces SpendFuse: after a one-time API token, it installs an open-source agent in your own Cloudflare account, converts Workers, D1, KV and R2 usage to dollars, alerts on budget overruns or spikes, and on paid tiers can pause the offending Worker.
Separate production and test resources so tests do not use up production free quota
风易 (@Michael_liyang) warns that sharing one set of free resources between production and testing lets a test run exhaust production quota, and suggests separate Workers, D1 databases, KV namespaces and domains per environment.
Cloudflare Spend Guard: an account-wide usage circuit breaker via shared KV
A Worker that reads account-wide usage every minute, trips when any monitored metric reaches 95% of a configured allowance, and publishes the state to shared KV for opted-in projects to refuse billable work. The README stresses it is not a hard cap.
MFlare: Cloudflare usage alerts and deploy notifications in the macOS menu bar
A macOS menu bar app introduced on V2EX by its developer: after Cloudflare OAuth sign-in it shows Workers, Durable Objects, KV, R2 and D1 usage against quotas, notifies at 80% and 100%, and reports Worker build and deploy results.
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.
Cloudflare free storage quotas for side projects, and where they stop
小墨同学 (@xiaomovps) lists free quotas for R2, D1, KV, Durable Objects and Analytics Engine, notes that daily-quota products error on the free plan instead of charging, and advises private access or rate limits.
From 18 months at $0 to $72 a month: Meathill's Cloudflare bill review
Meathill breaks down 49 Cloudflare charges across 20 domains and a dozen projects, separating registrar renewals from the monthly usage bill and naming four cost traps: uncached Worker responses, Images, Workers Observability and cache placement.
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.
Writing a Cloudflare cost-guard skill for coding agents
An AIIDE List guide on turning Cloudflare billing safety into an agent skill with BUILD, AUDIT, PREDEPLOY and INCIDENT modes, plus risk rules for D1 queries, Durable Object alarms, polling, Queues and R2.
Next.js ISR on OpenNext + Workers KV: why the cache never expires and how to cap it
Meathill traces a KV storage overage on his own site to OpenNext's KV incremental cache writing keys without a TTL and keeping every deploy's build-prefixed snapshot, then shows how he rebuilt the cache lifecycle.
Cloudflare free plan from scratch: which services bill on overage, and what to set up first
李天才 (@Lniosytest) re-walks a popular Cloudflare beginner tutorial (domains, email routing, R2, Workers AI) against the October 2026 docs, prompted by the $10,811 Durable Object alarm bill, and adds a table of what happens on overage plus a pre-flight list for avoiding a runaway bill.
How I keep Cloudflare under $5: where surprise bills come from
Ashish Sharma (@sarmaasis) runs several sites on the $5 Workers Paid plan and lists, product by product, the usage patterns he says quietly run up a Cloudflare bill, ending with a 12-item checklist.
Lanshu: an AI-assisted Cloudflare billing risk checklist
Lanshu (@LufzzLiz) shares a six-step prompt for checking account ownership, usage, runaway consumption and budget alerts. Replies add alarm logging, email delivery checks and separate notifications.
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.
Four layers of cost protection for small Cloudflare projects
David Z (@davezfr) writes an X article for vibe coders on budget alerts, stop conditions for paid paths, automatic pausing, and letting a personal agent verify and pause.
mjmirza/cloudflare-cost-calculator: a single-file monthly cost and margin model for an all-Cloudflare app
A client-side calculator that models the monthly cost of an app built entirely on Cloudflare — Workers, Durable Objects, D1, R2, KV, Queues, Vectorize, email and LLM usage — against revenue, with profiles from Solo to Extreme and a breakdown of each cost row.
Cloudflare Cost Hub: free-tier vs paid allowances, cost drivers and month-end forecasts
An MIT-licensed dashboard that signs in with Cloudflare OAuth, reads account analytics across products, colour-codes usage as free, within paid allowance or billable, ranks per-instance cost drivers, forecasts month-end cost and emails threshold and budget alerts.
Ambersight: an open-source, read-only monitor for free-plan limits and bill spikes across Workers
Ambersight (jntegz/ambersight) runs as one Worker in your own account, reads Workers settings and metrics hourly with a read-only token, warns at 70% and 90% of each Free daily limit, and on Workers Paid alerts when a Worker's last hour is 5x its usual hour, noting there is no hard spending cap. The author announced it on X as free and read-only.
atlas-quota-watch: a read-only Workers and KV quota watchdog
A read-only Worker that compares Workers requests and KV usage with the Workers Paid monthly included amounts and sends one consolidated warning at 80% or when the month-end projection exceeds an allowance. CPU time is deliberately out of scope.
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.
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.
cf-usage-guard
An open-source library that reads account usage from the Cloudflare GraphQL API and circuit-breaks individual Worker bindings before overages.
How to cap your Cloudflare Workers bill, and what you cannot cap
CostHex concludes there is no dollar cap that stops a Worker, and lays out what can contain a bill instead: per-invocation limits, keeping abusive traffic away, and earlier warnings.
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.
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.
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.
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.
FlareCost: 'unlimited' KV reads on Paid means no hard stop, not free
FlareCost's KV read limits page says Free allows 100,000 reads a day that reset at 00:00 UTC and then fail, while on Paid the limits page says unlimited but the pricing page includes 10 million a month and then charges $0.50 per million, prorated. Reviewed against official pages on 2026-11-02.
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.
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.
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.
FlareCost: Workers Free caps external subrequests at 50 per invocation
FlareCost’s workers-subrequests guide says Workers Free allows 50 external subrequests per invocation (every fetch() plus redirect hops) and 1,000 internal-service operations, while Paid defaults to 10,000 (configurable up to 10 million). Reviewed against official pages on 2026-11-02.
Cutting a D1 bill 95% with composite indexes, ANALYZE and a KV cache
Justin Ahinon walks through finding the four queries behind 127.6 billion D1 rows read and fixing them with indexes, ANALYZE and cache-aside KV for layout-level data.
Cloudflare Medivh: a self-hosted near-real-time bill estimator
An open-source, self-hosted monitor that adds today’s estimated usage cost to Cloudflare’s daily-updated billable usage, sends summaries, and calls a webhook when the current cycle crosses a budget.
FlareMeter: Cloudflare usage in the macOS menu bar with early-warning alerts
Manish Rana's free, open-source (AGPL-3.0) macOS menu bar app and widgets show Workers, Durable Objects, KV, D1 and Workers AI usage against plan limits, estimate Workers Paid overage, and alert near limits, past a budget or on 10× spikes.
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.
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.
Cloudflare Usage Guard: a read-only dashboard for free-tier risk and billable usage
ThaneJoss's self-hosted, Access-protected Worker dashboard ranks near-real-time free-tier utilization for Workers, KV, D1, R2, Queues and Pages and shows official billable usage separately, without treating missing data as zero cost.
Cloudflare AI Usage Dashboard: per-app usage and a billing estimate
An open-source Worker that collects Cloudflare platform, Workers AI, AI Gateway, Anthropic and OpenAI usage every 5 minutes, attributes it to apps and shows a usage-times-list-price billing estimate behind Cloudflare Access.
A usage circuit breaker for Cloudflare Workers
Yingjie Zhao describes a self-facing circuit breaker that pauses cron jobs on his Workers-based news aggregator as monthly usage nears plan allowances.
Skills · 1
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