switchXprovider
Never stop coding when a provider dies.
A zero-dependency Claude Code plugin that routes your API traffic through a local
proxy with automatic failover, auto-recovery, live usage analytics — and
every provider free out of the box (free models, credits, or daily-login rewards), with more on the way.
Works with any Anthropic- or OpenAI-compatible endpoint — GLM, DeepSeek, Kimi, Gemini,
OpenRouter, gateways, or your own server — so you can use any LLM (or free models) in
Claude Code without forking it or routing through a middleman.

An alternative to OmniRouter — your keys, your machine, no middleman. An alternative to OpenClaude — no fork, keep the real Claude Code.

📷 More screenshots
| Providers — priority & failover state | Discover — curated catalog |
|---|
 |  |
| Usage — per provider & model, estimated cost | Events — failovers, recoveries |
|---|
 |  |
| Share — build a stats card, export as PNG | The card itself — 4 themes, 5 time periods |
|---|
 |  |
| Pricing — per-model rates, aliases, recalculation | Settings |
|---|
 |  |
| Help — common issues and fixes | Chaptions — per-project analytics |
|---|
 |  |
✨ Highlights
| |
|---|
| 🆓 Free providers included | Every provider in the shipped catalog has a free tier (free models, credits, or daily-login rewards) — and the catalog keeps growing |
| 🔀 Automatic failover | Provider dies mid-request? Retried on the next one before you notice |
| ✂️ Token saver | Oversized tool outputs (git diff, grep, error dumps) are compressed before they reach the provider — blank-line collapsing plus head/tail elision with a marker. Never touches prompts, user text, or images; never grows a request. On quota-metered free tiers, saved input tokens are free work |
| 🔁 Auto-recovery | Down providers are re-probed every 30s and return to rotation on their own |
| 🔑 Your keys, your machine | Traffic goes straight to the provider — no third party in the path |
| 🚀 Zero dependencies | One Node process, ~12 files, under 6,000 lines — readable in an afternoon |
| 📊 Usage & cost analytics | Tokens, latency, success rate, and estimated cost per provider / model / day |
| 💰 Pricing editor | Real market rates built in; set prices per model or per provider, alias same models under different names, and recalculate history when prices change |
| 🆘 Built-in Help | Troubleshooting view in the dashboard — claude-mem capture sync, stale proxy after updates, env-var conflicts, cooldowns, and more |
| 📤 Shareable stats card | Build a pretty usage card in the dashboard — pick period, stats, and theme — export or share it as a PNG |
| 🧭 Provider discovery | Curated catalog with one-click setup, plus community-maintained remote catalogs |
| ⟳ Model auto-fetch | Enter a base URL + API key and the dashboard pulls the provider's model list for you — no copy-pasting model IDs |
| 🏆 Chaptions | Per-project token & cost analytics with period filters (today / 7d / 30d / all-time), a stacked daily-usage chart, share donut, leaderboard with drill-down trends, and AI-generated analysis reports that run through your own providers |
How it differs from OmniRoute
Both projects solve "never stop coding when a provider dies" — but with opposite trust models. OmniRoute pools free community tokens and routes your traffic through their infrastructure. switchXprovider routes your traffic directly to providers you control.