Claude Code model router
Permafrost
Freeze Claude Code's prompt prefix so DeepSeek's automatic cache always hits — alignment proxy + coalescing + keepalive, installable as a CC plugin. Measured 64% cheaper on real Claude Code traffic.
Install
/plugin marketplace add jianzhichun/permafrostFound in the project README. Check it for setup steps after installing.
git clone https://github.com/jianzhichun/permafrost.gitFrom the README
_ _ _ _ _ _ _ _ _
freeze the prefix · melt the bill
A Claude Code plugin that keeps DeepSeek's prompt cache hitting when Claude Code would otherwise bust it.
cache-stable passthrough proxy · deterministic tool order · env freeze+delta · cold-anchor coalescing · live hit-rate statusline · zero deps
Pointing Claude Code at DeepSeek's Anthropic-compatible endpoint is cheap, and a
vanilla session already hits DeepSeek's cache ~90% on its own — CC's system
prompt is shared across users, so it stays warm. The cache breaks when your
tool list isn't stable: MCP servers connect and reshuffle it, and because
tools render *first* in the cached prefix, any reorder busts everything from
byte 0. Permafrost sits between CC and DeepSeek and rewrites the cache-relevant
bytes so the tools + system anchor stays byte-identical turn after turn — then
streams the reply straight back.
Do you actually need it?
We ran bare DeepSeek vs Permafrost head-to-head on the live API and read
DeepSeek's real cache tokens. The honest result is two-sided:
If you run plain single-agent CC, you don't need this — DeepSeek already does
the job. Permafrost earns its keep on the second row: tool churn busts the prefix
at byte 0 and bare collapses to 33%; the deterministic sort holds it at 71%
(reproduce: e2e/tool_order_ab.py). So it's for users with
MCP servers, heavily customized setups whose anchor isn't the shared-warm
one, or parallel subagent fan-outs on cold anchors.
On cost: DeepSeek is ~11× cheaper than Claude on pricing alone (cache-hit
input $0.0028 vs $0.30 /1M) — that's DeepSeek, not us, the moment you switch
endpoints. Permafrost's *additional* contribution is keeping the cache hitting
when it would otherwise bust (the 33% → 71% roughly halves the bill on a
tool-churning…Details
- Repository
- jianzhichun/permafrost
- Language
- Python
- License
- MIT
- Last updated
- 23 June 2026
- Topics
- cache-optimizationclaude-codeclaude-code-plugincost-optimizationdeepseekllmprefix-cacheprompt-cacheproxy
FAQ
What is Permafrost?
Freeze Claude Code's prompt prefix so DeepSeek's automatic cache always hits — alignment proxy + coalescing + keepalive, installable as a CC plugin. Measured 64% cheaper on real Claude Code traffic. It is a model router for Claude Code, from jianzhichun/permafrost on GitHub.
How do I install Permafrost?
Run /plugin marketplace add jianzhichun/permafrost inside Claude Code, then follow the setup in the README.
Is Permafrost popular?
jianzhichun/permafrost has 25 GitHub stars and 3 forks. It was last updated on 23 June 2026.
More model routers & proxies
Alan Code Agent
25tboulet/Alan-Code-agent
Open-source Python implementation of a Claude-Code-like agent (Gemini CLI, Codex, Copilot...). Usable in CLI, GUI, or as a python library to build upon. Works with any LiteLLM compatible API key, and several local model providers (vLLM, SGLang, Ollama).
Claude Code Proxy
26sunjackson/claude-code-proxy
一个功能强大的跨平台桌面应用,用于管理 Claude Code 的本地代理服务
Aweswitch
28Wehuman01/aweswitch
CLI proxy for switching AI model profiles (Claude Code, Codex, etc.)
Infinite Claude Code
29juanitogit/infinite-claude-code
Infinite, 100% Free, Zero-latency Multi-provider AI Router for Claude Code CLI & Desktop with real-time SSE streaming, auto-failover across 51 providers, and Cyber HUD telemetry.
ClaudeGate
32Santosh-Prasad-Verma/ClaudeGate
High-performance bridge proxy connecting Claude Code CLI & Anthropic SDK to ANY OpenAI-compatible LLM provider (DeepSeek, OpenRouter, Groq, Ollama, Gemini, OpenAI) with zero-crash streaming, failover & secret redaction.
Remora CC
26Nanako0129/remora-cc
Session-scoped GPT-5.6 agent routing for Claude Code
Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.