yetone/magpiePublic

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

AI summary: Unified local gateway that routes any LLM model to any AI agent with automatic failover and privacy masking

Stars
41K
+554 today
Forks
3.7K
Watchers
46
Open issues
5K
Open PRs
16
Contributors
~163
Commits
9K
Branches
7

GoMITCreated Sep 23, 2026Last push todayLatest release v0.1.4725+554 stars this week+554 this month

Quick answers

What is magpie?
Unified local gateway that routes any LLM model to any AI agent with automatic failover and privacy masking
What does magpie do?
magpie solves the fragmentation of AI agents that each require a separate API key, model format, and subscription plan. It runs a local HTTP gateway that speaks OpenAI, Anthropic and Gemini protocols and translates requests from any installed agent to the selected provider. The gateway can atomically rewrite an agent's config file to point at any provider/model, preserving comments and formatting. Distinctively it chains multiple accounts and providers in routing groups so that when a quota is exhausted the request is silently rerouted, and it can mask secrets in prompts before they leave the machine.
Who is magpie for?
Developers, data scientists, or teams that run multiple AI agents and need a single source of truth for models and credentials. Requires macOS, Linux or Windows with the magpie binary installed and basic familiarity with API keys or provider accounts.
How do I get started with magpie?
curl -fsSL https://usemagpie.ai/install.sh | sh
How popular is magpie on GitHub?
yetone/magpie has 40,963 stars and 3,744 forks on GitHub, and gained 554 stars in the last 7 days.
What license does magpie use?
yetone/magpie is released under the MIT license.

Star history

since Nov 23, 2026
020K40KNov 2026Nov 2026Nov 2026Nov 2026
41K stars as of Nov 24, 2026. Measured daily since Nov 23, 2026; GitHub no longer exposes earlier star timestamps.

Contribution activity

