One gateway for every agent
Magpie is an open-source project by yetone on GitHub, MIT
licensed, with more than 37,000 stars. Each coding agent
keeps its model in its own config file with its own keys.
Magpie puts all of them behind one app and one local gateway
at 127.0.0.1:3425, which speaks the OpenAI
Chat, OpenAI Responses, Anthropic Messages and Gemini APIs
and translates between them, tool calls and streaming
included.
Its README lists more than 80 agents, among them Claude
Code, Codex, Gemini CLI, OpenCode, Cursor CLI, Zed, Goose
and Copilot CLI. It runs as a menu bar app, a window, a
terminal UI, a web UI and a CLI, on macOS, Windows and
Linux, in Docker and on Termux (README).
How setup works
Download the app from usemagpie.ai, or install it with a
one-line script. Open Providers, add a provider from a
preset with its key, or sign in with a subscription. Then
pick a model for each agent on the Agents page. Magpie
rewrites only the key that matters in that agent’s config,
and the next session uses the new model.
Presets cover Anthropic, OpenAI, Bedrock, DeepSeek, Kimi,
OpenRouter, Ollama and many more, plus any compatible URL.
Magpie can also offer the Claude, ChatGPT, Copilot, Gemini
or Grok plan an agent is signed in to as a provider for your
other agents. It finds those sign-ins by reading the agents’
files, and a switch in Settings turns that off.
Routing groups and privacy masking
A routing group is several models an agent picks as one.
Modes decide how requests spread: smart uses
the subscription that renews soonest,
order falls through a list,
rotate, usage and
pace balance across accounts. Intent routing
has a small model you choose read each new turn and send it
to the route you described.
Privacy masking is off by default. Turned on, it swaps keys,
tokens, emails and similar values in a prompt for
placeholders on your computer before the request leaves, and
puts them back in the reply.