Model or dataset
yetone/magpie avatar
yetone/magpie

magpie puts one local gateway at 127.0.0.1:3425 between your coding agents and their models

Every agent's model. One place. Codex on DeepSeek, Claude Code on Kimi, from the menu bar.

33,847 stars3,004 forksGoMIT

At a glance

What is it?
magpie is a Go app that rewrites each coding agent's model setting and routes requests through one local gateway that OpenAI, Anthropic and Gemini clients can point their base URL at. With one account and no group, a quota error still reaches the agent.
Who is it for?
Use magpie if you run more than one coding agent, provider or account and are tired of editing each agent's config by hand. Skip it if you use a single agent on its vendor's own plan, which is the case the README says does not need it, and turn on masking in Settings, Privacy before sending anything sensitive, since it is off by default.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository received new commits within the last day.
What is it written in?
Mainly Go, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 10, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • yetone/magpie33,847 ★ · +27,128
Star history
Repository2026-10-082026-11-10
yetone/magpie6.7k33.8k

27,128 Stars in the last 33 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

Each agent keeps its model in its own file, and magpie edits the one key that matters

The problem magpie describes is that every agent keeps its model in its own file, in its own format, with its own keys and base URLs, so a subscription that works in one agent works nowhere else. magpie puts that behind one app and one local gateway. Its examples are Claude Code on Kimi, Codex on DeepSeek, Gemini CLI on GLM and OpenCode on your ChatGPT plan.

You pick any model for any agent from one list, and magpie edits the one key that matters in the agent's own config. Profiles are saved and switched with `magpie save` and `magpie use`.

The README is blunt about who needs this: people who use more than one agent, more than one provider or more than one account. If you use one agent on its vendor's own plan and that is enough, you do not need it. The product runs on macOS, Windows and Linux as a menu bar app, a window, a TUI, a web UI and a CLI, and also in Docker and on Termux.

Install is a curl script, a download, go install or Docker

The quick start gives three steps: install, add a provider, pick a model for each agent. The install line is:

sh
curl -fsSL https://usemagpie.ai/install.sh | sh

The alternatives are to download the app from usemagpie.ai, run go install github.com/yetone/magpie@latest, or use the Docker image documented at usemagpie.ai/docs/docker. Mac builds are signed and notarised, and every build updates itself. Behind a firewall, the installer takes --proxy or --mirror.

Piping a remote script into sh is the same trade as any curl-to-shell installer, so read install.sh first if that matters to you. The go.mod asks for Go 1.26.8, which is relevant only to go install and source builds. Providers are added in the app under Providers, Add provider, by picking a preset and pasting a key or signing in with a subscription. The model for each agent is set on the Agents page, and a new session starts on the new model.

On a machine without a desktop, such as a NAS or a Termux phone, the terminal commands and the web UI are the way in. Termux has no desktop webview, so the Makefile builds it with the nogui tag, which keeps the web UI and terminal commands.

The terminal commands cover providers, groups, profiles and quota

Everything in the app can also be done from the terminal. A preset provider needs only the key:

sh
magpie provider add deepseek sk-…              # a preset needs only the key
magpie claude deepseek/deepseek-v4-pro          # Claude Code on DeepSeek
magpie codex moonshot/kimi-k2.5                 # Codex on Kimi

A routing group names several models, and the agent targets the group:

sh
magpie group add "Opus anywhere" models=claude/claude-opus-5-5,copilot/claude-opus-5.5 routing=smart
magpie claude group/opus-anywhere               # fails over between subscriptions

Profiles and quota have their own commands:

sh
magpie save work && magpie use work             # profiles
magpie quota                                    # what's left on every plan

The model names in these examples are the project's own. Whether a given provider currently serves them is something to check on that provider.

Failover only works if there is a next account to move to

When a quota runs out, a provider's next account takes over, and a routing group moves on to another model or provider, so the agent never sees the error. That is the headline claim, and the README qualifies it in the same section: with one account and no group there is nothing to move to, and the error reaches the agent.

So the feature costs setup. You need a second account on the same provider, or a group that lists a fallback model. The group example above pairs claude/claude-opus-5-5 with copilot/claude-opus-5.5 and sets routing=smart, which is the form of fail over between subscriptions. The quick start does not define what smart does, so read docs/reference.md for the routing options before you rely on it.

A fallback to a different model also changes behavior mid-task, since the second model has not seen the first one's reasoning. If an agent session is long and stateful, a quiet switch can be harder to debug than a visible quota error.

Before you rely on failover, run magpie quota to see what is left on each plan, and keep at least one provider in the group that you pay for by token, so a subscription limit does not leave the group empty.

Masking is off by default and discovery reads your agents' sign-ins

Two privacy settings need attention. Prompt masking is off by default. Once turned on in Settings, Privacy, keys, passwords and emails in a prompt are masked on your computer before the request leaves it, and put back in the reply. Until you switch it on, prompts go out as written.

