magpie
App : A product you use directly
A local gateway that puts all your AI subscriptions and keys in one pool, so you can pick each agent's model from a menu.
Useful if you juggle several agents, providers or accounts: one place to route, and automatic failover when a quota is reached. The project highlights using one vendor's subscription in another vendor's agent: check each provider's terms before doing so, especially at work.
Security reflects where data goes, requested permissions and incidents on record at the verification date. It is not a guarantee of zero risk: check the deployment mode and the connections you enable.
What it does, concretely
Every AI agent (Claude Code, Codex, Gemini CLI, and so on) keeps its model in its own file, with its own format, keys and base URLs. A subscription you pay for one agent therefore only works in that agent. magpie solves this by putting everything behind one app and one local gateway.
In practice, you add your providers once: a subscription you are already signed in to (Claude, ChatGPT, Copilot, Gemini, Grok), a coding plan sold as a key (GLM, Kimi Code, Volcengine, Bailian, StepFun), pay-as-you-go keys or local models. Then, for each agent, you pick a model from a single list. magpie edits only the relevant key in the agent's config, leaving comments and formatting untouched. The gateway, reachable at 127.0.0.1:3425, speaks OpenAI Chat, OpenAI Responses, Anthropic Messages and Gemini, and translates between them.
You can also group several models or accounts under one name (a routing group). When an account reaches its quota, the next one takes over before the agent sees an error. Profiles save every agent's setup under one name ("Budget", "Focus") so you can switch them all at once.
magpie is for people who use more than one agent, more than one provider or more than one account. If you use a single agent on its vendor's own plan and that is enough, you do not need it. The app runs on macOS, Windows and Linux (menu bar, window, terminal UI, web UI and command line), as well as in Docker and on Termux.
What it offers
- ·Pool all your subscriptions and keys (Claude, ChatGPT, Copilot, Gemini, Grok, coding plans, pay-as-you-go keys, local models) so every agent can use them.
- ·Pick each agent's model from a single provider/model list, with atomic rewriting of the agent's config.
- ·Fail over automatically to the next account or model when a quota runs out, using multiple accounts and routing groups (smart, order, rotate, usage and pace modes).
- ·Save profiles that store every agent's setup under one name and restore them all at once.
- ·Translate requests between OpenAI Chat, OpenAI Responses, Anthropic Messages and Gemini formats, including streaming, tool calls and reasoning.
- ·Optionally mask keys, passwords, emails and other sensitive data in a prompt on your computer before it is sent, then restore them in the reply.
- ·Route by intent: a small model of your choice reads each new turn to send tests to the strong model and quick questions to the cheap one.
- ·Extend the gateway with plugins (extra sign-ins and models, or JavaScript middleware that can rewrite or turn away a request).
In practice
- Price
- Free
- Commercial use
- Commercial use: yes
- Available on
- desktop, cli, docker
- Licence
- MIT
- FR interface
- No
Security and data
- Rating
- Security: one caveat, see the card
- Your data
- Local or cloud depending on use
- Maintenance
- Active
- Last release
- 29 November 2026
Links and repository checked on 29 November 2026 · added on 28 November 2026
How to install magpie
curl -fsSL https://usemagpie.ai/install.sh | sh