llm-switcher weekly downloads statistics
By louisphamdev · npm · Claude Code
Zero-dependency multi-protocol edge gateway & provider switcher for Claude Code and Codex, with OpenAI-compatible, Anthropic and Vertex upstreams
llm-switcher has 613 recorded weekly downloads on npm, ranking #1558 of 2,391 tracked listings.
About llm-switcher
LLM Switcher
<p align="center"> <b>Zero-dependency, multi-protocol edge gateway & provider switcher</b><br> Bridge <b>Claude Code</b>, <b>Codex</b> and the <b>Antigravity CLI</b> to any upstream LLM API: OpenAI-compatible, Anthropic, or Vertex.<br> Full bi-directional protocol conversion, official-model context windows, thinking protocol extraction, and edge message healing. </p> <p align="center"> <b>English</b> • <a href="README.vi.md">Tiếng Việt</a> </p> <p align="center"> <img src="https://img.shields.io/badge/Node.js-18%2B-22c55e?logo=node.js&logoColor=white" alt="Node.js 18+"> <img src="https://img.shields.io/badge/Dependencies-Zero-38bdf8" alt="Zero Dependencies"> <img src="https://img.shields.io/badge/Context-window_follows_the_model-6366f1" alt="Context window follows the model"> <img src="https://img.shields.io/badge/Multi--Active-Concurrent_CLIs-f59e0b" alt="Multi-Active"> <img src="https://img.shields.io/badge/License-MIT-gray" alt="License MIT"> </p>🛡️ Zero-Loss Native Emulation for Coding Agents
Generic proxies mangle response protocols: Anthropic loses
thinking_deltareasoning blocks, tool arguments split, and prompt caches desynchronize.LLM Switcher solves this at the local network edge:
- 100% Native Emulation: Normalizes upstream APIs (intact, 9Router, Vertex, DeepSeek) into genuine Anthropic SSE (
thinking_delta+tool_use) for Claude Code, and genuine Responses API events for Codex.- Client-Side Edge Companion: Intentionally offloads heavy account pooling and key rotation to intact (recommended) or 9Router (basic alternative), keeping LLM Switcher zero-dependency and bloat-free.
- Targeted Tool Scope: Built specifically for Claude Code, OpenAI Codex and the Antigravity CLI (
agy). OpenCode supports custom models without shims; refer to intact for account pooling.
Architecture & Interactive Diagrams
LLM Switcher runs locally on your workstation (127.0.0.1:3456) as a transparent edge interceptor and protocol bridge.
1. Interactive Archify Visual Library
All architecture maps and execution sequences are authored with Archify and rendered with Pretty-Mermaid:
| Diagram | Description | Interactive Visual | Scalable Vector |
|---|---|---|---|
| System Topology | Complete edge architecture: Clients ➔ Optimizers ➔ Gateway & Healer Core ➔ Upstream Providers | 📊 Open Interactive View | SVG • PNG |
| IR Healer Pipeline | Inbound request normalization, schema healing, streaming synthesis, and abort propagation | 🔄 Open Interactive View | SVG • PNG |
| Codex Blindfold Routing | TLS CONNECT proxy sequence, credential scrubbing, and upstream routing | 🛡️ Open Interactive View | HTML |
| Switch Lifecycle | Zero-downtime tool toggle, CAS configuration writes, and interceptor sync | ⚡ Open Interactive View | HTML |
2. Request Lifecycle & Healer Pipeline
<p align="center"> <a href="docs/diagrams/ir-translation-pipeline.html"> <img src="docs/diagrams/ir-healer-pipeline.svg" alt="Bi-Directional IR Healer Pipeline" width="100%"> </a> <br> <sub><i>💡 Click above to inspect the interactive IR Healer lifecycle sequence.</i></sub> </p>3. High-Level Flow
flowchart LR
classDef client fill:#1e293b,stroke:#38bdf8,stroke-width:2px,color:#f8fafc;
classDef edge fill:#0f172a,stroke:#6366f1,stroke-width:2px,color:#f8fafc;
classDef healer fill:#064e3b,stroke:#10b981,stroke-width:2px,color:#f8fafc;
classDef upstream fill:#2e1065,stroke:#a855f7,stroke-width:2px,color:#f8fafc;
classDef opt fill:#1e1b4b,stroke:#818cf8,stroke-dasharray: 4 4,color:#e0e7ff;
subgraph Clients[" 💻 Dev Clients & Coding CLIs "]
CC["Claude Code CLI\n(/v1/messages)"]:::client
CDX["OpenAI Codex CLI\n(/v1/responses)"]:::client
end
subgraph Middle[" ⚡ Optional Middle-Layer "]
OPT["Token Optimizers\n(Headroom / RTK)"]:::opt
end
subgraph Gateway[" 🛡️ LLM Switcher Edge Gateway (:3456) "]
ROUTER["Edge Router\n(Zero-Mutation)"]:::edge
HEALER["Healer Engine\n(Auto-Fix Schemas)"]:::healer
IR["Bi-Directional IR\n(Event Synth)"]:::healer
ROUTER --> HEALER --> IR
end
subgraph Upstreams[" ☁️ Upstream Providers "]
INTACT["intact Gateway\n(Recommended Pooler)"]:::upstream
OTHER["9Router / Vertex / Other"]:::upstream
end
CC -->|direct| ROUTER
CDX -->|direct| ROUTER
CC -.->|prune| OPT
CDX -.->|prune| OPT
OPT -->|forward| ROUTER
IR -->|contract & pool| INTACT
IR -->|standard call| OTHER
4. How It Actually Works: Transparent Request Interception
LLM Switcher acts as a transparent man-in-the-middle without ever touching client configuration files:…
Description from the npm listing.
- llm
- gateway
- proxy
- claude-code
- codex
- openai
- gemini
- anthropic
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (1)Similar npm Claude Code plugins
All 20 llm-switcher alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/llm-switcher. First seen Oct 21, 2026; last successful collection Oct 21, 2026. See the methodology.