If your developers pause mid-session to read a diff, take a call or get coffee, your Claude API bill may run higher than usage suggests. Anthropic’s five-minute prompt cache default applies when developers use API keys, cloud providers or paid credits after a subscription allowance runs out. Claude Code users inside their subscription’s included usage get a one-hour cache for the main conversation instead. Teams on the five-minute default should check how much of their spend goes to rewriting context rather than doing new work.
What happened
According to The New Stack, AI gateway provider Requesty analysed 30 days of coding-agent traffic, from 24 October to 22 November, across Claude Code, OpenCode, Codex, Pi and Kilo. It found that the extra cost of rebuilding caches after pauses of five to 30 minutes made up 15.2% of observed Claude spending, against 0.8% for GPT models. Sonnet 5.5 missed the cache 81.2% of the time after such pauses, versus 2.3% for GPT-6.1 Sol, which has identical list pricing.
Requesty offered one example. In an Opus 5.5 session carrying 210,000 tokens of context, an eight-minute break can turn a $0.04 cache read into a $1.05 cache write. Cache writes cost 1.25 times the input rate on Sonnet 5.5, while reads cost 0.05 times. Requesty also estimates a 20-person team on Opus 5.5 could pay an extra $1,380 a month, assuming each developer takes four breaks of five to 30 minutes per workday over a 20-day month.
Requesty’s billing data does not show what developers were doing between requests, so the coffee and code review scenarios are illustrations, not measured causes.
Anthropic told The New Stack that its five-minute default reflects how closely requests cluster while an agent works. In its own tests, five-minute caching cost 15% to 19% less than one-hour caching when requests arrived seconds apart. Anthropic also said developers should take the time they need to review code. Separately, the five-minute window on Anthropic’s API counts the time the model spends generating a response, so a four-minute reasoning turn leaves roughly a minute to submit the next request.
For pauses beyond 30 minutes, when both providers’ default caches expire, Anthropic notes the extra costs account for 7.8% of Claude spending and 8.5% of GPT spending.
Why it matters
Cache behaviour is a real line item in agentic coding costs, and it differs by vendor even when list prices match. Comparing per-token rates alone misses it. This suggests buyers may start asking providers about cache lifetimes and write costs, though that is our reading, not something the data shows.
There is also a process angle. Teams that require engineers to inspect diffs and approve agent actions can see cache expiration raise oversight costs when reviews run longer than the remaining cache time. That sets a possible budget incentive against the review many teams want. Our earlier piece on AI approval in the PR queue covers the review side of that tension.
The longer cache is no blanket fix. Writing to a one-hour cache costs twice the standard input rate, and Requesty found that using it for every conversation would raise costs in 87% to 89% of individual sessions. Yet about 76% of Claude coding conversations in its data finish within five minutes, while those lasting more than an hour account for roughly 80% of spending. The expensive sessions are the ones where the choice matters most.
What it means for you
- Find out which cache you are on. Claude Code uses one hour for the main conversation within subscription usage, but five minutes with API keys, cloud providers or paid credits after the allowance runs out.
- Measure before tuning. Claude Code v2.1.251 or later reports hit ratios and miss counts through /usage, and OpenTelemetry tracks cache read and creation tokens by user and session.
- Choose the TTL at the start. Anthropic advises picking the one-hour cache up front if pauses of five minutes to an hour are common, because switching mid-conversation means rebuilding the cache. Claude Code v2.1.242 lets you set promptCacheTtl to 1h for the main conversation and keep subagents on five minutes.
- Switch after expiry, not before. In Requesty’s simulations, waiting for the cache to expire before moving to one hour in conversations of at least 10 turns cut overall Claude spending by an estimated 5% to 7%.
- Treat keep-alive pings with caution. Requesty estimated net savings of 8% to 9% when limiting pings by conversation depth, yet they raised costs in 43% to 52% of long sessions and conflict with explicit thinking and structured outputs.
Budget with your own team’s pause pattern, not the average. Requesty’s $1,380 figure rests on stated assumptions, and your numbers may differ. AI Tool Radar tracks list pricing, but you will need your own session data to see the effective cost.
What to watch
- Whether Anthropic changes its five-minute default or makes TTL switching cheaper for active caches.
- Whether other coding tools add automatic TTL selection or built-in keep-alive logic.
- Whether buyers start asking for cache-hit reporting in vendor comparisons.


