🧭 Decision Guide
Why trending now: The README showcases unified access for Claude Code, Codex, Gemini CLI, a local 127.0.0.1:3425 gateway, and quota failover. The repository also has 40,479 stars, the latest release magpie v0.1.4730, and entered monthly Trending on 2026-11-24. The material is insufficient to determine why it is receiving attention now.
Try it if you
-
You use Claude Code, Codex, or Gemini CLI together and need one place to switch among DeepSeek, Kimi, and GLM models.The README section “Is magpie for you?” targets users with more than one agent, provider, or account; Quick start shows Claude Code on DeepSeek and Codex on Kimi.
-
You need automatic switching across subscription accounts or routing groups when quota runs out.The README says a provider’s next account and a routing group can move to another model or provider; the command examples include magpie claude group/opus-anywhere.
-
You want to connect an unlisted OpenAI, Anthropic, or Gemini client through 127.0.0.1:3425.The README section “Supported agents” says anything accepting a base URL can use the gateway and provides OPENAI_BASE_URL, ANTHROPIC_BASE_URL, and GOOGLE_GEMINI_BASE_URL.
Skip it if you
-
You use only one agent and its vendor’s own plan is already sufficient.The README section “Is magpie for you?” explicitly says: “If you use one agent on its vendor's own plan and that's enough, you don't need it.”
-
Your environment cannot run a local gateway or cannot accept reading Claude Code, Codex sign-in files, and the Keychain.The README says magpie provides a gateway at 127.0.0.1:3425 and reads Claude Code and Codex files plus the Keychain to discover subscriptions.
Requirements
- Supports macOS, Windows, Linux, Docker, and Termux.
- Linux desktop may require WebKitGTK 4.1; the install script can install the terminal build without a desktop.
- Subscription discovery can read Claude Code and Codex sign-in files and the Keychain by default; disable it through Settings → Privacy → Subscription accounts or magpie accounts discovery off.
- Download from usemagpie.ai or use the installation command shown in the README.
First step (verbatim from README)
curl -fsSL https://usemagpie.ai/install.sh | sh
Watch out
-
Before enabling masking in Settings → Privacy, keys, passwords, and emails in prompts are not masked before leaving the computer.The README explicitly says masking is off by default and that masking occurs before the request leaves the computer.
-
Subscription account discovery reads Claude Code and Codex files and the Keychain; MAGPIE_NO_ACCOUNTS=1 disables it for one run only.README Quick start, in the subscription discovery note.
-
The uninstall command restores agents, but ~/.config/magpie settings remain unless --purge is added.README Quick start, in the uninstall instructions.
Alternatives
-
The vendor-native plan for Claude Code, Codex, or another agent:It is better when you use only one agent and its vendor’s own plan is sufficient, because the README says you do not need magpie.README section “Is magpie for you?”
Not stated in the README
- The omitted Privacy masking, Providers, Subscriptions, and Routing groups sections do not provide their full configuration details.
- The material does not specify supported macOS, Windows, or Linux versions.
- The material does not state local gateway resource usage, performance overhead, or concurrency limits.
- The material does not state the actual prices, rate limits, or regional availability of providers, models, and subscription plans.
- The material does not explain the coverage boundaries of Privacy masking across all request types, tool calls, and streaming responses.
- The material does not explain the specific maintenance roles behind 40,479 stars, 5,006 issues, and 10 contributors.
💡 Deep Analysis
6
Yes
I already have Claude Code and Codex installed and do not want to edit their configuration files manually. Can magpie atomically change their model settings and save complete configurations such as Budget and Focus?
Yes, because the README explicitly supports rewriting existing agent configurations and switching cross-agent profiles.
- “What it does / Any model, any agent” says models are shown as
provider/model, while agent configuration is rewritten atomically with comments, ordering, and formatting preserved. - The same section says Profiles save each agent’s setup and switch all of them together; “Budget” and “Focus” are given as examples.
- Quick start provides
magpie save work && magpie use workfor saving and switching a profile from the terminal.
The limitation is that the README only describes restoration of the agents’ previous state; it does not promise conflict-free behavior after an agent upgrade, re-login, or use of custom configuration fields.
- README “What it does / Any model, any agent”: “The agent's config is rewritten atomically, and its comments, order and formatting stay as they were.”
- README “What it does / Any model, any agent”: “Profiles save every agent's setup under one name (“Budget”, “Focus”) and switch them all back in one move.”
- README “Quick start”: `magpie save work && magpie use work`
- README “Quick start”: uninstall “puts your agents back as they were”
magpie save work && magpie use work
Yes
I use Claude Code, Codex, and Gemini CLI with several subscription accounts. Can I unify their model selection across providers and fail over automatically when one account reaches its quota?
Yes, because magpie is designed for multiple agents, accounts, and quota failover.
- The Quick start section explicitly shows “Claude Code on Kimi,” “Codex on DeepSeek,” and “Gemini CLI on GLM,” and says that it moves to the next account when a quota runs out.
- The routing-group example places multiple models in one group and uses
routing=smartfor failover between subscriptions. - The subscriptions documentation says magpie can discover sign-ins from Claude Code and Codex files and the Keychain.
However, the README does not guarantee that every provider permits this form of subscription reuse. It also does not specify failure-detection rules, retry counts, or failover latency for each account type.
- README “Quick start”: “Claude Code on Kimi. Codex on DeepSeek. Gemini CLI on GLM.”
- README “Quick start”: “when a quota runs out, it quietly moves on to your next account”
- README “Quick start”: `magpie group add "Opus anywhere" models=claude/claude-opus-5-5,copilot/claude-opus-5.5 routing=smart`
- README “Quick start”: “magpie finds the subscriptions your agents are signed in to”
magpie group add "Opus anywhere" models=claude/claude-opus-5-5,copilot/claude-opus-5.5 routing=smart
Yes
My client is not in magpie’s Supported agents list, but it supports a Base URL. Can I connect it through `127.0.0.1:3425` and still use OpenAI, Anthropic, or Gemini protocols?
Yes, provided that the client supports a configurable Base URL and the relevant authentication variables.
- “Supported agents” says any client that accepts a Base URL can use the gateway even if it is not in the built-in list.
- The README provides environment variables for
OPENAI_BASE_URL=http://127.0.0.1:3425/v1,ANTHROPIC_BASE_URL=http://127.0.0.1:3425, andGOOGLE_GEMINI_BASE_URL=http://127.0.0.1:3425; each corresponding API key may be set tomagpie. - “How it fits together” says the gateway supports OpenAI Chat, OpenAI Responses, Anthropic Messages, and Gemini, translating streaming, tool calls, and reasoning.
However, protocol translation does not guarantee full compatibility for vision, caching, context behavior, or provider-specific tool parameters. The README also does not provide a compatibility matrix for every unlisted client.
- README “Supported agents”: “Anything else that takes a base URL can use the gateway too”
- The three Base URL environment-variable examples in README “Supported agents”
- README “How it fits together”: “The gateway at `127.0.0.1:3425` speaks OpenAI Chat, OpenAI Responses, Anthropic Messages and Gemini”
- README “How it fits together”: “streaming, tool calls and reasoning included”
export OPENAI_BASE_URL=http://127.0.0.1:3425/v1 OPENAI_API_KEY=magpie
Yes
I need to view tokens, cache reads and writes, context usage, and account bills for Claude Code and Codex, then send the data to my own OTLP observability stack. Can magpie provide these views?
Yes, because the README presents cross-agent usage, cost, context, and billing as first-class features rather than only providing model forwarding.
- “Usage and cost / Tokens and cost” records tokens, cache reads and writes, reasoning, and calls, and allows custom prices for models.
- “Quota” shows balances and quota windows for each key, plan, and account; “Bills” supports billing views by account and upstream key.
- “Context” shows how full each request’s context window is and what came from cache, while “Bills” explicitly supports exporting to the user’s own OTLP observability stack.
The limitation is that these values depend on upstream billing data and accurate custom pricing. The README does not specify the OTLP exporter, metric schema, sampling behavior, or exact reconciliation guarantees against provider invoices.
- README “Usage and cost”: “Tokens, cache reads and writes, reasoning and calls”
- README “Usage and cost”: “Balances and quota windows for every key, plan and account”
- README “Usage and cost”: “How full each request's context window is”
- README “Usage and cost”: “OTLP export to your own observability stack”
magpie quota
Yes
I run Docker on a headless Linux host or NAS and want to centrally manage multiple providers and routing groups. Does magpie support this deployment instead of requiring the macOS menu-bar app?
Yes, because the README supports both headless terminal operation and Docker-based Web UI deployment.
- Quick start says that on Linux without a desktop, the installer selects the terminal build, and
--tuican explicitly choose the terminal interface; magpie is not limited to a menu-bar app. - “Sharing / Docker” provides
ghcr.io/yetone/magpieand says it can run on a server or NAS and be managed from the Web UI. - “Sharing / Remote magpie” lets a laptop use the desktop host’s providers, accounts, and groups while wiring its own agents locally.
The README does not specify NAS CPU architectures, persistent-volume layout, reverse-proxy configuration, TLS setup, or Web UI authentication. Whether it meets your security requirements therefore depends on the deployment environment.
- README “Quick start”: “with no desktop ... it installs the terminal build”
- README “Quick start”: “`--gui` or `--tui` chooses”
- README “Sharing / Docker”: “Run `ghcr.io/yetone/magpie` on a server or a NAS and manage it from the web UI”
- README “Sharing / Remote magpie”: “A laptop uses the providers, accounts and groups of the magpie on your desktop”
It depends
I use Claude Code and Codex in a Linux terminal, and prompts may contain passwords or email addresses. Can I disable subscription discovery while enabling local privacy masking?
It depends, because the README clearly provides an account-discovery switch, but privacy masking is not a default security boundary and its detailed behavior is outside the supplied sections.
- Quick start says magpie reads Claude Code and Codex sign-in files and the Keychain; discovery can be disabled with
magpie accounts discovery off, or only for one run withMAGPIE_NO_ACCOUNTS=1. - The project insights state that privacy masking must be enabled explicitly and can mask keys, passwords, and email addresses before a local request is sent, then restore them in the response.
- API-key providers continue to work when account discovery is disabled, so subscription discovery is not required for API-key providers.
However, the provided README excerpt does not specify the masking rule coverage, false-positive behavior, or the exact Linux settings command. It should not be treated as a complete data-loss-prevention system.
- README “Quick start”: “magpie finds the subscriptions your agents are signed in to by reading their sign-ins”
- README “Quick start”: `magpie accounts discovery off`
- README “Quick start”: `MAGPIE_NO_ACCOUNTS=1`
- Project insights “Privacy masking”: “mask keys, passwords, and email addresses in prompts before local requests are sent, then restore them in responses”
magpie accounts discovery off
✨ Highlights
-
Switch any model for Claude Code and Codex from one list
-
127.0.0.1:3425 translates three model protocols
-
Supports account failover and routing group quota switching
-
Secret masking in Settings → Privacy is off by default
🔧 Engineering
-
Save multiple agent configurations with Profiles and switch them using magpie use
-
magpie quota shows quota windows for every key, plan, and account
-
The gateway supports OpenAI Chat, Responses, Anthropic Messages, and Gemini
-
Supports local-network sharing, Remote magpie, Docker, and WebDAV sync
⚠️ Risks
-
Privacy masking is off by default, so prompt keys are not masked until enabled
-
Subscription discovery reads Claude Code and Codex files plus the Keychain
-
With one account and no routing group, quota errors reach the agent
-
Linux desktop installs may require WebKitGTK 4.1 and a sudo password
👥 For who?
-
Developers using Claude Code, Codex, and Gemini CLI together
-
Teams switching among models such as DeepSeek, Kimi, and GLM
-
Users managing multiple accounts on macOS, Windows, Linux, or Termux