AI products and toolsReviewed · yetone

magpie

magpie is an MIT-licensed desktop app, terminal UI, CLI and local gateway for people who run several AI coding agents and want to choose each agent's model, provider or subscription from one place. The main catch is that it sits between your agents and your API keys and subscription sign-ins, so you need to configure it carefully and decide whether you trust it. It runs a gateway at [http://127.0.0.1:3425] that speaks the OpenAI Chat, OpenAI Responses, Anthropic Messages and Gemini formats. It rewrites each agent's own config to point at a chosen model, can fail over between accounts and routing groups when a quota runs out, and has an optional privacy-masking layer that is off by default.

Researched 13 Nov 2026

In short.

magpie is an MIT-licensed desktop app, terminal UI, CLI and local gateway for people who use more than one AI coding agent, provider or account and want to pick each agent's model from one list. The main catch is that it handles your API keys and subscription sign-ins. Masking is off by default. Failover requires another usable account or an alternative model/provider in a routing group. Technically, it runs a gateway at [http://127.0.0.1:3425] that accepts OpenAI Chat, OpenAI Responses, Anthropic Messages and Gemini requests and translates between them. It edits each agent's own config file to point at the chosen model and can route requests across keys, accounts and groups of models. This report rests on the project's own README plus its licence notices. Nothing was installed or run, and no performance, reliability or security claims were verified.

Researched and written by an AI model and checked by a second AI model. How it works

