Claude Code model router
ccproxy
Hookable proxy for Claude Code that rewrites requests and routes to custom models.
Install
uv tool install ai-ccproxygit clone https://github.com/starbaser/ccproxy.gitFrom the README
ccproxy — CLI Proxy Discord ccproxy is a transparent network interceptor for LLM tooling and AI harnesses, built on mitmproxy and WireGuard with full TLS inspection and Wireshark keylog export. Originally purpose-built for Claude Code, ccproxy now works with any LLM client: Aider, Cursor, OpenAI SDK, or anything else that speaks HTTP. It jails a process inside a rootless WireGuard namespace, intercepts at the network layer, and feeds it through a DAG-driven pipeline that can decompose, transform, and re-route traffic between providers. Cross-provider request and response transformation is handled by lightllm, a surgical adapter and streaming-FSM layer inside ccproxy — no LiteLLM proxy subprocess, no gateway server. New in 2.0: Codex/OpenAI Responses support with packaged request shaping, plus DeepSeek V4 routing for Anthropic-format requests through DeepSeek's /anthropic/v1/messages endpoint. See Configuration for the routing setup. The hook pipeline is your extension point for building mods and taking control of your LLM usage while respecting terms of service: - Cross-provider routing: redirect or transform requests between Anthropic, Gemini, OpenAI, DeepSeek, Perplexity Pro, and Anthropic-compatible forks. - Compliance shaping: replay packaged, sanitized SDK compliance envelopes for built-in providers while injecting your actual request content at runtime. - MCP bridging: add unsupported MCP features to any client: sampling via sentinel key detection, server notifications bridged into the LLM context via ccproxy’s /mcp endpoint, and experimental tasks support. Feedback and contributions welcome — open an issue or submit a PR. Installation Platform support WSL2 is fully supported because it *is* Linux. Native Windows is not — use WSL2. On macOS,…
Details
- Repository
- starbaser/ccproxy
- Language
- Python
- Last updated
- 10 August 2026
- Topics
- aiai-gatewayai-proxyai-toolsanthropicclaudeclaude-aiclaude-apiclaude-codeclaude-maxclaudecodegemini
- Listed in
- awesome-claude-code-hooks
FAQ
What is ccproxy?
Hookable proxy for Claude Code that rewrites requests and routes to custom models. It is a model router for Claude Code, from starbaser/ccproxy on GitHub.
How do I install ccproxy?
Run uv tool install ai-ccproxy, then follow the setup in the README.
Is ccproxy popular?
starbaser/ccproxy has 357 GitHub stars and 34 forks, and is included in 1 curated Claude Code list. It was last updated on 10 August 2026.
More model routers & proxies
teamclaude
471KarpelesLab/teamclaude
Multi-account proxy that pools Claude Max and other backends for Claude Code.
ccLoad
431caidaoli/ccLoad
Self-hosted gateway pooling API keys and subscription accounts behind one endpoint for Claude Code.
CC Switch Web
524Laliet/cc-switch-web
Web-based version of CC Switch for managing Claude Code providers.
Pasteguard
805sgasser/pasteguard
AI gets the context. Not your private data. Local-first privacy proxy for browser chat, AI APIs, and coding agents.
Agentic Flow
836ruvnet/agentic-flow
Easily switch between alternative low-cost AI models in Claude Code/Agent SDK. For those comfortable using Claude agents and commands, it lets you take what you've created and deploy fully hosted agents for real business purposes. Use Claude Code to get the agent working, then deploy it in your favorite cloud.
Clother
434jolehuit/clother
Switches Claude Code between compatible LLM providers with per-provider launcher commands.
Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.