The Claude prompt cache expires after five minutes by default, and that timer is costing coding teams real money. Over a 30-day stretch of coding-agent traffic (October 24 to November 22, 2026), rebuilding caches that lapsed while the developer was away ate 23.1% of the total Claude bill. For GPT models, same tools and same window, it was 9.3%.
The traffic covered Claude Code, OpenCode, Codex, Pi and Kilo, routed through the Anthropic API, Bedrock, Vertex, OpenAI and Azure. The analysis used token and billing counters only, with no prompt text.
Where the extra cost comes from
Both labs charge the same cache multipliers on their current models: 1.25x to write new tokens into the cache and 0.05x to read them back. What differs is the default cache lifetime. Claude’s is five minutes. OpenAI’s is at least 30 minutes on GPT-5.6 and later.
While an agent loops on its own, requests land every few seconds and each read resets the timer, so the bill stays low. With the Claude prompt cache warm, coding bills drop to 16.7% of list price. The jump comes when the agent stops and waits for a person. After an eight-minute break, the next Claude turn pays 1.25x on the whole conversation, 25 times what a warm read costs. GPT-6.1 Sol, meanwhile, has 22 minutes of cache life remaining.
The data shows a hard cliff. The Anthropic API serves near-full cache hits 98.4% of the time just before the five-minute mark, then only 6.5% of the time 15 to 30 seconds after it. GPT-6.1 Sol on Azure stays at 95.8% until roughly minute 27 to 29 and has fallen to 1.9% by minute 31 to 33.

Short breaks cost more than overnight ones
Many engineers assume the big misses come from closing the laptop overnight. The numbers say otherwise. Pauses of five to ten minutes eat 8.0% of the whole Claude coding bill, more than all breaks longer than an hour put together (5.3%).
Breaks of 5 to 30 minutes cost Claude users 15.2% of the bill and GPT users 0.8%. Beyond 30 minutes both caches have expired, so the two converge at 7.8% for Claude and 8.5% for GPT.
The gap holds up across teams. Among active coding organizations spending $100 or more a month, a median Claude team gives up 23.3% of its bill to pauses, versus 7.8% for GPT. About 85% of Claude teams lose over 5% to mid-length pauses. No GPT team does.

The same price, a 34x gap
Claude Sonnet 5.5 and GPT-6.1 Sol carry the same list prices: $2 per million input tokens, $10 per million output. A single miss does about the same damage on either, $0.35 on Sonnet 5.5 and $0.37 on GPT-6.1 Sol. What differs is frequency. Sonnet 5.5 misses 81.2% of five-to-thirty-minute breaks, GPT-6.1 Sol 2.3%. That works out to about $0.28 per break against $0.008.
Assume a developer takes four such breaks a day. Over a month, that comes to around $23 per seat on Sonnet 5.5 against about $0.66 on GPT-6.1 Sol. On Claude Opus 5.5, with a median prompt of 207,000 tokens, it comes to about $69 a month per developer, or around $1,380 for a 20-person team.
A replay shows the timer is the cause. With a 30-minute default, Claude sessions would lose 8.7%, the same as GPT. Give GPT a five-minute cache instead and its loss climbs to 35.6%.

What worked in tests
The study tested five fixes on live Claude endpoints. The one-hour cache option has catches. Turning it on from the first turn bills 2.0x for every write, and 87% to 89% of sessions pay more as a result. Upgrading a warm five-minute conversation midway fares worse: on the Anthropic API and Vertex it read no tokens and rewrote the full prompt at 2.0x.
Keep-alive pings did better than every one-hour option. After 4.5 minutes idle, the agent tooling re-sends the exact last request with max_tokens set to 0, which produced no output tokens and a full prefix read in live runs on Anthropic API, Bedrock and Vertex. A ping is worth sending when the odds of the developer returning top 4.2% on Opus 5.5 and Sonnet 5.5. Capping pings by conversation depth, with none early and two to six on deeper threads, trimmed about 8% to 9% from the Claude coding bill, which closes more than half of the 14-point distance to GPT.
There are limits. Anthropic’s documentation says a max_tokens value of 0 is refused alongside extended thinking, structured outputs, forced tool choice and Message Batches. The tooling also has to hold on to the last request body for as long as half an hour. And pings sent after a developer stops working go unused.
What teams should do now
Treat the Claude prompt cache as a budget line. The study’s advice is to stop judging coding models on per-token prices alone. Go through your own usage logs and tally each follow-up turn arriving after 300 seconds where cache reads collapse and writes jump to the full prompt. That total is your pause bill.
Agent builders can keep short runs and subagents on five minutes and schedule keep-alive pings by conversation depth on main threads beyond turn five. Providers could publish default cache lifetime next to input and output rates, or let a one-hour write extend a warm five-minute entry. Until then, cache lifetime belongs in every coding-agent budget.
Source: Requesty