Claude Cache Expiry Raises Coding Agent Costs

Requesty's analysis of 30 days of coding-agent traffic finds Claude's five-minute prompt cache drives up API spending.

By Wisevoter Tech Desk · Published Dec. 5, 2026, 10:58 a.m. ET

Isometric editorial illustration of a brass hourglass timer beside a stack of cream cubes on a slate surface, evoking expiring cache costs.
Anthropic's five-minute default prompt cache expires during pauses in coding-agent sessions, and rebuilding it accounted for 15.2% of observed Claude API spending over 30 days, according to Requesty. AI Illustration. Upload story photo >

Requesty, an AI gateway provider, published an analysis of 30 days of production coding-agent traffic from October 24 to November 22, showing that rebuilding expired Claude prompt caches after pauses of five to 30 minutes accounted for 15.2% of observed Claude API spending. Anthropic responded that its five-minute default reflects request frequency during agent execution and recommended one-hour caching for conversations with longer pauses.

Why it matters

The analysis shows that the default cache duration on Anthropic's API can materially change the cost of long coding sessions, with the gap between Claude and GPT spending on expired caches sharply different. Developers using API keys or cloud providers, rather than subscription plans, may be most exposed to these costs.

Anthropic's tests found five-minute caching cost 15% to 19% less than one-hour caching when requests arrived seconds apart, while writing to a one-hour cache costs twice the standard input rate. Requesty's tested keep-alive mechanism increased costs for 43% to 52% of long sessions in its simulations.

The players

Anthropic

Anthropic is an AI safety company that develops the Claude family of large language models and offers them through its API.

Requesty

Requesty is an AI gateway provider that routes developer traffic to multiple large language model services.

The details

Claude Code defaults to a one-hour cache for the main conversation when developers operate within their subscription's included usage, while the five-minute default applies to API keys, cloud providers, and paid usage credits. Changing an active cache's TTL requires rewriting the entire cached prefix, and as of Claude Code v2.1.242 developers can set promptCacheTtl to 1h for the main conversation.

Timeline

  1. October 24 to November 22: Requesty collects 30 days of coding-agent traffic data

  2. Tuesday: Requesty publishes its traffic analysis

Roadmap

The debate centers on Anthropic's prompt caching feature, which offers a five-minute default and a one-hour extended option as an alternative. The analysis adds evidence to a broader question about how AI providers price cached context for long-running agent workloads.

Developers running long coding sessions through API keys or cloud providers can see substantially higher bills if caches expire during pauses. Requesty estimates a 20-person engineering team using Opus 5.5 could spend an additional $1,380 a month rebuilding expired caches.

The takeaway

Teams running long coding agents should check which cache duration their setup uses and whether the one-hour option is worth its higher write cost for their pause patterns.

Further reading

Explore more Artificial Intelligence coverage for context on how model providers structure API pricing.

Source note: This article includes information reported by The New Stack.

Add source to favorites