What is magpie?
magpie is a Go app for macOS, Windows and Linux (menu bar, window, TUI, web UI and CLI, plus Docker and Termux) that runs a gateway on 127.0.0.1:3425. It changes the model setting in each agent's own config so Claude Code, Codex, Cursor CLI, Gemini CLI and the other supported agents send their requests to it, then forwards each request to a provider you added: an API key, a local model, or a subscription you are signed in to, such as Claude, ChatGPT, Copilot, Gemini or SuperGrok. The gateway translates between the OpenAI, Anthropic and Gemini request formats.
Routing groups treat several models or accounts as one and move to the next when a quota runs out, with modes that spend the plan renewing soonest first or spread use evenly. Around that it has an optional filter that masks secrets and personal data before a request leaves your computer, a library that writes instructions, MCP servers, skills and subagents into each agent's files, usage and cost tracking, and LAN sharing with per-client keys. The GitHub user yetone wrote 88 of the last 100 commits.
Is magpie worth it?
Every prompt, file excerpt and tool result your agents send goes through magpie, and so does every reply. To answer on your behalf it holds your credentials: API keys in ~/.config/magpie/providers.json and accounts you sign in to through magpie in logins.json, both written readable by your user only (mode 0600). The docs describe file permissions and say nothing about encryption. For a subscription an agent is already signed in to, magpie reads that agent's own sign-in each time (Claude Code's Keychain item or ~/.claude/.credentials.json, Codex's auth.json, Copilot's apps.json), refreshes the token as the agent would and writes the new one back. A privacy setting stops that reading.
The gateway answers only this computer until you turn on LAN sharing, which then requires a named key for each client, with optional daily, weekly or monthly token and cost limits. On loopback any token is accepted, so any program on your machine can spend your plans through it. Requests arriving through a local tunnel such as ngrok or cloudflared are treated as remote and refused, and browser pages get CORS only from origins you list.
Pooling subscriptions is where the risk sits. Anthropic's Claude Code legal page says OAuth sign-in is intended for ordinary use of Claude Code and Anthropic's own apps, that advertised Pro, Max and Ultra limits assume individual use, and that Anthropic may enforce its rules without notice. magpie's reference says Anthropic classifies another agent's system prompt as third-party traffic, so for Claude it drives the real local claude binary and bridges the calling agent's tools in over MCP, which keeps those requests out of that classifier. That is a workaround aimed at Anthropic's own check, and your Claude account carries the risk. The docs are blunter about Google, which may suspend an Antigravity account used from another agent; magpie asks before adding one and advises using an account you can afford to lose. We found no comparable statement for ChatGPT, Copilot or Grok, so check their terms yourself.
Masking is off until you switch it on. Once on, it replaces API keys, tokens, emails and checksum-valid card and ID numbers with placeholders before a request leaves, restores them in the reply, and holds the request back with a 503 error if masking cannot run; an optional local model, a 1.6 GB download, looks for names, addresses and passwords that rules miss. Once a day magpie reports a random id, its version and which agents, providers and models you use, which you can turn off. The repo has about 42,800 stars two months after it opened in September 2026.
The catch: a project led by one developer now edits the config of every agent you run, ships several releases a day (v0.1.5037 to v0.1.5039 all landed on 28 November 2026), and has 5,401 open issues against 2,117 closed. It accepts no outside pull requests, so fixes depend on its maintainers.
Our take: for API keys and coding plans sold as keys, such as GLM Coding Plan, Kimi Code or DeepSeek, magpie's failover and quota tracking repay the setup. Putting a Claude Max plan behind Codex or Cursor stakes the account, while LiteLLM or Claude Code Router on plain API keys carries no such exposure.
Where it earns its place
A freelance developer paying for GLM Coding Plan, Kimi Code and a DeepSeek key
Keep Claude Code working when one plan's quota runs out mid-session
Put the three in a routing group in order mode and point Claude Code at the group; when one returns a quota error the next answers, and `magpie quota` shows what each has left.
An engineer at a fintech whose agents read .env files and logs
Stop API keys and customer emails reaching model vendors
Turn on masking in Settings, Privacy, then check Insights, Masking to see what each vendor received. Values the agent must reason about go under Never mask; the optional 1.6 GB local model adds names and addresses.
A developer who works on a desktop and a laptop
Use the desktop's providers and routing groups from the laptop
Turn on Share on local network, create a gateway key for the laptop with a daily cost limit, and connect the laptop's magpie to the desktop as a remote; requests without a valid key get a 401.
Before you commit
- Setup
- Download from usemagpie.ai or run `curl -fsSL https://usemagpie.ai/install.sh | sh`; Mac builds are signed and notarised and release files carry GitHub build attestations. Add a provider, pick a model for each agent, then start a new session.
- Integrations
- 91 agents, among them Claude Code, Claude Desktop, Codex, Gemini CLI, Cursor CLI, OpenCode, Zed, VS Code Chat and Cline; presets for Anthropic, OpenAI, Gemini, Bedrock, DeepSeek, Kimi, GLM, OpenRouter, Ollama and LM Studio; Claude, ChatGPT, Copilot, Gemini and SuperGrok subscriptions; Bun plugins; OTLP export; WebDAV or S3 sync.
- Data and privacy
- Prompts and replies go only to the providers you use. Keys in providers.json and magpie's own sign-ins in logins.json under ~/.config/magpie, mode 0600; other agents' sign-ins are read where those agents keep them. A daily report to PostHog and usemagpie.ai lists agents, providers and model ids without prompts or keys, and turns off in Settings or with DO_NOT_TRACK=1.
- Cost at scale
- Free under MIT. Spend goes to your plans and keys; the Usage page prices tokens at list rates, and smart routing spends the plan that renews soonest first so less quota lapses unused.
- Limits
- Claude subscriptions need Claude Code installed and signed in; Google may suspend Antigravity accounts used this way; a masked value cannot be reasoned about by the model; on loopback any token is accepted.
What’s good
- Any of 91 agents on any key, local model or subscription
- Failover across accounts and models when a quota runs out
- Local secret masking that holds a request back if it fails
- Uninstall puts every agent's config back as it was
What’s not
- Routing other agents through a Claude plan risks the account under Anthropic's terms
- Masking off by default
- Keys and sign-ins in owner-only files, with no encryption described
- 5,401 open issues and no outside pull requests
Best for
Developers who pay for several coding plans and API keys across more than one agent and are willing to keep their Claude subscription out of the pool.
magpie alternatives
Where it fits in the AI stack
magpie: common questions
- Is magpie worth it?
- magpie handles quotas and failover well for anyone paying for several AI plans, but sending other agents through a Claude subscription puts that account at risk under Anthropic's terms. We rate it 3.6 out of 5.
- How much does magpie cost?
- Free and open source (MIT), with no paid tier. You pay for the plans and API keys you pool; the README carries sponsor banners whose links run through usemagpie.ai.
- What are the downsides of magpie?
- Routing other agents through a Claude plan risks the account under Anthropic's terms; masking off by default; keys and sign-ins in owner-only files, with no encryption described; 5,401 open issues and no outside pull requests.
- Who is magpie best for?
- Developers who pay for several coding plans and API keys across more than one agent and are willing to keep their Claude subscription out of the pool.
- How much does magpie cost for a team or in production?
- Free under MIT. Spend goes to your plans and keys; the Usage page prices tokens at list rates, and smart routing spends the plan that renews soonest first so less quota lapses unused.
- Is magpie safe for company data?
- Prompts and replies go only to the providers you use. Keys in providers.json and magpie's own sign-ins in logins.json under ~/.config/magpie, mode 0600; other agents' sign-ins are read where those agents keep them. A daily report to PostHog and usemagpie.ai lists agents, providers and model ids without prompts or keys, and turns off in Settings or with DO_NOT_TRACK=1.
- What are the best magpie alternatives?
- The closest alternatives we have reviewed are CC Switch, Claude Code Router, LiteLLM, OmniRoute and Free Claude Code.
Answers checked Nov 28, 2026.