OpenCode Cache Hit Rate with Claude Models
In the week of 2026-11-17, OpenCode on Claude models had a median continuation cache hit rate of 98.0% (25 users), and 95.0% over all requests. Most misses came from: new content in running turns (44%), parallel requests (21%), cache expiry (19%).
Week of 2026-11-17 – 2026-11-23 (UTC)
Key takeaways
- What is normal: 98.0%, median of 25 users in running conversations; middle half 96.6%–98.7%
- All requests: 95.0%, including routing, expiry and new chats
- Largest cause of misses: new content in running turns, 44% of misses
- Across surfaces: 0.8 points apart, Desktop app, CLI (terminal)
What cache hit rate is normal for each client
Week of 2026-11-17 – 2026-11-23 (UTC)
- Continuation hit rate (median user): 98.0%
- Middle half of users: 96.6%–98.7%
- Qualifying users: 25 (at least 20 continuation turns in the week)
- Hit rate over all requests: 95.0%
OpenCode hit rate by surface
The CLI, IDE extension and desktop app of one client send near-identical requests, so their hit rates should be close.
- Desktop app: 97.8% (13)
- CLI (terminal): 98.6% (9)
OpenCode hit rate by version
A release that changes the request prefix shows a clearly lower hit rate than the others, in the week it ships.
- 2.3.2: 97.0% (10)
- 2.3.0: 97.3% (9)
Weekly median
- 2026-09-29: 96.5% (7 users)
- 2026-10-06: 97.6% (8 users)
- 2026-10-13: 98.8% (11 users)
- 2026-10-20: 97.4% (10 users)
- 2026-10-27: 96.4% (13 users)
- 2026-11-03: 97.6% (20 users)
- 2026-11-10: 97.9% (41 users)
- 2026-11-17: 98.0% (25 users)
Why is my OpenCode cache hit rate low? Misses by cause
5.0% of this week's input was not read from cache. Here it is by cause, with what you can do about each.
- New content and prefix changes in a running conversation: 44% of misses, about 2.2% of all input
- Content that is new in a turn can only be written, not read, which is unavoidable; a changed system prompt, tool list or rewritten history also invalidates the prefix.
- Parallel request (previous one still running): 21% of misses, about 1.0% of all input
- A request sent before the previous one finished (subagents, parallel tool calls) cannot read the cache the previous one is still writing.
- More than 5 minutes idle, cache expired: 19% of misses, about 0.9% of all input
- More than 5 minutes passed between requests, so the previous cache entry may have expired.
- New conversation, or idle for over an hour: 11% of misses, about 0.6% of all input
- The first request of a new conversation, or one after an hour of idling, has to write the cache again.
- Routed to another upstream account or endpoint: 4% of misses, about 0.2% of all input
- A prompt cache lives with the upstream account that served the request. When a relay or multi-account gateway sends the next turn to another account, the whole context is written again. Direct connections to the vendor never show this cause.
- Switched model: 1% of misses, about 0.1% of all input
- Each model has its own cache, so the first request after a model switch reads the whole history again.
A few points of hit rate, several times the bill
At Claude Opus 5.5 official prices, with misses written to the 5-minute cache, the effective cost per million input tokens:
- This week's median, 98.0%: $0.30 (×1.0)
- 90%: $0.68 (×2.3)
- 80%: $1.16 (×3.9)
- 50%: $2.60 (×8.7)
How to check your OpenCode cache hit rate
- Anthropic format: cache_read_input_tokens ÷ (input_tokens + cache_read_input_tokens + cache_creation_input_tokens).
- OpenAI format: cached_tokens (in prompt_tokens_details or input_tokens_details) ÷ prompt_tokens / input_tokens.
- On Wokey, every request in the console's request log shows its cache reads and cache writes.
Why hit rates drop behind relays
- Account switching: the cache belongs to the upstream account, so a turn sent to another account rewrites everything. The most common relay cause; direct connections never have it.
- Format conversion: translating between Anthropic and OpenAI formats can change the prefix or drop cache_control breakpoints.
- Claude Code before v2.1.181, on a custom base URL, put a per-request token in the attribution block at the top of the system prompt, which defeats gateways that cache on the request body; upgrade, or set CLAUDE_CODE_ATTRIBUTION_HEADER=0.
- Self-test: send two requests with the same prefix above the minimum cache length; the second one's cache reads should be close to the prefix length.
Wokey routes a conversation's later requests to the same upstream account whenever it can. From 2026-10-04 to 2026-10-10, ordinary Wokey users hit 92.8% on Claude Opus 5.5 over all requests, against 87.8% for OpenRouter overall.
Compare with OpenRouter cache hit rates · Live: Wokey public cache hit-rate API (last 7 days)
How we measure
- Real user requests through the Wokey gateway; every Monday at 05:00 UTC we compute the previous Monday-to-Sunday week.
- Clients are identified from the request User-Agent. Requests from SDKs, HTTP libraries and downstream relays, whose real client is unknown, are left out, as are enterprise accounts.
- A continuation turn has the same model and upstream account as the previous request of its conversation and starts within 5 minutes of it finishing. Each user's rate is cache reads ÷ input over those turns (input includes cache reads and writes); we report the median over users with at least 20 such turns in the week.
- A cell is published with at least 5 qualifying users; a change of more than 3 points from last week is checked by hand first.
- Known biases: Wokey users only; usage habits vary widely; the all-requests rate includes the gateway's own routing loss (the "routed to another upstream account" cause).
FAQ
What is a normal OpenCode cache hit rate?
This week the median of 25 users was 98.0% in running conversations, with the middle half between 96.6% and 98.7%; over all requests it was 95.0%.
Why is my OpenCode cache hit rate low?
This week most misses came from: new content in running turns (44%), parallel requests (21%), cache expiry (19%). The page lists what to do for each cause.
Does a low cache hit rate burn my Claude plan limit faster?
Yes. In our measurements of Claude plan limits, cache reads use almost none of the limit, while cache writes count about like uncached input. A cached context costs next to nothing; a missed one counts in full again. Per-plan limits are on the Claude usage limits page (/claude-usage-limits).