The second is account discovery. magpie finds the subscriptions your agents are signed in to by reading their sign-ins: Claude Code's and Codex's files, and the Keychain. To stop that, turn off Settings, Privacy, Subscription accounts, or run `magpie accounts discovery off`, with `on` turning it back on. Setting MAGPIE_NO_ACCOUNTS=1 turns it off for one run without changing the saved setting. API-key providers work either way.

The design means magpie holds or reads credentials for services you pay for, so the trust decision is about the app itself. The source is MIT licensed and the repository includes a THIRD_PARTY_NOTICES file, which lets you inspect it, and the Dockerfile keeps all sign-ins in a /config volume.

The gateway translates four API dialects and any base-URL client can use it

One gateway at 127.0.0.1:3425 serves every agent, and OpenAI, Anthropic and Gemini clients can all be pointed at it.

Agents that magpie does not know can still use it if they accept a base URL. The README gives environment variables:

sh
export OPENAI_BASE_URL=http://127.0.0.1:3425/v1     OPENAI_API_KEY=magpie
export ANTHROPIC_BASE_URL=http://127.0.0.1:3425     ANTHROPIC_API_KEY=magpie
export GOOGLE_GEMINI_BASE_URL=http://127.0.0.1:3425 GEMINI_API_KEY=magpie

The key value is the literal word magpie, since the real credentials live in magpie. The supported agent list is long, from Claude Code, Claude Desktop, Codex and Gemini CLI to OpenCode, Cursor CLI, Zed, Cline, Goose, Copilot CLI and OpenClaw, and magpie shows only the agents installed on your machine. Setup notes for some agents are in docs/reference.md under notes on some agents.

Docker needs Debian because vendor CLIs install glibc binaries

The Dockerfile builds with golang:1.26-alpine using CGO_ENABLED=0 and the nogui tag, then runs on debian:12-slim, not distroless. A comment explains why: some subscriptions' CLIs, named as Cursor, Devin and Grok Build, are installed with their vendor's curl-to-bash script, and the installed CLI is a glibc binary. With a distroless image, Cursor's cursor-agent failed with a required file not found error. Debian 12 also provides the glibc, libgcc and libstdc++ that the plugins' Bun needs, and bash for a NAS panel's terminal.

The container runs as a nonroot user with uid 65532, and HOME, XDG_CONFIG_HOME, XDG_CACHE_HOME, XDG_DATA_HOME and XDG_STATE_HOME all point inside /config. Sign-ins kept where an agent keeps them, such as ~/.codex, also land in that volume. Back up the volume, and treat it as holding credentials.

The Makefile builds for darwin arm64 and amd64, linux amd64 and arm64, windows amd64 and arm64, and android arm64. The GUI links a platform webview through cgo and builds natively, while nogui cross-compiles anywhere. On Linux the GUI uses GTK 3 and WebKitGTK 4.1.

Builds ship several times a day, and v0.1.2183 landed on 30 October 2026

The repository is not archived. The last push was on 2 November 2026. Releases v0.1.2826, v0.1.2827 and v0.1.2828 were published within nine minutes of each other on 3 November 2026, so version numbers are build counters and not milestones. A pinned version tells you little about feature maturity, and every build updates itself on Mac.

The README lists sponsors at the top, including ApiNebula, ZeroToken, Kimi, ApiKeyFan, WandAPI and AigoCode, with tracked links to usemagpie.ai. Preset providers in the app may overlap with sponsors, so check which provider a preset points at before pasting a key. Plugins live in the separate magpie-community/plugins repository, and the repository root has AGENTS.md, CLAUDE.md and LESSONS.md. Support is on Discord.

Editorial conclusion

Use magpie if you run more than one coding agent, provider or account and are tired of editing each agent's config by hand. Skip it if you use a single agent on its vendor's own plan, which is the case the README says does not need it, and turn on masking in Settings, Privacy before sending anything sensitive, since it is off by default.

Frequently asked questions

How do I install magpie?

Download the app from usemagpie.ai or run curl -fsSL https://usemagpie.ai/install.sh | sh. You can also use go install github.com/yetone/magpie@latest or the Docker image.

How do I set up magpie?

Add a provider in the app under Providers, Add provider, by picking a preset and pasting a key. Then pick a model for each agent on the Agents page and start a new session.

What happens when a quota runs out in magpie?

A provider's next account takes over, or a routing group moves to another model or provider. With one account and no group, the error reaches the agent.

Official sources

  1. Issues
  2. License: MIT
  3. Project website
  4. README
  5. yetone/magpie on GitHub
Community

Where developers are discussing it

Posts on Hacker News, dev.to and Lobsters that link to this repository, found by our scan of those communities. 1 in the last 30 days; newest first.

Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/yetone-magpie.svg)](https://hysenlabs.com/projects/yetone-magpie)

Weekly Top 10 badge

markdown
[![Hysen Labs](https://hysenlabs.com/badge/yetone-magpie.svg?metric=rank)](https://hysenlabs.com/projects/yetone-magpie)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/yetone-magpie.svg)](https://hysenlabs.com/projects/yetone-magpie)

Was this useful?