A community-driven registry for Claude, Cursor, Windsurf, Cline & more. Not affiliated with Anthropic.
Are you the author? Sign in to claim
A High-Availability, Transparent, and Smart Multi-Vendor Proxy for Claude Code. Support Claude Plans, GitHub Copilot, Go
When you're deeply immersed in your coding "zone" with Claude Code (or any AI assistant relying on Anthropic's Messages API), there's nothing quite as soul-crushing as having your flow violently interrupted by:
429 rate_limit_error. Forced to stare at the screen and rethink your life choices.403 error.503 overloaded_error.coding-proxy was forged in the developer fires to terminate these exact pain points. Serving as a purely transparent intermediate layer, it blesses your Claude Code with millisecond-level "N-tier chained fallback disaster recovery." When your primary vendor goes belly up, it seamlessly and instantly switches your requests to the next smartest available fallback (like GitHub Copilot, Google Antigravity, or even Zhipu GLM)—with zero manual intervention, and zero perceived interruption.
ANTHROPIC_BASE_URL with a single line, and you're good to go.claude-* into glm-*).SQLite WAL. The CLI provides a one-click detailed Token usage dashboard (coding-proxy usage).FastAPI + httpx). Zero dependency on Redis, message queues, or other heavy machinery—absolutely no extra baggage for your dev rig.Make sure your rig has Python 3.12+ and the uv package manager installed (highly recommended, because life is too short for slow package managers).
uv add coding-proxy
## (Optional) Highly recommended to enable Zhipu GLM. Use env vars to defensively inject your keys
# export ZHIPU_API_KEY="your-api-key-here"
# Start coding-proxy with the default configuration
# The default config lives at: ~/.coding-proxy/config.yaml.
uv run coding-proxy start
## Use the `-c` flag to gracefully point to a custom config path
# uv run coding-proxy start -c ./coding-proxy.yaml
# INFO: Started server process [1403]
# INFO: Waiting for application startup.
# ...
# INFO: coding-proxy started: host=127.0.0.1 port=3392
# INFO: Application startup complete.
# INFO: Uvicorn running on http://127.0.0.1:3392 (Press CTRL+C to quit)
Open a fresh terminal tab and route your traffic through coding-proxy before firing up Claude Code:
export ANTHROPIC_BASE_URL=http://127.0.0.1:3392
# Enjoy blissful, silky-smooth, and uninterrupted coding nirvana:
claude
Curious about your real-time token spend, latency, and circuit breaker pulse? Pop open your browser and head to:
open http://127.0.0.1:3392/dashboard
coding-proxy comes equipped with a badass suite of CLI tools to help you boss around your proxy state.
| Command | Description | Example Usage |
|---|---|---|
start | Fire up the proxy server. Supports custom ports and configuration paths. | coding-proxy start -p 8080 -c ~/config.yaml |
auth | Manage OAuth credentials. Sub-commands: login (browser OAuth), status (token validity), reauth (re-authenticate), logout (clear tokens). | coding-proxy auth login -p github |
status | Check proxy health. Shows circuit breaker states (OPEN/CLOSED) and quota status across all tiers. | coding-proxy status |
usage | Token Stats Dashboard. Stalks every single token consumed, failovers triggered, and latency across day/vendor/model dimensions. | coding-proxy usage -d 7 -v anthropic |
reset | The emergency flush button. Force-reset all circuit breakers and quotas instantly when you've confirmed the main vendor is back from the dead. | coding-proxy reset |
When a request inevitably hits the fan, the RequestRouter slides gracefully down the N-tier tree, juggling circuit breakers and token quotas to decide the ultimate destination:
graph RL
%% 样式定义 (支持明暗双色模式的高对比色彩)
classDef client fill:#1E3A8A,stroke:#60A5FA,stroke-width:2px,color:#EFF6FF,rx:8,ry:8
classDef router fill:#4C1D95,stroke:#A78BFA,stroke-width:2px,color:#F5F3FF,rx:8,ry:8
classDef gateway fill:#7C2D12,stroke:#FB923C,stroke-width:2px,color:#FFF7ED
classDef api fill:#14532D,stroke:#4ADE80,stroke-width:2px,color:#F0FDF4
classDef fallback fill:#27272A,stroke:#A1A1AA,stroke-width:2px,color:#F4F4F5
Client["💻<br/>Client (Claude Code)"]:::client
subgraph CodingProxy["⚡ coding-proxy"]
direction RL
Router["RequestRouter<br/><code>routing/router.py</code>"]:::router
Router -->NTier
subgraph NTier["N-tier"]
direction TB
subgraph Tier0 ["Tier 0: Zhipu"]
direction RL
G0{"CB / Quota"}:::gateway -- "✅ Pass" --> API0(("GLM API")):::api
end
subgraph Tier1 ["Tier 1: Anthropic"]
direction RL
G1{"CB / Quota"}:::gateway -- "✅ Pass" --> API1(("Anthropic API")):::api
end
subgraph Tier2 ["Tier 2: GitHub Copilot"]
direction RL
G2{"CB / Quota"}:::gateway -- "✅ Pass" --> API2(("Copilot API")):::api
end
subgraph Tier3 ["Tier 3: Google Antigravity"]
direction RL
API3(("Gemini API")):::fallback
end
Tier0 -. "❌ Blocked / API Error" .-> Tier1
Tier1 -. "❌ Blocked / API Error" .-> Tier2
Tier2 -. "🆘 Safety Net Downgrade" .-> Tier3
end
end
Client -->|"POST /v1/messages"| CodingProxy
For a deep dive into the architecture and under-the-hood wizardry, consult framework.md (Currently in Chinese).
To ensure this project outlives us all (long-term maintainability), we offer exhaustive, Evidence-Based documentation:
config.yaml field and common troubleshooting manuals. (Currently in Chinese)During our chaotic yet rewarding exploration of engineering practices, we were heavily inspired by cutting-edge tech ecosystems and brilliant designs. Special shoutouts:
coding-proxy's elastic N-Tier mechanisms.Native macOS app to monitor Claude AI usage limits and watch your coding sessions live
Pocket Flow: Codebase to Tutorial
An AI-powered custom node for ComfyUI designed to enhance workflow automation and provide intelligent assistance
A Comprehensive Benchmark to Evaluate LLMs as Agents (ICLR'24)