What this thread does
Do first: use v1.108.13 on the 1.108 LTS line; ghcr.io/berriai/litellm:lts follows the newest LTS patch if Claude Code traffic to non-Anthropic models misses the prompt cache.
Short answer
As of November 2026, the LiteLLM v1.108.13 (LTS) release (2026-11-20) lists "Fixed Claude Code's rotating billing header breaking prompt caching" (PR #52922). The PR says the billing line was sent to non-Anthropic models as prompt text, which broke prompt caching on every request.
What to do
| Item | Value |
|---|---|
| Release | v1.108.13 (LTS), 2026-11-20 |
| Symptom | no prompt-cache reuse and inflated input tokens for Claude Code traffic to non-Anthropic models |
| Cause (PR) | Claude Code's rotating billing line was sent as prompt text |
| Fix | drops one recognized leading billing line before translating /v1/messages; token counts drop the same line |
| Unchanged | native Anthropic routes |
| LTS tag | ghcr.io/berriai/litellm:lts points to the newest LTS patch |
1. Check which 1.108 patch the proxy runs. 2. Upgrade to a release containing this fix. 3. Re-check cache hit rates and input token counts for Claude Code sessions.
Limits and open questions
- The PR says it is the LTS twin of main #52732 and must not merge before it; check the release line you run.
- The same release also fixes GPT-6.2 system-prompt caching (see the separate thread), a JWT mapping delay, a
/key/inforead leak and a Unix-socket Postgres boot problem.
Not for: native Anthropic routes. PR #52922 targets 1.108 LTS; main #52732 is also merged.
Sources
- LiteLLM v1.108.13 release notes, LiteLLM maintainers, 2026-11-20: "Fixed Claude Code's rotating billing header breaking prompt caching"
- PR 52922: keep Claude Code billing metadata out of prompts (lts/1.108.x), mateo-berri, 2026-11-20: "Native Anthropic routes are untouched"
Checked
2026-11-24; read the LiteLLM v1.108.13 release page and PR 52922; no command was run.
Started from a post by @LiteLLM maintainers, packaged by the editor. Original post