commits per day, last 52 weeks
NovDecJanFebMarAprMayJunJulAugSepOctNovMonWedFri2025-11-30: 0 commits2025-12-01: 0 commits2025-12-02: 0 commits2025-12-03: 0 commits2025-12-04: 0 commits2025-12-05: 0 commits2025-12-06: 0 commits2025-12-07: 0 commits2025-12-08: 0 commits2025-12-09: 0 commits2025-12-10: 0 commits2025-12-11: 0 commits2025-12-12: 0 commits2025-12-13: 0 commits2025-12-14: 0 commits2025-12-15: 0 commits2025-12-16: 0 commits2025-12-17: 0 commits2025-12-18: 0 commits2025-12-19: 0 commits2025-12-20: 0 commits2025-12-21: 0 commits2025-12-22: 0 commits2025-12-23: 0 commits2025-12-24: 0 commits2025-12-25: 0 commits2025-12-26: 0 commits2025-12-27: 0 commits2025-12-28: 0 commits2025-12-29: 0 commits2025-12-30: 0 commits2025-12-31: 0 commits2026-01-01: 0 commits2026-01-02: 0 commits2026-01-03: 0 commits2026-01-04: 0 commits2026-01-05: 0 commits2026-01-06: 0 commits2026-01-07: 0 commits2026-01-08: 0 commits2026-01-09: 0 commits2026-01-10: 0 commits2026-01-11: 0 commits2026-01-12: 0 commits2026-01-13: 0 commits2026-01-14: 0 commits2026-01-15: 0 commits2026-01-16: 0 commits2026-01-17: 0 commits2026-01-18: 0 commits2026-01-19: 0 commits2026-01-20: 0 commits2026-01-21: 0 commits2026-01-22: 0 commits2026-01-23: 0 commits2026-01-24: 0 commits2026-01-25: 0 commits2026-01-26: 0 commits2026-01-27: 0 commits2026-01-28: 0 commits2026-01-29: 0 commits2026-01-30: 0 commits2026-01-31: 0 commits2026-02-01: 0 commits2026-02-02: 0 commits2026-02-03: 0 commits2026-02-04: 0 commits2026-02-05: 0 commits2026-02-06: 0 commits2026-02-07: 0 commits2026-02-08: 0 commits2026-02-09: 0 commits2026-02-10: 0 commits2026-02-11: 0 commits2026-02-12: 0 commits2026-02-13: 0 commits2026-02-14: 0 commits2026-02-15: 0 commits2026-02-16: 0 commits2026-02-17: 0 commits2026-02-18: 0 commits2026-02-19: 0 commits2026-02-20: 0 commits2026-02-21: 0 commits2026-02-22: 0 commits2026-02-23: 0 commits2026-02-24: 0 commits2026-02-25: 0 commits2026-02-26: 0 commits2026-02-27: 0 commits2026-02-28: 0 commits2026-03-01: 0 commits2026-03-02: 0 commits2026-03-03: 0 commits2026-03-04: 0 commits2026-03-05: 0 commits2026-03-06: 0 commits2026-03-07: 0 commits2026-03-08: 0 commits2026-03-09: 0 commits2026-03-10: 0 commits2026-03-11: 0 commits2026-03-12: 0 commits2026-03-13: 0 commits2026-03-14: 0 commits2026-03-15: 0 commits2026-03-16: 0 commits2026-03-17: 0 commits2026-03-18: 0 commits2026-03-19: 0 commits2026-03-20: 0 commits2026-03-21: 0 commits2026-03-22: 0 commits2026-03-23: 0 commits2026-03-24: 0 commits2026-03-25: 0 commits2026-03-26: 0 commits2026-03-27: 0 commits2026-03-28: 0 commits2026-03-29: 0 commits2026-03-30: 0 commits2026-03-31: 0 commits2026-04-01: 0 commits2026-04-02: 0 commits2026-04-03: 0 commits2026-04-04: 0 commits2026-04-05: 0 commits2026-04-06: 0 commits2026-04-07: 0 commits2026-04-08: 0 commits2026-04-09: 0 commits2026-04-10: 0 commits2026-04-11: 0 commits2026-04-12: 0 commits2026-04-13: 0 commits2026-04-14: 0 commits2026-04-15: 0 commits2026-04-16: 0 commits2026-04-17: 0 commits2026-04-18: 0 commits2026-04-19: 0 commits2026-04-20: 0 commits2026-04-21: 0 commits2026-04-22: 0 commits2026-04-23: 0 commits2026-04-24: 0 commits2026-04-25: 0 commits2026-04-26: 0 commits2026-04-27: 0 commits2026-04-28: 0 commits2026-04-29: 0 commits2026-04-30: 0 commits2026-05-01: 0 commits2026-05-02: 0 commits2026-05-03: 0 commits2026-05-04: 0 commits2026-05-05: 0 commits2026-05-06: 0 commits2026-05-07: 0 commits2026-05-08: 0 commits2026-05-09: 0 commits2026-05-10: 0 commits2026-05-11: 0 commits2026-05-12: 0 commits2026-05-13: 0 commits2026-05-14: 0 commits2026-05-15: 0 commits2026-05-16: 0 commits2026-05-17: 0 commits2026-05-18: 0 commits2026-05-19: 0 commits2026-05-20: 0 commits2026-05-21: 0 commits2026-05-22: 0 commits2026-05-23: 0 commits2026-05-24: 0 commits2026-05-25: 0 commits2026-05-26: 0 commits2026-05-27: 0 commits2026-05-28: 0 commits2026-05-29: 0 commits2026-05-30: 0 commits2026-05-31: 0 commits2026-06-01: 0 commits2026-06-02: 0 commits2026-06-03: 0 commits2026-06-04: 0 commits2026-06-05: 0 commits2026-06-06: 0 commits2026-06-07: 0 commits2026-06-08: 0 commits2026-06-09: 0 commits2026-06-10: 0 commits2026-06-11: 0 commits2026-06-12: 0 commits2026-06-13: 0 commits2026-06-14: 0 commits2026-06-15: 0 commits2026-06-16: 0 commits2026-06-17: 0 commits2026-06-18: 0 commits2026-06-19: 0 commits2026-06-20: 0 commits2026-06-21: 0 commits2026-06-22: 0 commits2026-06-23: 0 commits2026-06-24: 0 commits2026-06-25: 0 commits2026-06-26: 0 commits2026-06-27: 0 commits2026-06-28: 0 commits2026-06-29: 0 commits2026-06-30: 0 commits2026-07-01: 0 commits2026-07-02: 0 commits2026-07-03: 0 commits2026-07-04: 0 commits2026-07-05: 0 commits2026-07-06: 0 commits2026-07-07: 0 commits2026-07-08: 0 commits2026-07-09: 0 commits2026-07-10: 0 commits2026-07-11: 0 commits2026-07-12: 0 commits2026-07-13: 0 commits2026-07-14: 0 commits2026-07-15: 0 commits2026-07-16: 0 commits2026-07-17: 0 commits2026-07-18: 0 commits2026-07-19: 0 commits2026-07-20: 0 commits2026-07-21: 0 commits2026-07-22: 0 commits2026-07-23: 0 commits2026-07-24: 0 commits2026-07-25: 0 commits2026-07-26: 0 commits2026-07-27: 0 commits2026-07-28: 0 commits2026-07-29: 0 commits2026-07-30: 0 commits2026-07-31: 0 commits2026-08-01: 0 commits2026-08-02: 0 commits2026-08-03: 0 commits2026-08-04: 0 commits2026-08-05: 0 commits2026-08-06: 0 commits2026-08-07: 0 commits2026-08-08: 0 commits2026-08-09: 0 commits2026-08-10: 0 commits2026-08-11: 0 commits2026-08-12: 0 commits2026-08-13: 0 commits2026-08-14: 0 commits2026-08-15: 0 commits2026-08-16: 0 commits2026-08-17: 0 commits2026-08-18: 0 commits2026-08-19: 0 commits2026-08-20: 0 commits2026-08-21: 0 commits2026-08-22: 0 commits2026-08-23: 0 commits2026-08-24: 0 commits2026-08-25: 0 commits2026-08-26: 0 commits2026-08-27: 0 commits2026-08-28: 0 commits2026-08-29: 0 commits2026-08-30: 0 commits2026-08-31: 0 commits2026-09-01: 0 commits2026-09-02: 0 commits2026-09-03: 0 commits2026-09-04: 0 commits2026-09-05: 0 commits2026-09-06: 0 commits2026-09-07: 0 commits2026-09-08: 0 commits2026-09-09: 0 commits2026-09-10: 0 commits2026-09-11: 0 commits2026-09-12: 0 commits2026-09-13: 0 commits2026-09-14: 0 commits2026-09-15: 0 commits2026-09-16: 0 commits2026-09-17: 0 commits2026-09-18: 0 commits2026-09-19: 0 commits2026-09-20: 0 commits2026-09-21: 0 commits2026-09-22: 2 commits2026-09-23: 20 commits2026-09-24: 88 commits2026-09-25: 128 commits2026-09-26: 87 commits2026-09-27: 91 commits2026-09-28: 135 commits2026-09-29: 147 commits2026-09-30: 164 commits2026-10-01: 206 commits2026-10-02: 210 commits2026-10-03: 195 commits2026-10-04: 162 commits2026-10-05: 218 commits2026-10-06: 201 commits2026-10-07: 99 commits2026-10-08: 171 commits2026-10-09: 112 commits2026-10-10: 193 commits2026-10-11: 189 commits2026-10-12: 159 commits2026-10-13: 317 commits2026-10-14: 210 commits2026-10-15: 236 commits2026-10-16: 96 commits2026-10-17: 77 commits2026-10-18: 17 commits2026-10-19: 106 commits2026-10-20: 62 commits2026-10-21: 78 commits2026-10-22: 63 commits2026-10-23: 75 commits2026-10-24: 108 commits2026-10-25: 169 commits2026-10-26: 109 commits2026-10-27: 185 commits2026-10-28: 244 commits2026-10-29: 201 commits2026-10-30: 188 commits2026-10-31: 243 commits2026-11-01: 291 commits2026-11-02: 145 commits2026-11-03: 179 commits2026-11-04: 123 commits2026-11-05: 102 commits2026-11-06: 165 commits2026-11-07: 101 commits2026-11-08: 90 commits2026-11-09: 139 commits2026-11-10: 276 commits2026-11-11: 271 commits2026-11-12: 223 commits2026-11-13: 255 commits2026-11-14: 168 commits2026-11-15: 116 commits2026-11-16: 99 commits2026-11-17: 85 commits2026-11-18: 136 commits2026-11-19: 70 commits2026-11-20: 71 commits2026-11-21: 66 commits2026-11-22: 29 commits2026-11-23: 49 commits2026-11-24: 0 commits2026-11-25: 0 commits2026-11-26: 0 commits2026-11-27: 0 commits2026-11-28: 0 commits
9,010 commits in the last yearLessMore

