Magpie Pools Every Coding Agent's Existing Subscriptions Behind One Local Gateway
Anyone juggling Claude Code, Codex, and OpenCode with several subscriptions has been paying for the same model capacity twice and editing config files to get at it. Magpie removes both problems: one gateway shares every subscription across every agent, and automatic failover means hitting a quota limit no longer stops the session.
CC Switch and Magpie both switch AI providers, but they work at different layers. CC Switch rewrites each agent's config file so the agent points at a different provider; each agent still connects directly to its own provider, so a Claude Pro subscription can't be used by Codex and a ChatGPT Plus subscription can't be used by Claude Code. Magpie runs a local gateway (default 127.0.0.1:3425) that all agents connect to. It reads the login states of installed agents, turns each logged-in subscription into a Provider, and atomically rewrites the agent's own config to point at the gateway. The rewrite preserves comments, order, and formatting, so MCP configs, plugins, and hooks stay intact.
On top of that, Magpie translates between OpenAI Chat Completions, OpenAI Responses, Anthropic Messages, and Google Gemini, so agents using different protocols can call the same models. Routing groups let you put several models behind one name (e.g. group/daily-coding) with strategies: smart, order, rotate, usage, and pace. When one subscription's quota is exhausted, Magpie automatically moves to the next account or provider, so the agent never sees a 429. It also masks secrets in requests before they leave the machine by replacing key values with placeholders, and restores them in responses.
Installation is a curl script or a platform package for macOS, Windows, and Linux, with Docker and CLI versions available. Tools outside the support list can connect via environment variables that point at the gateway. Magpie was open sourced in September 2026 and is already at version v0.1.3353; the single-agent, single-provider case doesn't need it, but anyone juggling multiple agents and subscriptions is the target user.
CC Switch edits config files, Magpie routes requests; the layer you choose decides whether a subscription can be shared across agents.
Atomic config rewrites matter because Magpie works with the agent's own config, not around it. The agent sees a normal provider, so MCP servers, hooks, and plugins keep functioning.
The secret-masking feature addresses a real leak that most proxies ignore: agents can put API keys from .env files and logs into prompts. It is off by default, so it only protects users who turn it on.
Routing groups convert quota exhaustion from a hard stop into a soft handoff. You chain subscriptions and only care about total spend, not which account is empty.
A dispute over the "uninstall cc-switch" headline leaves one side arguing that Magpie's subscription pooling and routing only matter for multi-agent/multi-provider setups, while the other side counters that gateway-level features like vision, image generation, and API sharing are useful even with a single agent. Separately, a reader asks how Magpie differs from litellm, which allegedly already provides the same functions. A spam post adds nothing but an ad link.
I accept the distinction between "changing a road sign" and "fixing an intersection" — CC Switch rewrites config files, Magpie runs a gateway on 127.0.0.1:3425 to forward requests, these are two different things. But I don't accept the title "uninstall cc-switch" — for someone using only one agent and one provider, Magpie's subscription pooling and routing groups are all useless, and instead you have an extra resident gateway to manage. That clickbait-style advice to uninstall is just creating trouble. You yourself wrote at the end that single-agent benefits are limited, so the title should be "worth switching only with multiple agents", not a blanket statement.
Single agent is enough, and who doesn't have several installed on their computer nowadays. Some features are handled at the gateway level, regardless of which agent you use. You can add image recognition, image generation, video generation, web search, etc. to models that don't have those capabilities — these aren't relying on MCP and skills inside the agent; it's like a real multimodal model. Also, there are tons of plugins. You can proxy the API you have configured on your own machine for other computers to use. I used to always use CC Switch, but now I don't need it at all — why install two?
I don't understand the difference from litellm. litellm can implement all the features described here.