Claude Code model router
Claude Code Cache Fix
Fixes prompt cache regression in Claude Code that causes up to 20x cost increase on resumed sessions
Install
npm install -g claude-code-cache-fixFound in the project README. Check it for setup steps after installing.
git clone https://github.com/cnighswonger/claude-code-cache-fix.gitFrom the README
claude-code-cache-fix English | 中文 | 한국어 | Français | Português Cache optimization proxy for Claude Code. Fixes prompt cache bugs that cause excessive quota burn, stabilizes the request prefix, and monitors for silent regressions. Works with all CC versions including the v2.1.113+ Bun binary. *This README documents current main; release availability is noted per feature.* What it does to your traffic A local proxy sits between Claude Code and Anthropic. Before you read further, here is exactly what that means — the full treatment is in Security model. - Binds to 127.0.0.1 by default. - Forwards Claude Code traffic to Anthropic. On the default path it makes no other outbound calls — telemetry is written to local files under ~/.claude/, never sent anywhere. Two opt-in features do perform their own egress, both off unless you enable them: OAuth refresh (CACHE_FIX_OAUTH_REFRESH=on) posts to Anthropic's token endpoint, and forward-proxy download acceleration re-issues release downloads to downloads.claude.ai / storage.googleapis.com. - Can read and rewrite POST /v1/messages. That capability *is* the cache repair — there is no version of this that works without it. - It is idempotent: if nothing needs fixing, the request passes through unmodified. It normalizes request structure (block order, fingerprint, TTL); it does not modify your conversation. - Each transform is one file in proxy/extensions/, readable in isolation. - Independently assessed as a legitimate tool by @TheAuditorTool (2026-04-14). Forward-proxy mode (--remote-control) additionally terminates TLS for api.anthropic.com using a locally-generated CA, which your client must trust. Everything else is blind-tunnelled. That mode is opt-in and off by default. Do you need this? Install or…
Details
- Repository
- cnighswonger/claude-code-cache-fix
- Language
- JavaScript
- Last updated
- 5 September 2026
- Topics
- anthropicapi-proxycacheclaudeclaude-codeclaude-code-toolsclicost-optimizationdeveloper-toolsllmnodejsnpm
FAQ
What is Claude Code Cache Fix?
Fixes prompt cache regression in Claude Code that causes up to 20x cost increase on resumed sessions It is a model router for Claude Code, from cnighswonger/claude-code-cache-fix on GitHub.
How do I install Claude Code Cache Fix?
Run npm install -g claude-code-cache-fix, then follow the setup in the README.
Is Claude Code Cache Fix popular?
cnighswonger/claude-code-cache-fix has 449 GitHub stars and 37 forks. It was last updated on 5 September 2026.
More model routers & proxies
Snip
476edouard-claude/snip
CLI proxy that reduces LLM token usage by 60-90%. Declarative YAML filters for Claude Code, Cursor, Copilot, Gemini. rtk alternative in Go.
UltraCode Shim
438OnlyTerp/UltraCode-Shim
Give Claude Code's ultracode mode to ANY model you already pay for. A tiny local proxy + one config.json. Point your AI at AGENTS.md and it sets itself up.
clauth
292uwuclxdy/clauth
Claude Code multi-account manager with a usage monitor and TUI.
Repowire
271prassanna-ravishankar/repowire
May the agents talk. Connect Claude Code, Opencode, Codex, Pi across projects, across machines and with your telegram
shunt
373pleaseai/shunt
Per-agent routing proxy that sends selected Claude Code subagents to other models.
claude-code-gpt-5-codex
240teremterem/claude-code-gpt-5-codex
Local proxy to run Claude Code against OpenAI GPT-5 Codex models.
Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.