Signals and awards

derived from tracked data
  • Widely adopted

    40,963 stars

  • Breakout launch

    40,963 stars in 62 days

  • High momentum

    +554 stars today

  • Very active

    9,010 commits in 52 weeks

  • Community-driven

    ~163 contributors

  • Permissive license

    MIT

  • Continuous integration

    Automated checks passing

What magpie does

magpie solves the fragmentation of AI agents that each require a separate API key, model format, and subscription plan. It runs a local HTTP gateway that speaks OpenAI, Anthropic and Gemini protocols and translates requests from any installed agent to the selected provider. The gateway can atomically rewrite an agent's config file to point at any provider/model, preserving comments and formatting. Distinctively it chains multiple accounts and providers in routing groups so that when a quota is exhausted the request is silently rerouted, and it can mask secrets in prompts before they leave the machine.

Developers, data scientists, or teams that run multiple AI agents and need a single source of truth for models and credentials. Requires macOS, Linux or Windows with the magpie binary installed and basic familiarity with API keys or provider accounts.

  • Model routing: any provider/model appears as provider/model in a searchable list and is injected into the agent's config atomically
  • Profile switching: a named profile stores the full model set for all agents and can be applied in one command
  • Privacy masking: configurable rules replace secrets with placeholders in‑memory before the request is sent and restore them in the response
  • Failover routing: routing groups automatically fall back to alternate accounts or providers when quotas run out
  • CLI & GUI: full control via menu‑bar app, TUI, web UI, CLI and Docker image
  • Plugin extensibility: third‑party plugins can add custom routing logic or tool calls
  • Cross‑platform distribution: signed macOS app, Linux binaries, Docker image and Nix package

Where teams use it

Multi‑agent developer

A software engineer using Claude Code, Codex and Gemini CLI can manage all keys and models from a single place, avoiding per‑agent configuration churn.

Team with shared quotas

When a team's OpenAI quota is exhausted, magpie automatically switches to a backup account or provider, keeping CI pipelines running without manual intervention.

Privacy‑conscious user

Users handling sensitive environment files can enable masking so that API keys or passwords never leave the local machine during LLM calls.

Cross‑platform CI runner

A CI job can run the Docker image, point the agents' base URLs to the local gateway, and reliably route calls to whichever model is cheapest or most available.

Power‑user with custom tooling

Through the CLI and plugins, advanced users can script profile changes, generate images, or invoke tool calls without leaving the terminal.

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

README

main branch

magpie

magpie

Every agent's model. One place.

Claude Code on Kimi. Codex on DeepSeek. Gemini CLI on GLM. OpenCode on your ChatGPT plan.
Switch any of them from the menu bar. One local gateway serves them all,
and when a quota runs out, it quietly moves on to your next account.

Release Stars Discord License
macOS Windows Linux Docker Termux

Thanks to Kimi for supporting magpie and the open source community.

Sponsors

Ccode-AI
WandAPI  AIGoCode
ModelGo  x6.ai

Download  ·  Docs  ·  Reference  ·  Plugins  ·  Discord  ·  English · 简体中文


magpie's Agents page: Claude Code on Kimi K3, Codex on DeepSeek V4 Pro, Gemini CLI on GLM-5.3, each picked from one list

Is magpie for you?

Each agent keeps its model in its own file, in its own format, with its own keys and base URLs. A subscription you pay for works in one agent and nowhere else. magpie puts all of that behind one app and one local gateway:

  • Pick any model for any agent from one list. magpie edits the one key that matters in the agent's own config.
  • Use one provider everywhere: an API key, a local model, or the Claude, ChatGPT, Copilot, Gemini or Grok plan you're signed in to.
  • Keep going 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. With one account and no group there is nothing to move to, and the error reaches the agent.
  • Keep your secrets off the vendor's servers: once you turn masking on in Settings → Privacy (it's off by default), keys, passwords and emails in a prompt are masked on your computer before the request leaves it, and put back in the reply.

It's for you if you 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's enough, you don't need it.

Runs on macOS, Windows and Linux (menu bar app, window, TUI, web UI and CLI), in Docker, and on Termux.

Quick start

1 · Install. Download the app from usemagpie.ai, or run:

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

