magpie

One local gateway to switch models for every coding agentOpen source

About magpie

magpie is a local model gateway and menu bar app for switching models across coding agents: run Claude Code on Kimi and Codex on DeepSeek, or let another agent use your ChatGPT subscription. When one quota runs out, it moves to the next account or model. It is MIT licensed and runs on macOS, Windows and Linux.

What problem it solves

Every coding agent keeps its model settings in its own file, each in a different format, with keys and endpoints managed separately, and a subscription you pay for only works in the agent it belongs to. If you use several agents, switching models means editing several places.

magpie gathers all of this behind one app and a local gateway. The gateway speaks the OpenAI, Anthropic and Gemini API protocols and translates between them, with streaming and tool calls working as usual. When you switch models it changes only the setting that matters in each agent's config, leaving comments and formatting intact. The README is upfront that if you use one agent on its vendor's own plan and that is enough, you do not need magpie.

Every agent's model. One place.

magpie README

Core capabilities

  • Any agent on any model: pick a model for each agent from one searchable list, such as Kimi for Claude Code and DeepSeek for Codex, and save the whole set as a profile you switch in one click. The README lists 86 supported agents, and any tool that takes a base URL can connect too.
  • Subscriptions in other agents: signed-in Claude, ChatGPT, GitHub Copilot, Gemini and similar subscriptions can serve as model sources, one subscription can hold several accounts, and when one runs out of quota the next takes over.
  • Routing groups: put several models in a group and spread requests by quota, order or rotation, or let a small model judge each task so heavy work goes to a strong model and simple questions to a cheap one.
  • Privacy masking: when on, keys, tokens, emails, card numbers and the like in a prompt are swapped for placeholders before leaving your machine and restored in the reply. Off by default.
  • Usage and cost: costs by tokens and calls, and how much quota each key and plan has left.

Who uses it

As of 2026-11-12 the GitHub repository, created on 2026-09-23, has about 35,300 stars and 3,100 forks. It ships a release for nearly every change, dozens in a single day; the latest is v0.1.3906 from 2026-11-12, and installed apps update themselves.

The repository does not accept outside code contributions; only maintainers can submit changes, and requests and bug reports go to Discord. Its sponsors are all model API providers.

How it compares

The official docs have a page comparing it with CC Switch and Claude Code Router. By that page, CC Switch is a desktop app that switches providers mainly by rewriting each tool's config, a fit for people who switch by hand and want their config left as written; Claude Code Router is a local gateway you program with rules, a fit for people who want custom routing per request and a cost log for every call; magpie's strength is putting several agents on different models at once and lending subscription accounts to other agents. All three are MIT licensed and can be installed side by side.

This is magpie's own comparison; we have not seen third-party reviews of features or performance.

Who it's for / Not for

It suits developers who use several coding agents, several model providers or several accounts at once, which is the audience the project names itself, as well as people who want models such as Kimi, DeepSeek and GLM inside Claude Code or Codex, and people worried that agents send keys from their config to model vendors who are willing to turn on privacy masking.

It is not for people who use one agent and find its vendor's own plan enough, or who do not want third-party software reading their Claude Code and Codex sign-ins, which it does by default until you turn it off.

Getting started

  1. Install the app from the website or with the official one-line script. It runs on macOS, Windows and Linux, on a server or NAS with Docker, and in Termux. Mac builds are signed and notarized.
  2. Add a provider: choose a preset, paste a key, or sign in with a subscription account.
  3. On the agents page, pick a model for each agent; it takes effect in a new session.

Uninstalling first puts every agent's config back the way it was.

Pricing & license

magpie itself is free and released under the MIT license. Model costs are billed by the providers or subscriptions you connect; magpie only forwards and counts requests on your machine.

Risks & limits

To find your subscriptions, magpie reads Claude Code's and Codex's sign-in files and the system keychain by default; you can turn this off in settings. Whether lending one vendor's subscription to other agents, or rotating automatically between accounts, is allowed by each provider's terms is not addressed by the project, so check before you rely on it.

Released builds report usage once a day: a random id, version and system, and which agents, providers and models are used, without prompts, keys or accounts; how often sponsors are shown and opened in the add panel is counted too. All of this can be turned off in settings.

With privacy masking on, the model never sees the real values, so tasks about a value itself cannot be done, and the rules occasionally misfire. With many releases a day, behaviour can change at any time.

Our verdict

magpie solves a real and fiddly problem of using several coding agents at once: scattered model settings, subscriptions that cannot be shared and work that stops when quota runs out. One local gateway and a menu bar app sort this out, and its privacy masking and usage reporting are clearly documented and can be switched off. The cost is that it reads your sign-in credentials, and lending subscriptions to other agents may run up against provider terms.

Developers with two or more agents or providers should install it now, starting with API-key providers; if you use one agent on its vendor's own plan, there is no need to change how you work for it.

Sources

Official

  1. magpie READMEGitHub · Accessed Nov 12, 2026
  2. magpie websiteusemagpie.ai · Accessed Nov 12, 2026
  3. yetone/magpie on GitHubGitHub · Accessed Nov 12, 2026
  4. magpie releasesGitHub · Accessed Nov 12, 2026
  5. magpie docs: Privacyusemagpie.ai · Accessed Nov 12, 2026
  6. magpie docs: magpie, CC Switch and Claude Code Router comparedusemagpie.ai · Accessed Nov 12, 2026
  7. magpie docs: Get startedusemagpie.ai · Accessed Nov 12, 2026
  8. magpie docs: Subscriptions in any agentusemagpie.ai · Accessed Nov 12, 2026

Updates

No articles or updates yet. Claim it and connect a feed.