Claude Code model router
Squeezr
AI-powered Claude Code proxy that uses Haiku to semantically compress context and save thousands of tokens
Install
npm install -g squeezr-aiFound in the project README. Check it for setup steps after installing.
git clone https://github.com/sergioramosv/squeezr.gitFrom the README
Squeezr Token compression proxy for AI coding CLIs. Sits between your CLI and the API, compresses context on the fly — without ever breaking Anthropic's prompt cache — and saves thousands of tokens per session. Real-time dashboard, MCP integration, and an optional AI compression layer powered by Zest, Squeezr's own model. Supported CLIs & apps Works with both API keys and subscription plans (OAuth) — Claude Code Max/Pro, OpenAI Plus, etc. Quick start Prompt-cache safety (the core design principle) Anthropic bills cached context at 0.1x — but only if the request prefix arrives byte-for-byte identical between requests. A proxy that mutates history differently on each request silently invalidates that cache and re-bills the full context at full price, costing far more than compression saves. Squeezr is built around this constraint: - Deterministic compression is byte-stable — same input always produces the same output (fixed-pressure rules), so the cached prefix never changes → Anthropic's cache keeps hitting. - Unstable passes never touch the cached prefix — AI compression, cross-turn dedup, diff-reads and stale-turn summaries only operate past the last cache_control marker (or freely for clients that don't use caching). - Live cache health monitoring — the dashboard's *Prompt Cache* card shows cache_read vs cache_creation tokens and a Hit Health %. Green (≥80%) means you're paying the minimum possible; red means something is invalidating your prefix. Full write-up: docs/PROMPT_CACHE.md How it works Every request passes through Squeezr on localhost:8080. Compression layers, in order: 1. MCP tool filtering (opt-in) — drop tool definitions from MCP servers you block (mcp_block_servers) or that aren't allow-listed. A single chatty MCP server can cost ~18k tokens…
Details
- Repository
- sergioramosv/squeezr
- Language
- TypeScript
- Last updated
- 26 October 2026
FAQ
What is Squeezr?
AI-powered Claude Code proxy that uses Haiku to semantically compress context and save thousands of tokens It is a model router for Claude Code, from sergioramosv/squeezr on GitHub.
How do I install Squeezr?
Run npm install -g squeezr-ai, then follow the setup in the README.
Is Squeezr popular?
sergioramosv/squeezr has 34 GitHub stars and 3 forks. It was last updated on 26 October 2026.
More model routers & proxies
Krouter
33sifxprime/krouter
Universal AI router — save 20-40% tokens with RTK and never stop coding. Connect Claude Code, Cursor, Antigravity, Kiro, Copilot, Codex, Cline & any OpenAI-compatible client to 40+ providers & 100+ models via one local endpoint. Zenith sub-1ms failover, MITM, multi-account.
Claude Code Proxy
32daodao97/claude-code-proxy
Claude code proxy, friendly view request log, enhance request stability
Claudecodex
35karem505/claudecodex
Use Claude Code's UI with OpenAI GPT-5.6 (Sol/Terra/Luna) as the engine — powered by your ChatGPT Plus/Pro subscription via a local Codex proxy. One-line install; plain claude stays untouched.
Ollama Herd
31geeks-accelerator/ollama-herd
Route LLMs, embeddings, image generation and speech-to-text across the Macs, Linux servers and Windows PCs you already own. One OpenAI-, Ollama- and Anthropic-compatible endpoint, so Claude Code and Codex run on your own machines. Zero config.
Claude Code Model Router
35luwill/Claude-Code-Model-Router
A lightweight API gateway that lets you switch to third-party AI models when using Claude Code.
Hermes Claude Code Local
32KaiFelixBennett/hermes-claude-code-local
Run Hermes Agent + Claude Code locally on llama.cpp — zero API costs. A 4h / 7M-token session that would have cost $94 on Claude Opus 4.7
Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.