Mac builds are signed and notarised, every release file carries a GitHub Actions build attestation (gh attestation verify <file> -R yetone/magpie-releases), and every build updates itself. On Linux the script installs the desktop app, and on a desktop without WebKitGTK 4.1 installs it first with your package manager (sudo asks for your password); with no desktop, or no terminal to ask at, it installs the terminal build and says which package to add. --gui or --tui chooses. Behind a firewall, use --proxy or --mirror. With Nix, nix profile install github:yetone/magpie-releases (#magpie-cli for the terminal build; Linux and Apple silicon Macs, updated with each release). Or go install github.com/yetone/magpie@latest, or the Docker image. Remove magpie with curl -fsSL https://usemagpie.ai/install.sh | sh -s -- --uninstall: it puts your agents back as they were, then takes off what the script installed (with magpie deleted already, it downloads one to put them back); your settings in ~/.config/magpie stay unless you add --purge.

2 · Add a provider. Open magpie and go to Providers → Add provider. Pick a preset and paste a key, or sign in with a subscription.

3 · Pick a model for each agent on the Agents page. Start a new session and it's on the new model.

Or do it all from the terminal:

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
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
magpie save work && magpie use work             # profiles
magpie quota                                    # what's left on every plan
magpie settings set theme dark                  # every Settings switch, from the terminal
magpie tool generate_image "a magpie, watercolour" -o hero.png   # magpie's image, vision and search tools, called directly
magpie tui                                      # the whole thing, in a terminal

magpie finds the subscriptions your agents are signed in to by reading their sign-ins (Claude Code's and Codex's files, the Keychain). To keep it from reading them, turn off Settings → Privacy → Subscription accounts, or run magpie accounts discovery off (on turns it back on). MAGPIE_NO_ACCOUNTS=1 turns it off for one run without changing the saved setting. API-key providers work either way.

Supported agents

Claude Code · Claude Desktop · Claude Science · Codex · Gemini CLI · Antigravity CLI · Dim · OpenCode · OpenChamber · MiMo Code · DevEco Code · Pi · oh-my-pi · StepCode · MothX · PenguinHarness · Aside · OmO · Prime Agent · mu · Goose · Cursor CLI · Cursor Private Inference · Zed · VS Code Chat · VS Code Insiders · VSCodium Chat · Zoo Code · JetBrains Air · Air (JetBrains IDEs) · Copilot (JetBrains) · Copilot CLI · Crush · DeepSeek Harness · Reasonix Studio · Command Code · fx · Devin · Hermes Agent · Mister Morph · Kimi Code · jcode · Mistral Vibe · Qwen Code · Muse Code · Empryo · nanobot · miniQ · Paimon · MiniMax Code · Droid · Cline · Qoder · Qoder CN · Grok Build · Kigi · Grok App · ZCode · WorkBuddy · WorkBuddy AI · CodeBuddy · Pencil · Paseo · OpenPencil · OpenBot · Craft Agents · Tuanjie Cowork · NewMax · LiveAgent · Raycast · Kiro Crew · OpenMausBot · T3 Code · OpenHanako · AtomCode · Open Code Review · Snow CLI · Alma · Shelley · Cindy · Lody · AionUi · Cherry Studio · Ante · AstrBot · QwenPaw · OpenClaw · Avibe · Kun · Nowledge Mem

magpie shows only the agents installed on your machine; setup notes for some of them are in the reference. Anything else that takes a base URL can use the gateway too:

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

How it fits together

The gateway at 127.0.0.1:3425 speaks OpenAI Chat, OpenAI Responses, Anthropic Messages and Gemini, and translates between them, streaming, tool calls and reasoning included.

How magpie fits together: your agents send requests to the magpie gateway at 127.0.0.1:3425, which routes them through routing groups and plugins to your API keys, subscriptions and local models.

What it does

Any model, any agent

Click a value and a searchable list opens: every model of every provider you added, as provider/model. The agent's config is rewritten atomically, and its comments, order and formatting stay as they were. Profiles save every agent's setup under one name ("Budget", "Focus") and switch them all back in one move. Each agent can also have its own short list of models; a profile keeps that list too.

The menu bar panel The model picker

Privacy masking

Agents put what they read into the prompt: an .env, a config file, a log with a token in it. With masking on, magpie swaps those values for placeholders on your computer before a request leaves it, and swaps them back in the reply. Your agent and your files keep the real values; the vendor never sees them.

Insights › Masking: 5,812 values kept from vendors in 7 days, flowing from Claude Code and Codex through magpie to OpenAI, Kimi and DeepSeek, and each request's masked values
Found two ways Rules for what is certain (API keys, private keys, tokens, emails, and card and ID numbers whose checksum adds up), and, if you want it, a model that runs on this computer for the names, addresses and passwords no rule can find (a 1.6 GB download, on the CPU)
Put back everywhere A value becomes a placeholder such as {{API_KEY_k3v9x2mq}}, and every placeholder in the reply turns back into its value: streamed text and tool-call arguments too, so a command the agent runs has the real key
Nothing breaks A value gets the same placeholder every time, so the conversation, the prompt cache and thinking signatures stay valid. A value masked once is masked wherever it shows up later
Never on disk Values are held in memory only. The record keeps each value's kind, length and first characters. If masking is on and can't run, the request is held back (503), never sent as written
You can check it Insights › Masking lists every request it changed, with what the vendor got instead, side by side, and Try it in Settings shows what a text would become
Your rules Secrets and personal data each on or off, finer kinds (passport, IBAN, MAC, public IP…), your own words and patterns, and whether a value found is masked, only warned about, or held back (Mask, Warn, Block)

The cost: the model sees {{API_KEY_…}}, not the key, so a task about the value itself (why is this token refused?) can't be done on it. Put such values under Never mask. Rules can be wrong now and then; the Masking page is where you'd see it. It's off until you turn it on in Settings → Privacy. Emails at names kept for examples (example.com, .test, .invalid) are left as written.

Providers

Pick a preset, paste a key. Model lists come from the vendor, with names and reasoning levels filled in from models.dev, so a model released this morning is in your picker on the next refresh.

Presets include Anthropic · OpenAI · Google Gemini · Google Vertex AI · Amazon Bedrock (runtime and Mantle) · DeepSeek · Kimi · Zhipu GLM · MiniMax · StepFun · LongCat · Qwen · Baidu Qianfan · Tencent Cloud · Huawei Cloud MaaS · Volcengine Ark · Mistral · Voyage AI · Groq · Nous Portal · xAI · OpenRouter · Vercel AI Gateway · GMI Cloud · Together · Fireworks · Fireworks Nexus · SiliconFlow · NVIDIA NIM · ModelScope · Ollama · LM Studio … and any OpenAI- or Anthropic-compatible URL.

Import brings in the providers from CC Switch, Claude Code, Codex and Alma. Add to magpie links let a provider's website hand its config to magpie in one click. Each key and each account can go through a proxy of its own.

Add provider: subscriptions to sign in to, vendors, relays and local servers

Subscriptions

An agent you're signed in to is a subscription with models behind it, so magpie offers it as a provider to every other agent. Add several accounts per subscription and magpie fails over between them.

  • Claude: drives the real local claude binary and bridges your agent's tools over MCP
  • Codex / ChatGPT: your ChatGPT plan's models, in every other agent
  • GitHub Copilot, Gemini (Code Assist), Antigravity (through your own agy CLI), Grok (SuperGrok) and more
  • Any OpenCode auth plugin or pi package from npm

Daily warm-up starts each Claude and ChatGPT account's 5-hour window at the times you choose, or the moment the last one resets.

Routing groups

A routing group is several models an agent picks as one, such as group/daily-coding. The gateway spreads requests over every member's keys and accounts:

Mode What it does
smart Of the subscriptions with quota left, use the one that renews soonest, so less is wasted at the reset
order Use the first model until it can't answer, then the next
rotate Move to the next member on each turn
usage Use the least-used member first
pace Use the account with the most of its week left per hour until it resets

A conversation stays with the account that answered it while the vendor's prompt cache is worth keeping. Groups can contain groups. Intent routing has a small model of your choice read each new turn, so tests go to the strong model and quick questions to the cheap one. The Routing view shows every decision live.

The Routing view: four agents through magpie to seven providers, live
An intent-routed turn, explained step by step A routing group inside a routing group

Plugins

magpie plugin add opencode-gemini-auth   # an OpenCode plugin from npm
magpie plugin login google-plugin        # its own sign-in flow, in magpie

Plugins run on Bun, downloaded the first time one needs it. A plugin signs in, lists its models and makes each request; agents use those models like any other provider's. Browse magpie-community/plugins, or write your own.

A plugin can also be gateway middleware: JavaScript that sees what every agent sends and gets back. onRequest can rewrite a request or turn it away, onEvent sees each streamed event, onResponse the whole reply. A hook that throws or runs too long leaves the request as it was.

// alias.middleware.js — magpie plugin add ./alias.middleware.js
export function onRequest(body, ctx) {
  if (body.model === "fast") return { ...body, model: "deepseek/deepseek-chat" };
}
Ready-made middleware, most of it what New API does for its channels, with the same JSON
Package What it does
param-override New API's param_override: set, delete, move or rewrite request fields, under conditions, or turn a request away
model-map New API's model_mapping: send a model under another name; replies keep the name asked for
system-prompt Your system prompt on every request, or some agents' or models'
word-guard New API's sensitive-word filter: turn away or mask words in what users send, and in replies
think-tags Take <think>…</think> out of replies, or put reasoning_content into them
magpie plugin add @magpie-community/middleware-model-map
magpie plugin options model-map '{"mapping": {"fast": "deepseek/deepseek-chat"}}'

Find them under Plugins › Discover › Gateway middleware. See Gateway middleware.

Usage and cost

The Usage page: balances, tokens, cache hit rate and cost
Tokens and cost Tokens, cache reads and writes, reasoning and calls, with cost at list price in dollars or yuan; set your own price for any model
Quota Balances and quota windows for every key, plan and account (magpie quota), and a reminder before a window renews with much of it unused
Sessions Every agent conversation with its cost and title, reopened in your terminal with one click
Context How full each request's context window is, how much came from the cache, and what fills it
Bills By account and by upstream key, and OTLP export to your own observability stack

Sharing

Local network Turn on Share on local network and give each client a named gateway key with its own daily, weekly or monthly token and cost limit
Remote magpie A laptop uses the providers, accounts and groups of the magpie on your desktop, and still wires its own agents
Docker Run ghcr.io/yetone/magpie on a server or a NAS and manage it from the web UI
Sync Back up to a file, or sync machines over WebDAV (Nutstore, Nextcloud…), S3, or an encrypted GitHub repository backup

Also

  • Library: write instructions, MCP servers, skills and subagents once; magpie writes them into each agent's files in its format, and removes only what it wrote.
  • Web search for any model: a model that can't search gets magpie's search: a provider that can, or search APIs (Tavily, Brave, Exa, Firecrawl, You.com, DeepSeek, Doubao Search on Volcengine, Yuanbao Search on Tencent Cloud, TinyFish, SearXNG), asked in the order you drag them into, each one able to be switched off without losing its key. An API can hold several keys: searches take turns over them (or use them in order with pick=order), a key refused lately is asked last, and Tavily keys show what each has used of its limit, in Settings and in magpie search. Any agent can mount the same search as an MCP server, with a web_search tool and a web_fetch tool that reads a page by its URL.
  • Images and video: an image tool for any agent over MCP, with the model you choose, and videos with a Grok subscription or a MiniMax API key (MiniMax H3).
  • Agents kept current: the Agents page shows each CLI's version, updates it the way it was installed, and gives the commands for the ones you don't have.
  • WSL: on Windows, agents inside WSL distros are wired too, and their sessions counted.
  • Keep awake, light and dark, and your theme's look on Omarchy.

Documentation

Get started The guided tour
Reference Every agent, provider option, gateway endpoint, CLI command and file
Plugins Use plugins and write your own
Intent routing Route each turn by what it asks for
Import links "Add to magpie" buttons for provider websites
Remote magpie Use one magpie's providers and groups from your other computers
Docker Run magpie on a server or a NAS

Privacy

Your prompts, replies, keys and accounts go only to the providers you use, and with privacy masking on, the secrets in them don't go even there. Once a day a released magpie tells us it is in use: a random id, its version and system, and which agents, providers and models it is used with, by magpie's own ids (a provider you added yourself is only custom), which of the plugins Discover lists are installed and which of the Library market’s MCP servers you use, by their market ids, so they can show how many use each one, and for each partner listed first in the add sheet or the Plugins page, how many times a day it was shown, opened and added, and how many times the Plugins page was opened (counts only). No names, URLs, accounts, keys, prompts or usage. Turn part or all of it off in Settings → Privacy, or with DO_NOT_TRACK=1. A partner's website and key links go through usemagpie.ai/go/…, which counts the click, and usemagpie.ai counts fetches of the partner list; the server sees these whatever the settings, and keeps no id or address. Icons named by a plugin, an import link or the library are fetched through usemagpie.ai/api/icon, so their hosts see Cloudflare's address, not yours; the server only passes the picture on, and counts and keeps nothing. The Privacy page lists everything magpie sends by itself, with an example and every switch; the reference has the rules.

Community

Questions, ideas, or a model that won't show up? Tell us on Discord. That is where feedback goes.

This repository doesn't take pull requests. Only maintainers can open them. If you'd like a fix or a feature, describe it on Discord and we'll build it.

If magpie saved you from editing one more config file, a ⭐ helps others find it.

Star history

License

MIT

magpie is not affiliated with Apache Magpie or the Apache Software Foundation.

View on GitHub

Recent activity

commits and pull requests

Releases and announcements

1,000 total
  1. magpie v0.1.4725v0.1.4725Nov 23, 2026130 downloads

    ## Bug Fixes - Fixed WorkBuddy memory so it reads your words exactly as you said them, without extra surrounding context. ### Install Download from [usemagpie.ai](https://usemagpie.ai), or `curl -fsSL https://usemagpie.ai/install.sh | sh`. An installed magpie updates itself. - **macOS (Apple Silicon):** `magpie-darwin-arm64.dmg` - **macOS (Intel):** `magpie-darwin-amd64.dmg` - **Windows:** `magpie-windows-amd64.exe` (ARM: `magpie-windows-arm64.exe`) - **Linux:** `magpie-linux-amd64` / `magpie-linux-arm64` (needs GTK 3 and WebKitGTK 4.1) - **Terminal only:** `magpie-cli-<os>-<arch>` Thanks to bxgz233, whose reports and code went into this release. Everyone who helped: [contributors](https://usemagpie.ai/docs/contributors). <!-- lang:zh --> ## 错误修复 - 修复了 WorkBuddy 记忆功能,使其完全按照你所说的话读取你的文字,而不包含多余的上下文。 ### 安装 从 [usemagpie.ai](https://usemagpie.ai) 下载,或运行 `curl -fsSL https://usemagpie.ai/install.sh | sh`。已安装的 magpie 会自动更新。 感谢 bxgz233:这次更新里有你的反馈与代码。所有贡献者见[贡献墙](https://usemagpie.ai/docs/zh/contributors)。 --- The same release, and the feed magpie updates from: https://github.com/yetone/magpie-releases/releases/tag/v0.1.4725

  2. magpie v0.1.4724v0.1.4724Nov 23, 202668 downloads

    ## Improvements - Group member accounts and controls now stay in their own row. ### Install Download from [usemagpie.ai](https://usemagpie.ai), or `curl -fsSL https://usemagpie.ai/install.sh | sh`. An installed magpie updates itself. - **macOS (Apple Silicon):** `magpie-darwin-arm64.dmg` - **macOS (Intel):** `magpie-darwin-amd64.dmg` - **Windows:** `magpie-windows-amd64.exe` (ARM: `magpie-windows-arm64.exe`) - **Linux:** `magpie-linux-amd64` / `magpie-linux-arm64` (needs GTK 3 and WebKitGTK 4.1) - **Terminal only:** `magpie-cli-<os>-<arch>` <!-- lang:zh --> ## 改进 - 群组成员账户和控件现在会保持在各自的行中。 ### 安装 从 [usemagpie.ai](https://usemagpie.ai) 下载,或运行 `curl -fsSL https://usemagpie.ai/install.sh | sh`。已安装的 magpie 会自动更新。 --- The same release, and the feed magpie updates from: https://github.com/yetone/magpie-releases/releases/tag/v0.1.4724

  3. magpie v0.1.4723v0.1.4723Nov 23, 2026131 downloads

    ## Improvements - Plugins toggled off and on in the terminal are now detected immediately by the running Magpie instance, including any new models. ### Install Download from [usemagpie.ai](https://usemagpie.ai), or `curl -fsSL https://usemagpie.ai/install.sh | sh`. An installed magpie updates itself. - **macOS (Apple Silicon):** `magpie-darwin-arm64.dmg` - **macOS (Intel):** `magpie-darwin-amd64.dmg` - **Windows:** `magpie-windows-amd64.exe` (ARM: `magpie-windows-arm64.exe`) - **Linux:** `magpie-linux-amd64` / `magpie-linux-arm64` (needs GTK 3 and WebKitGTK 4.1) - **Terminal only:** `magpie-cli-<os>-<arch>` Thanks to Zerlight0653, whose reports and code went into this release. Everyone who helped: [contributors](https://usemagpie.ai/docs/contributors). <!-- lang:zh --> ## 改进 - 在终端中关闭或开启的插件现在会被正在运行的 Magpie 实例立即检测到,包括任何新模型。 ### 安装 从 [usemagpie.ai](https://usemagpie.ai) 下载,或运行 `curl -fsSL https://usemagpie.ai/install.sh | sh`。已安装的 magpie 会自动更新。 感谢 Zerlight0653:这次更新里有你的反馈与代码。所有贡献者见[贡献墙](https://usemagpie.ai/docs/zh/contributors)。 --- The same release, and the feed magpie updates from: https://github.com/yetone/magpie-releases/releases/tag/v0.1.4723

  4. magpie v0.1.4722v0.1.4722Nov 23, 2026247 downloads

    ## Improvements - Updated the page shown when a browser is turned away to match the Magpie look and feel. ### Install Download from [usemagpie.ai](https://usemagpie.ai), or `curl -fsSL https://usemagpie.ai/install.sh | sh`. An installed magpie updates itself. - **macOS (Apple Silicon):** `magpie-darwin-arm64.dmg` - **macOS (Intel):** `magpie-darwin-amd64.dmg` - **Windows:** `magpie-windows-amd64.exe` (ARM: `magpie-windows-arm64.exe`) - **Linux:** `magpie-linux-amd64` / `magpie-linux-arm64` (needs GTK 3 and WebKitGTK 4.1) - **Terminal only:** `magpie-cli-<os>-<arch>` <!-- lang:zh --> ## 改进 - 更新了浏览器被拒绝访问时显示的页面,以匹配 Magpie 的外观和风格。 ### 安装 从 [usemagpie.ai](https://usemagpie.ai) 下载,或运行 `curl -fsSL https://usemagpie.ai/install.sh | sh`。已安装的 magpie 会自动更新。 --- The same release, and the feed magpie updates from: https://github.com/yetone/magpie-releases/releases/tag/v0.1.4722

  5. magpie v0.1.4721v0.1.4721Nov 23, 202654 downloads

    ## Improvements - Clicking a Claude card that has reached its usage limit now opens the Claude.ai **Settings › Usage** page, where its free limit resets are managed. ### Install Download from [usemagpie.ai](https://usemagpie.ai), or `curl -fsSL https://usemagpie.ai/install.sh | sh`. An installed magpie updates itself. - **macOS (Apple Silicon):** `magpie-darwin-arm64.dmg` - **macOS (Intel):** `magpie-darwin-amd64.dmg` - **Windows:** `magpie-windows-amd64.exe` (ARM: `magpie-windows-arm64.exe`) - **Linux:** `magpie-linux-amd64` / `magpie-linux-arm64` (needs GTK 3 and WebKitGTK 4.1) - **Terminal only:** `magpie-cli-<os>-<arch>` <!-- lang:zh --> ## 改进 - 点击已达到使用限制的 Claude 卡片现在会打开 Claude.ai 的 **Settings › Usage** 页面,可在该页面管理免费限制的重置。 ### 安装 从 [usemagpie.ai](https://usemagpie.ai) 下载,或运行 `curl -fsSL https://usemagpie.ai/install.sh | sh`。已安装的 magpie 会自动更新。 --- The same release, and the feed magpie updates from: https://github.com/yetone/magpie-releases/releases/tag/v0.1.4721

Code frequency

additions and deletions
+414.3K-414.3KWeek of 2026-09-20: +93,046 linesWeek of 2026-09-20: -8,099 linesWeek of 2026-09-27: +338,733 linesWeek of 2026-09-27: -27,504 linesWeek of 2026-10-04: +291,045 linesWeek of 2026-10-04: -20,739 linesWeek of 2026-10-11: +326,961 linesWeek of 2026-10-11: -92,466 linesWeek of 2026-10-18: +97,687 linesWeek of 2026-10-18: -8,155 linesWeek of 2026-10-25: +278,661 linesWeek of 2026-10-25: -22,162 linesWeek of 2026-11-01: +238,949 linesWeek of 2026-11-01: -18,819 linesWeek of 2026-11-08: +414,257 linesWeek of 2026-11-08: -27,543 linesWeek of 2026-11-15: +153,483 linesWeek of 2026-11-15: -10,164 linesWeek of 2026-11-22: +17,889 linesWeek of 2026-11-22: -1,143 linesSep 20, 2026Nov 22, 2026
+2.3M lines added, -236.8K removed over the last year.

Commits per week

last 52 weeks
14220Week of 2025-11-30: 0 commitsWeek of 2025-12-07: 0 commitsWeek of 2025-12-14: 0 commitsWeek of 2025-12-21: 0 commitsWeek of 2025-12-28: 0 commitsWeek of 2026-01-04: 0 commitsWeek of 2026-01-11: 0 commitsWeek of 2026-01-18: 0 commitsWeek of 2026-01-25: 0 commitsWeek of 2026-02-01: 0 commitsWeek of 2026-02-08: 0 commitsWeek of 2026-02-15: 0 commitsWeek of 2026-02-22: 0 commitsWeek of 2026-03-01: 0 commitsWeek of 2026-03-08: 0 commitsWeek of 2026-03-15: 0 commitsWeek of 2026-03-22: 0 commitsWeek of 2026-03-29: 0 commitsWeek of 2026-04-05: 0 commitsWeek of 2026-04-12: 0 commitsWeek of 2026-04-19: 0 commitsWeek of 2026-04-26: 0 commitsWeek of 2026-05-03: 0 commitsWeek of 2026-05-10: 0 commitsWeek of 2026-05-17: 0 commitsWeek of 2026-05-24: 0 commitsWeek of 2026-05-31: 0 commitsWeek of 2026-06-07: 0 commitsWeek of 2026-06-14: 0 commitsWeek of 2026-06-21: 0 commitsWeek of 2026-06-28: 0 commitsWeek of 2026-07-05: 0 commitsWeek of 2026-07-12: 0 commitsWeek of 2026-07-19: 0 commitsWeek of 2026-07-26: 0 commitsWeek of 2026-08-02: 0 commitsWeek of 2026-08-09: 0 commitsWeek of 2026-08-16: 0 commitsWeek of 2026-08-23: 0 commitsWeek of 2026-08-30: 0 commitsWeek of 2026-09-06: 0 commitsWeek of 2026-09-13: 0 commitsWeek of 2026-09-20: 325 commitsWeek of 2026-09-27: 1148 commitsWeek of 2026-10-04: 1156 commitsWeek of 2026-10-11: 1284 commitsWeek of 2026-10-18: 509 commitsWeek of 2026-10-25: 1339 commitsWeek of 2026-11-01: 1106 commitsWeek of 2026-11-08: 1422 commitsWeek of 2026-11-15: 643 commitsWeek of 2026-11-22: 78 commitsNov 30, 2025Nov 22, 2026
9K commits in the last 52 weeks.

When work happens

weekday and hour
SunMonTueWedThuFriSat036912151821Sun 0:00 — 69 commitsSun 1:00 — 63 commitsSun 2:00 — 54 commitsSun 3:00 — 51 commitsSun 4:00 — 43 commitsSun 5:00 — 48 commitsSun 6:00 — 33 commitsSun 7:00 — 42 commitsSun 8:00 — 42 commitsSun 9:00 — 34 commitsSun 10:00 — 33 commitsSun 11:00 — 36 commitsSun 12:00 — 56 commitsSun 13:00 — 38 commitsSun 14:00 — 45 commitsSun 15:00 — 64 commitsSun 16:00 — 44 commitsSun 17:00 — 61 commitsSun 18:00 — 51 commitsSun 19:00 — 62 commitsSun 20:00 — 53 commitsSun 21:00 — 39 commitsSun 22:00 — 51 commitsSun 23:00 — 42 commitsMon 0:00 — 64 commitsMon 1:00 — 41 commitsMon 2:00 — 40 commitsMon 3:00 — 39 commitsMon 4:00 — 19 commitsMon 5:00 — 31 commitsMon 6:00 — 29 commitsMon 7:00 — 38 commitsMon 8:00 — 22 commitsMon 9:00 — 22 commitsMon 10:00 — 43 commitsMon 11:00 — 39 commitsMon 12:00 — 38 commitsMon 13:00 — 43 commitsMon 14:00 — 51 commitsMon 15:00 — 59 commitsMon 16:00 — 62 commitsMon 17:00 — 81 commitsMon 18:00 — 82 commitsMon 19:00 — 70 commitsMon 20:00 — 57 commitsMon 21:00 — 59 commitsMon 22:00 — 71 commitsMon 23:00 — 62 commitsTue 0:00 — 75 commitsTue 1:00 — 75 commitsTue 2:00 — 83 commitsTue 3:00 — 52 commitsTue 4:00 — 55 commitsTue 5:00 — 56 commitsTue 6:00 — 45 commitsTue 7:00 — 32 commitsTue 8:00 — 28 commitsTue 9:00 — 50 commitsTue 10:00 — 67 commitsTue 11:00 — 75 commitsTue 12:00 — 67 commitsTue 13:00 — 78 commitsTue 14:00 — 61 commitsTue 15:00 — 78 commitsTue 16:00 — 68 commitsTue 17:00 — 90 commitsTue 18:00 — 87 commitsTue 19:00 — 44 commitsTue 20:00 — 57 commitsTue 21:00 — 37 commitsTue 22:00 — 57 commitsTue 23:00 — 37 commitsWed 0:00 — 60 commitsWed 1:00 — 38 commitsWed 2:00 — 36 commitsWed 3:00 — 47 commitsWed 4:00 — 62 commitsWed 5:00 — 43 commitsWed 6:00 — 25 commitsWed 7:00 — 30 commitsWed 8:00 — 34 commitsWed 9:00 — 44 commitsWed 10:00 — 47 commitsWed 11:00 — 56 commitsWed 12:00 — 55 commitsWed 13:00 — 63 commitsWed 14:00 — 66 commitsWed 15:00 — 90 commitsWed 16:00 — 95 commitsWed 17:00 — 81 commitsWed 18:00 — 81 commitsWed 19:00 — 73 commitsWed 20:00 — 54 commitsWed 21:00 — 50 commitsWed 22:00 — 68 commitsWed 23:00 — 47 commitsThu 0:00 — 69 commitsThu 1:00 — 62 commitsThu 2:00 — 62 commitsThu 3:00 — 72 commitsThu 4:00 — 36 commitsThu 5:00 — 33 commitsThu 6:00 — 28 commitsThu 7:00 — 28 commitsThu 8:00 — 27 commitsThu 9:00 — 31 commitsThu 10:00 — 41 commitsThu 11:00 — 75 commitsThu 12:00 — 68 commitsThu 13:00 — 55 commitsThu 14:00 — 64 commitsThu 15:00 — 57 commitsThu 16:00 — 85 commitsThu 17:00 — 83 commitsThu 18:00 — 73 commitsThu 19:00 — 75 commitsThu 20:00 — 63 commitsThu 21:00 — 41 commitsThu 22:00 — 70 commitsThu 23:00 — 64 commitsFri 0:00 — 62 commitsFri 1:00 — 80 commitsFri 2:00 — 49 commitsFri 3:00 — 31 commitsFri 4:00 — 40 commitsFri 5:00 — 53 commitsFri 6:00 — 33 commitsFri 7:00 — 14 commitsFri 8:00 — 24 commitsFri 9:00 — 49 commitsFri 10:00 — 73 commitsFri 11:00 — 86 commitsFri 12:00 — 60 commitsFri 13:00 — 59 commitsFri 14:00 — 57 commitsFri 15:00 — 71 commitsFri 16:00 — 58 commitsFri 17:00 — 47 commitsFri 18:00 — 76 commitsFri 19:00 — 54 commitsFri 20:00 — 55 commitsFri 21:00 — 48 commitsFri 22:00 — 66 commitsFri 23:00 — 56 commitsSat 0:00 — 54 commitsSat 1:00 — 58 commitsSat 2:00 — 48 commitsSat 3:00 — 38 commitsSat 4:00 — 22 commitsSat 5:00 — 24 commitsSat 6:00 — 21 commitsSat 7:00 — 15 commitsSat 8:00 — 24 commitsSat 9:00 — 44 commitsSat 10:00 — 44 commitsSat 11:00 — 57 commitsSat 12:00 — 41 commitsSat 13:00 — 47 commitsSat 14:00 — 67 commitsSat 15:00 — 58 commitsSat 16:00 — 59 commitsSat 17:00 — 108 commitsSat 18:00 — 66 commitsSat 19:00 — 79 commitsSat 20:00 — 54 commitsSat 21:00 — 63 commitsSat 22:00 — 82 commitsSat 23:00 — 65 commits
Commit volume by weekday and hour (UTC). Larger dots mean more commits.

Who is committing

last 52 weeks
Maintainer commits8,155 (91%)
Community commits817 (9%)

8,972 commits in total over the last year.

DateListRankStars gained
Nov 24, 2026monthly#9+20,747
Nov 23, 2026monthly#8+20,728
  • morluto/rea

    Reverse engineer anything with agents, from app behavior down to native binaries.

    476.7K stars · TypeScript

  • affaan-m/ECC

    The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

    310K stars · JavaScript

  • NousResearch/hermes-agent

    The agent that grows with you

    265.8K stars · Python

  • firecrawl/firecrawl

    Knowledge infrastructure to make your agents smarter. Search, scrape and access 550+ data providers through one API.

    208.6K stars · TypeScript

  • DietrichGebert/ponytail

    Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.

    197.9K stars · JavaScript

  • avelino/awesome-go

    A curated list of awesome Go frameworks, libraries and software

    195.7K stars · Go