Get the daily emailDaily email
  1. Home
  2. Research
  3. This story

Requesty data: Claude's 5-minute prompt-cache TTL accounts for about 23% of coding-agent spend

Analyzing 30 days of coding-agent traffic across Claude Code, OpenCode, Codex and others, Requesty found that 23.1% of Claude spend went to rebuilding prompt caches that expired while the developer was away, versus 9.3% on GPT models. Almost all of the gap…

Published Read the original

Ranked #20 of 30 on Wednesday, December 2

Requesty data: Claude's 5-minute prompt-cache TTL accounts for about 23% of coding-agent spend

Why it matters

If you build on or pay for Claude-based agents, opting into the 1-hour cache TTL for interactive sessions can cut a large share of the bill.

What happened

1 min read

Analyzing 30 days of coding-agent traffic across Claude Code, OpenCode, Codex and others, Requesty found that 23.1% of Claude spend went to rebuilding prompt caches that expired while the developer was away, versus 9.3% on GPT models. Almost all of the gap comes from 5-30 minute pauses: Claude's default cache TTL is 5 minutes, OpenAI's minimum is 30. Claude Code used the 1-hour TTL option (at 2x write cost) on only 2-10% of large writes.

inscraper analysis

Our analysis

The data comes from a commercial router with an interest in highlighting costs, but the method (same-tool comparisons, live tests on the Anthropic API, Bedrock and Vertex) is fairly convincing. The practical point is that Claude's caching savings hold only while the agent loops nonstop; any short pause to read a diff re-bills the whole prefix at 1.25x. Because Anthropic starts the clock at request start, long reasoning turns also eat into the window. Tool builders should default to the 1-hour TTL for human-in-the-loop sessions, and teams should check what share of their bill is cache writes.

More in Research