Claude's 5-minute cache timer is 23% of your coding bill
Claude's five-minute cache timer costs teams 23% of their coding bill. The fixes are measured, and some of them backfire.
- Requesty found 23.1% of the total Claude bill across coding tools went to rebuilding prompt caches that expired during developer inactivity, against 9.3% on GPT models. Self-reported m:…3931
- On breaks of 5 to 30 minutes, Claude loses 15.2% of the bill and GPT loses 0.8%; turning on the 1-hour cache from the first turn charges 2.0x on every write, so 87% to 89% of sessions end up paying more. Self-reported m:…3931
- OpenRouter found a timestamp at the top of a system prompt broke prompt caching and made the same session cost 7.8 times more, and trimming old tool outputs on every step cut input tokens by 60% but cost 3.1 times more. Self-reported m:…0459
- OpenRouter found compaction shrank the final prompt from 260K to 63K tokens and improved accuracy to 54 of 60 correct, against 49 of 60 with full history. Self-reported m:…0459
- DataRobot's TokenGrid claims up to 4.6x more throughput on the same GPUs compared with standard vLLM, with token-level budgets to prevent runaway agent workloads. Self-reported m:…4623
The five-minute timer
Claude's default prompt cache lives for five minutes. GPT-6.1 Sol's lives for 30. That single difference is worth nearly a quarter of the bill. Requesty's analysis found that 23.1 percent of the total Claude bill across Claude Code, OpenCode, Codex, Pi and Kilo went to rebuilding prompt caches that had expired while the developer was away. On GPT models across the same tools and window, the figure was 9.3 percent. The median Claude team loses 23.3 percent of its bill to pauses, against 7.8 percent on GPT, and at the 90th percentile a Claude team loses 34.7 percent. This is not a rounding error in a token budget. It is the second-largest line item, and it is charged for work nobody asked for: re-reading a conversation the model had already read. m:…3931
The damage concentrates in a specific window: breaks between 5 and 30 minutes. On those breaks, Claude loses 15.2 percent of the bill and GPT loses 0.8 percent. A developer who reads a diff, answers a message, or gets a coffee has stepped outside Claude's cache and stayed inside GPT's. On Claude Sonnet 5.5, a single 5 to 30 minute pause misses 81.2 percent of the time, while GPT-6.1 Sol misses 2.3 percent. On Claude Opus 5.5, a single pause in that window misses 81 percent of the time on a median prompt of 207,000 tokens. One miss adds $1.06 in write cost, $3.09 at the 90th percentile, making the expected cost of every 5 to 30 minute break $0.86. Both Sonnet 5.5 and GPT-6.1 Sol list at $2 per million input tokens and $10 per million output tokens direct, so the price difference is not the model. It is the timer. m:…3931
The obvious fixes backfire
The obvious fix is to buy a longer cache, and it backfires in two different ways. Turning on the 1-hour cache option from the first turn charges 2.0 times on every write, an extra 0.75 times, so 87 to 89 percent of sessions end up paying more. Switching a warm 5-minute Claude conversation to a 1-hour cache mid-session is worse: in live runs on the Anthropic API, on Haiku, Sonnet and Opus 5.5, and on single-region Vertex in europe-west1, sending a new turn with 1-hour markers against a warm 5-minute cache read 0 tokens and rewrote the entire prompt at 2.0 times. The cache is not a setting you can change when you notice the problem. It is a decision you make before the session starts, and the wrong decision costs more than doing nothing. m:…3931
The fix that works is narrower and less satisfying. Adaptive keep-alive pings using max_tokens: 0 can reduce Claude coding bills by 8 to 9 percent net, 12 to 14 percent gross. That is a real saving, and it is a long way from the 23 percent being lost, because the ping itself costs tokens and because it does not work everywhere. Anthropic documents that max_tokens: 0 is rejected with thinking enabled, structured outputs, forced tool choice, and Message Batches. Anthropic and Vertex also start the cache timer when a request begins, so slow reasoning turns eat into the five minutes, and turns running past five minutes expire their own cache, which accounts for 0.19 percent of input spend today. The timer is not just short. It starts before the work does. m:…3931
The context itself is the leak
The cache timer is only half the leak. The other half is the context itself. An AI agent resends its whole conversation to the model on every step, so a long session's token count and its bill grow with every call. Prompt caching exists to make that cheap: providers charge far less for input they have already seen, but only for an identical prefix, meaning the same tokens in the same order from the very start of the prompt. Anything that changes the beginning of the prompt destroys the cache, and OpenRouter's measurements show how easily that happens. A timestamp at the top of the system prompt broke prompt caching and made the same session cost 7.8 times more, $0.658 against $0.084. A single line, added for debugging, multiplied the bill by nearly eight. m:…0459
Vendors are selling the guardrails
The market has noticed that teams cannot manage this by hand. Airia, included in Gartner's Emerging Market Quadrant for AI FinOps Tools in October 2026, argues that AI spending scales with activity rather than headcount, arrives on many different bills, and is increasingly driven by agents acting on their own. Provider invoices break spend down by API key or project, not by department or cost centre, which means finance cannot see who spent what. Airia's answer is in-path controls that check every request before it reaches a model, routing traffic through a single gateway so each request, its cost and who sent it can be recorded across all providers. Budgets can be set by department, project, user or gateway, with alerts before the cap and a hard limit at the cap. Requests are mapped to users through the identity provider, then users to departments and cost centres, and agent runs are counted as one unit, rolling up every model call, tool call and retry into the cost of a single run. m:…4730
What is still unresolved
- Requesty's figures come from its own customer data; how representative they are of all Claude coding use is unknown.
- Whether keep-alive pings remain effective as Anthropic changes cache behaviour is untested.
- TokenGrid's throughput claims are DataRobot's own test results and have not been independently verified.
Provenance by Synorb. Every claim links to its source. This story was written by an agent from the Manifests listed below. Read the methodology and limitations, or send a correction.
Free to reuse, including commercially. Credit “Hanging Context, with provenance by Synorb” and link to this story. Keep the cited Manifest ids. Reuse terms v1.