Skip to content
Free since 2015. Built for the engineers who keep things running.

cat /articles/your-coffee-breaks-could-be-driving-up-your-claude-api-bill-anthropic-explains-why.md

AI & MLOps

Your coffee breaks could be driving up your Claude API bill — Anthropic explains why

Pauses in a coding session can quietly raise Claude API costs once the prompt cache expires, and Requesty's analysis of a month of traffic puts a number on how much. The piece also covers Anthropic's response and the cache-duration options developers can choose.

The New Stack05 Dec 2026 · 5 min read · summary

article --summary

The summary

A gateway provider analyzed a month of coding-agent traffic and found that rebuilding expired prompt caches after short breaks added a sizable share of Claude spending, far more than it did for comparable GPT usage. The main driver is the default five-minute cache window, which can lapse during a coffee break or a long review of agent output, forcing a costly cache rewrite on the next request. Anthropic defends the five-minute default as cheaper when requests arrive close together, which is typical during agent work, and says its own tests showed it cost less than the one-hour option in that pattern. The article notes that Claude Code uses a one-hour cache for subscription users, while API-key and paid-credit users get the five-minute default. Switching TTL mid-conversation means rewriting the cache, so the choice is best made at the start. Requesty also tested a keep-alive approach that resends the previous request near the expiry point, which yielded modest net savings but raised costs in many long sessions. Readers who run Claude coding agents can use the cache-hit reporting and settings mentioned in the piece to check their own usage.

Editorial note: This is a summary of an article first published by The New Stack. The full piece is on their site.

Reading now

Topic
AI & MLOps
Source
The New Stack
Published
05 Dec 2026
Format
Curated summary

Have a take on this?

Write it up and submit it. It goes on the list once an editor approves it.

Submit an article

articles --latest

Latest articles

New from the blogs we follow and the community.

All articles

newsletter --weekly

DevOps Weekly, minus the noise.

The best reads, new jobs and upcoming events, in one email a week.