Claude Code model router
Snip
CLI proxy that reduces LLM token usage by 60-90%. Declarative YAML filters for Claude Code, Cursor, Copilot, Gemini. rtk alternative in Go.
Install
brew install edouard-claude/tap/snipFound in the project README. Check it for setup steps after installing.
git clone https://github.com/edouard-claude/snip.gitFrom the README
snip - Reduce LLM Token Usage by 60-90% CLI proxy that filters shell output before it reaches your AI coding assistant's context window. Works with Claude Code, Cursor, Copilot, Gemini CLI, Windsurf, Cline, Codex, Pi, Grok Build, Kilo Code, Antigravity, OpenCode, OpenClaw, Aider, and any tool that runs shell commands. AI coding agents burn tokens on verbose shell output that adds zero signal. A passing go test produces hundreds of lines the LLM will never use. git log dumps full commit metadata when a one-liner per commit suffices. snip sits between your AI tool and the shell, filtering output through declarative YAML pipelines. Write a YAML file, drop it in a folder, done. The extensible LLM token optimizer: filters are YAML data files, not compiled code. Measured on a real Claude Code session — 128 commands, 2.3M tokens saved. Quick Start How It Works Before — Claude Code sees this (275 tokens): After — snip returns this (8 tokens): That's 97% fewer tokens, measured on this very repository. The filter injects -json and counts individual test results, so the LLM gets more signal — 1125 tests passed, not just 18 packages — in a fraction of the space. No filter match? The command passes through unchanged — zero overhead. Token Savings by Command Stop wasting tokens on noise. snip gives the LLM the same signal in a fraction of the context window. Installation Homebrew (recommended) From GitHub Releases Download the latest binary for your platform from Releases. From source Or build locally: make install and make install-lite use the first available destination: an explicit GOBIN, go env GOBIN, or the first go env GOPATH entry plus /bin. Use make upgrade or make upgrade-lite to replace the resolved snip on PATH instead. An explicit GOBIN overrides the…
Details
- Repository
- edouard-claude/snip
- Website
- edouard-claude.github.io/snip
- Language
- Go
- License
- MIT
- Last updated
- 2 November 2026
- Topics
- ai-codingai-toolsaiderclaude-codecliclinecodexcontext-windowcopilotcursordeveloper-toolsfilter
FAQ
What is Snip?
CLI proxy that reduces LLM token usage by 60-90%. Declarative YAML filters for Claude Code, Cursor, Copilot, Gemini. rtk alternative in Go. It is a model router for Claude Code, from edouard-claude/snip on GitHub.
How do I install Snip?
Run brew install edouard-claude/tap/snip, then follow the setup in the README.
Is Snip popular?
edouard-claude/snip has 476 GitHub stars and 48 forks. It was last updated on 2 November 2026.
More model routers & proxies
clauth
292uwuclxdy/clauth
Claude Code multi-account manager with a usage monitor and TUI.
Claude Code Cache Fix
449cnighswonger/claude-code-cache-fix
Fixes prompt cache regression in Claude Code that causes up to 20x cost increase on resumed sessions
shunt
373pleaseai/shunt
Per-agent routing proxy that sends selected Claude Code subagents to other models.
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.
claude-worker-proxy
276glidea/claude-worker-proxy
Cloudflare Worker proxy for pointing Claude Code at other model providers.
Repowire
271prassanna-ravishankar/repowire
May the agents talk. Connect Claude Code, Opencode, Codex, Pi across projects, across machines and with your telegram
Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.