The selected scope is the single file README.md at [https://github.com/yetone/magpie/blob/main/README.md], at revision 5a2d0ff478f7688a0089cebb8b589611f760a09a, captured in full. The repository's LICENSE (MIT) and THIRD_PARTY_NOTICES files sit beside it. They were read for rights information. THIRD_PARTY_NOTICES was also used for the technical details it gives about components compiled into magpie binaries: the moejs JavaScript engine that runs gateway plugins, and the Unicode, ICU and CLDR versions. Excluded: the reference document and other repository files, the online documentation, the install script, the source code, the separately hosted release binaries, the plugin repository, and all screenshots and images. Nothing was installed, run or tested, so every statement about behaviour, compatibility, privacy and failover is the project's own claim, not a verified result.

The overview

What magpie is

magpie is a tool by the GitHub user yetone (the licence says copyright 2026 yetone). It comes as a menu-bar app, window app, terminal UI (TUI), web UI and command-line tool. There is also a Docker image (image reference ghcr.io/yetone/magpie) and a Termux build. Downloads are offered from [https://usemagpie.ai], release files are linked from a separate repository ([https://github.com/yetone/magpie-releases/releases/latest]), and a go install path is given. The README tagline is 'Every agent's model. One place.'

In plain terms: AI coding agents such as Claude Code, Codex, Gemini CLI and OpenCode each keep their model choice in their own file, with their own keys and base URLs. A subscription you pay for normally works in only one of them. magpie puts a local gateway in front of all of them, so you can, for example, run Claude Code on a Kimi model or Codex on a DeepSeek model and switch from one menu.

The README states that magpie is not affiliated with Apache Magpie or the Apache Software Foundation, so it should not be confused with that project.

Overall assessment

On the evidence read, magpie is a project with a detailed README describing intended functionality; implementation completeness is unknown. The README describes concrete behaviour (ports, protocols, routing modes, commands, settings locations) and is open about its own trade-offs: masking is off by default, failover does nothing with a single account and no group, and the model cannot reason about masked values.

Overall it looks useful for the audience it names, but it carries real security and trust questions. It reads other tools' sign-in files, holds provider keys, runs a local network service, offers a curl-to-shell installer and updates itself. The README discloses all of this, but none of it was checked independently here. Treat the feature list as the author's claims, not verified behaviour.

Who it is for

The README says it is for people who use more than one agent, more than one provider, or more than one account. It also says plainly that if you use a single agent on its vendor's own plan and that is enough, you do not need it.

Beginners get a graphical flow: Providers, Add provider, pick a preset, paste a key, then choose a model for each agent on the Agents page. Experienced developers get a CLI with profiles, routing groups and a quota command. They also get an OpenAI/Anthropic/Gemini-compatible gateway for any tool that accepts a base URL, JavaScript gateway middleware, and OpenCode or pi plugins. Households, small teams and server or NAS users are served by local-network sharing with per-client keys and limits, a remote-magpie mode and a Docker image. The optional masking feature is aimed at people who worry about secrets leaving their machine in prompts.

What it can do

Model switching: a searchable list shows every model from every provider you added, as provider/model. Choosing one edits the single relevant key in that agent's config. The README says the edit is atomic and keeps the file's comments, order and formatting. Profiles save every agent's setup under one name and switch them together. The README lists roughly ninety supported agents, from Claude Code, Codex, Gemini CLI and OpenCode to Cursor CLI, Zed, VS Code Chat, Goose, Cline and Droid. magpie shows only the ones installed on the machine.

Providers and subscriptions: there are presets for many vendors and gateways, including Anthropic, OpenAI, Google Gemini and Vertex AI, Amazon Bedrock, DeepSeek, Kimi, GLM, Qwen, Mistral, Groq, xAI, OpenRouter, Ollama and LM Studio, plus any OpenAI- or Anthropic-compatible URL. Model lists come from the vendor, with names and reasoning levels filled in from [https://models.dev]. Subscriptions you are signed in to (Claude, ChatGPT/Codex, GitHub Copilot, Gemini Code Assist, Antigravity, Grok) can be offered to other agents, with several accounts per subscription. Providers can be imported from CC Switch, Claude Code, Codex and Alma.

Routing and failover: a routing group treats several models as one, with five modes (smart, order, rotate, usage, pace). A conversation stays with the account that answered it while the vendor's prompt cache is worth keeping. Groups can be nested. Intent routing uses a small model you choose to read each turn and send it to a stronger or cheaper model. A daily warm-up starts the 5-hour windows of Claude and ChatGPT accounts at times you set.

Privacy masking: keys, passwords, emails and similar values in prompts are replaced with placeholders on your computer before a request leaves it. They are restored in the reply, including in streamed text and tool-call arguments. Detection combines rules (for example, card and ID numbers whose checksum is valid) with an optional local model (a 1.6 GB CPU download) for names, addresses and passwords. Each kind of value can be set to Mask, Warn or Block.

Other features: usage, cost and quota views (including OTLP export), session history, local-network sharing with per-client limits, remote magpie, and backup and sync (file, WebDAV, S3, encrypted GitHub repository). There is also a Library that writes instructions, MCP servers, skills and subagents into each agent's files, web search for models that lack it, an image tool for any agent over MCP, video generation with a Grok subscription or a MiniMax API key, and management of agent versions.

Using it

Requirements

Stated platforms: macOS, Windows, Linux (app, TUI, web UI and CLI), Docker and Termux. On a Linux desktop the app needs WebKitGTK 4.1, and the installer will add it with your package manager, asking for your sudo password. With no desktop, it installs the terminal build. The go install route implies a Go toolchain, which the README does not otherwise discuss.

To route model requests you need at least one provider: an API key, a local model server, or a signed-in subscription. You only need an agent installed if you want magpie to configure it, since magpie shows only the agents installed on your machine. The README also shows any tool that takes a base URL using the gateway directly, and the CLI calling magpie's image, vision and search tools directly (magpie tool). Plugins run on Bun, which is downloaded the first time a plugin needs it. Optional model-assisted detection requires a 1.6 GB download and runs on the CPU; rule-based masking does not require that model.

The README does not state minimum operating-system versions, RAM, disk space beyond the 1.6 GB figure, supported CPU architectures or network requirements. These are unknown.

How it works

Gateway: magpie runs a local server at [http://127.0.0.1:3425] that speaks OpenAI Chat, OpenAI Responses, Anthropic Messages and Gemini. It translates between them, including streaming, tool calls and reasoning, so an agent that speaks one format can use a model served in another. Any tool that accepts a base URL can use the gateway: set variables such as OPENAI_BASE_URL, ANTHROPIC_BASE_URL or GOOGLE_GEMINI_BASE_URL to the gateway and use a placeholder key.

Agent wiring: for supported agents, magpie rewrites the one model-related key in the agent's own config file. The next new session picks up the new model.

Subscriptions: the README says magpie finds the subscriptions your agents are signed in to by reading their sign-in files (Claude Code's and Codex's) and the Keychain. For Claude, it drives the real local claude binary and bridges the agent's tools over MCP. You can turn discovery off in Settings, Privacy, Subscription accounts, with the command magpie accounts discovery off, or for a single run with MAGPIE_NO_ACCOUNTS=1.

Routing: the gateway spreads requests across each member's keys and accounts according to the group's mode. When one of a provider's accounts runs out of quota, the next account takes over, or the group moves to another model or provider, so the agent does not see the error. The README says that with one account and no group, the error reaches the agent.

Masking: placeholders such as {{API_KEY_k3v9x2mq}} are assigned consistently, so the conversation, the prompt cache and thinking signatures stay valid. Values are held in memory only, and the record keeps each value's kind, length and first characters. If masking is on but cannot run, the request is held back with a 503 error rather than sent unmasked.

Plugins and middleware: plugins from npm (OpenCode auth plugins or pi packages) handle sign-in, model listing and requests. Gateway middleware is JavaScript with onRequest, onEvent and onResponse hooks that can rewrite or reject traffic. A hook that throws an error or runs too long leaves the request unchanged. The third-party notices say magpie embeds a JavaScript engine called moejs to run gateway plugins. File names in those notices and the go install command suggest the program is written in Go, but the source itself was not read.

Setup

Step 1, install: download the app from [https://usemagpie.ai], or run the documented one-liner: curl -fsSL https://usemagpie.ai/install.sh | sh (the script is at [https://usemagpie.ai/install.sh]). Other routes are go install github.com/yetone/magpie@latest and the Docker image, documented at [https://usemagpie.ai/docs/docker]. The installer accepts --gui or --tui, and --proxy or --mirror behind a firewall. The README says Mac builds are signed and notarised, every release file carries a GitHub Actions build attestation that you can check with gh attestation verify <file> -R yetone/magpie-releases, and every build updates itself.

Step 2, add a provider: go to Providers, Add provider, choose a preset and paste a key, or sign in with a subscription. From the CLI, a preset needs only the key.

Step 3: pick a model for each agent on the Agents page, then start a new session.

Removal: the uninstall command (the same installer, run with -s -- --uninstall) puts your agents back as they were, then removes what the script installed. Your settings in ~/.config/magpie stay unless you add --purge.

The README links further documentation: getting started [https://usemagpie.ai/docs/start], plugins [https://usemagpie.ai/docs/plugins], intent routing [https://usemagpie.ai/docs/intent], import links [https://usemagpie.ai/docs/import], remote magpie [https://usemagpie.ai/docs/remote], Docker [https://usemagpie.ai/docs/docker] and privacy [https://usemagpie.ai/docs/privacy]. There is also a reference file (docs/reference.md) in the repository. These pages were not part of the material read.

Worked example from the README

The README gives the terminal sequence below. It is quoted as documentation and was not run for this report.

magpie provider add deepseek sk-… adds a DeepSeek provider from a preset, using only the key. magpie claude deepseek/deepseek-v4-pro points Claude Code at that model. magpie codex moonshot/kimi-k2.5 points Codex at a Kimi model. magpie group add "Opus anywhere" models=claude/claude-opus-5-5,copilot/claude-opus-5.5 routing=smart creates a routing group, and magpie claude group/opus-anywhere makes Claude Code use it, failing over between subscriptions. magpie save work followed by magpie use work saves a profile and later switches back to it. magpie quota shows what is left on every plan. magpie tui opens the full interface in a terminal.

For a tool that is not on the supported list, set the base URL and a placeholder key, for example OPENAI_BASE_URL=http://127.0.0.1:3425/v1 with OPENAI_API_KEY=magpie. That is the gateway's OpenAI-compatible address, [http://127.0.0.1:3425/v1]. The evidence does not show whether a given unlisted tool then works.

Assessment & evidence

Limitations and catches

Privacy masking stays off until you enable it in Settings, Privacy. When it is on, the model sees placeholders, so tasks about the secret itself (such as why a token is refused) cannot be done unless you add that value to Never mask. The README admits that rules can be wrong now and then, and emails at domain names it says are kept for examples are left as written. The optional local detection model is a 1.6 GB download.

Failover only helps if there is somewhere to fail over to. With one account and no routing group, the quota error reaches the agent.

Credential exposure: by default magpie reads other tools' sign-in files and the Keychain (this can be turned off). It also holds provider keys and can be shared on the local network with per-client keys. The installer is a pipe-to-shell command, and builds update themselves. None of this was security-reviewed here.

Telemetry: once a day, a released build sends a random id, its version and system, and which agents, providers and models it is used with, by magpie's own ids. It also reports which listed plugins are installed and counts of how often each partner listed first in the add sheet was shown, opened and added. The README says no names, URLs, accounts, keys, prompts or usage are sent, and that you can turn part or all of this off in Settings, Privacy or with DO_NOT_TRACK=1. Partner website and key links go through addresses under [https://usemagpie.ai/go/], which count each click whatever the settings; the README says the server keeps no id or address. The README also thanks Kimi for supporting magpie. The README lists sponsors and describes first-listed partner placements; whether each placement is paid is unknown.

Project process: the repository does not accept pull requests. The list of agents and presets is large, and how well each integration works is untested here. The README gives no per-agent compatibility caveats beyond a pointer to notes in the reference file.

Nothing was executed. The material contains no benchmarks, test results, or latency or reliability figures.

Why this reading

The README is long and concrete, and several of its statements are unflattering to the product. Masking is off by default. Failover requires another usable account or an alternative model/provider in a routing group. And the model cannot reason about a masked value. That candour makes the README more credible as a description of intended behaviour. It is still the author's description of their own product. Claimed behaviour such as atomic config edits, translating streamed tool calls between protocols, and driving Claude through the local claude binary can only be confirmed by running magpie or reading its source.

The licence files match the README's MIT badge. They give a clear MIT grant for the repository and detailed notices for the components compiled into binaries. That supports a fairly confident reading of the repository's open-source rights, with the caveats listed under rights.

Alternatives and baselines

The simplest baseline is not using it: edit each agent's own config, or stay with one agent on its vendor's plan, which the README itself says is enough for many people. The README names CC Switch, whose providers magpie can import, and New API, whose channel features the ready-made middleware packages copy, using the same JSON. Hosted routers such as OpenRouter and Vercel AI Gateway appear in the README as providers magpie can connect to, not as competitors.

Other self-hosted proxies or per-agent switchers may meet similar needs, but the material read does not compare magpie with any of them, so no ranking is given.

What the evidence covers

Three captured files at one source revision (5a2d0ff478f7688a0089cebb8b589611f760a09a): the 24,595-byte README.md, the 1,063-byte MIT LICENSE, and the 21,578-byte THIRD_PARTY_NOTICES. Every claim in this report about features, setup and privacy comes from the README. Claims about rights come from the two notice files.

Not read: the linked reference document, the online documentation pages, the privacy page, the Go source, the install script, the release binaries and their attestations, the plugin repository, issues, discussions and user reports. The evidence contains no independent testing, benchmarking or security review.

Access & freshness

Costs

The README states no price, paid tier or licence fee for magpie itself, and the MIT licence grants use free of charge. Whether any paid or hosted offering exists is unknown from the material read.

Running it still costs whatever your providers charge: API usage on keys you add, plus the subscriptions you already pay for, which magpie reuses rather than replaces. magpie's Usage page reports tokens and cost at list price, in dollars or yuan, and lets you set your own price for each model. Those figures are estimates by design and were not verified here.

The README also names smaller resource costs: the optional 1.6 GB download for the local masking model, and a Bun runtime downloaded the first time a plugin needs it. Search and media tools use third-party services (for example Tavily, Brave or Exa, or a Grok subscription or MiniMax key for video). These have their own terms and costs, which the README does not quantify.

Rights and licences

The repository LICENSE is the MIT License, copyright 2026 yetone. It permits use, copying, modification, merging, publishing, distribution, sublicensing and selling, as long as the copyright and permission notice is kept in all copies or substantial portions. The software is provided as is, without warranty.

The THIRD_PARTY_NOTICES file states that magpie is built with moejs (Apache License 2.0) and that moejs compiles the following into every magpie binary: Unicode CLDR 48.0, the Unicode Character Database and IDNA data 17.0.0, and ported ICU 78.3 code (Unicode License v3, with an older ICU licence for some parts), plus ported V8 code (BSD-3-Clause). It also lists a word list taken from jieba (MIT), used so that masking does not mistake common Chinese words for names. Anyone redistributing builds should keep those notices.

The files read do not establish several things. They do not give the licence terms of the separately hosted release binaries (linked from [https://github.com/yetone/magpie-releases/releases/latest]) or the status of the logos, screenshots and sponsor artwork the README references. They say nothing about trademarks for the many third-party product names. They also do not say whether those vendors' terms allow reusing a consumer subscription (Claude, ChatGPT, Copilot, Gemini, Grok) through other agents. Check the vendors' terms yourself before relying on subscription reuse. The README also says the repository does not accept pull requests; changes are requested through Discord.

Freshness

The captured README is from revision 5a2d0ff478f7688a0089cebb8b589611f760a09a, fetched on 13 November 2026. The released version number is not in the captured text because the release badge is generated dynamically. These files do not establish release dates or commit activity.

THIRD_PARTY_NOTICES, not the README, gives the versions of the components compiled into every magpie binary through moejs: Unicode 17.0.0, ICU 78.3 and CLDR 48.0. The README shows model names in its examples, but says model lists come from the vendor, with names and reasoning levels filled in from [https://models.dev]. The available model list may therefore differ from what the README shows. The agent list and presets are likely to change with releases; check the live documentation at [https://usemagpie.ai/docs/start] for the current set.

What to do next

If you run several agents, providers or accounts, magpie is worth a trial. Start on a non-critical machine with an API-key provider rather than a subscription sign-in. Consider downloading the installer script or app rather than piping it straight into a shell, and verify release files with the gh attestation command the README gives.

Decide early on subscription discovery. Leave it on only if you want magpie to read your Claude Code and Codex sign-ins; otherwise run magpie accounts discovery off. Check the subscription vendors' terms before reusing a plan across agents.

Review Settings, Privacy before real use. Choose whether to enable masking and which kinds of value to Mask, Warn or Block, and set telemetry as you prefer, or use DO_NOT_TRACK=1. Do not turn on local-network sharing until you have created per-client keys with limits. If you rely on failover, add a second account or create a routing group so there is something to fail over to.

Read the linked reference file and privacy page for details this report could not cover.

Evidence for this report

LICENSEnotice · checked 2026-11-13
README.mdselected · checked 2026-11-13
THIRD_PARTY_NOTICESnotice · checked 2026-11-13