Swap models across Claude Code, Codex, and the rest from your menu bar
Because editing a dozen config files just to try a new model is a waste of keystrokes.
A tiny menu-bar utility surgically edits a dozen agent configs and runs a local API gateway so your Claude Code subscription can power Codex.

What it does
Magpie sits in your menu bar—or a terminal—and inventories every AI agent it finds on your machine, from Claude Code and Codex to Goose, Pi, and Copilot CLI, showing which model each is using. Click a row, pick a new model, and the app rewrites only that key in the agent’s config, leaving your careful comments and indentation untouched. It is a single Go binary under 15 MB that works on macOS, Linux, and Windows.
The interesting bit
Under the hood it runs a local gateway at 127.0.0.1:3425 that translates between OpenAI, Anthropic, and Gemini APIs on the fly. Every agent points at this loopback address, and Magpie forwards requests to the vendor you selected, handling streaming, tool calls, and reasoning. It can even piggyback on existing logins—if you have signed-in Claude Code, Codex, or Copilot sessions, Magpie reads those credentials and lets other agents use them without copying keys.
Key highlights
- Supports 14 agents including Claude Code, Codex, Gemini CLI, OpenCode, Pi, Goose, Cursor, Copilot CLI, Devin, and others.
- Surgical config edits: only the changed key is touched, preserving comments, indentation, and ordering in JSON, TOML, and YAML files.
- Fetches live model lists from vendors via the
models.devcatalog; a model released this morning appears in the picker on next refresh. - Profiles let you snapshot every agent’s settings and switch them all back in one move.
- Signed-in agents become providers: Claude Code, Codex, Copilot, and Devin subscriptions can be shared across other agents through the gateway.
Caveats
- Claude Code, Cursor, Grok, and Devin subscriptions require their respective CLIs to be installed and signed in, because Magpie drives the genuine local binary rather than proxying keys (Anthropic treats third-party system prompts differently).
- Codex reads its model list at startup, so you must restart it after switching models through Magpie.
- The ChatGPT backend only supports streaming and rejects some parameters, so Magpie translates non-streaming requests and drops refused fields.
Verdict
Grab it if you juggle multiple AI coding agents and want one switchboard for models and shared subscriptions. If you only use one agent and never change providers, you do not need another bird in your menu bar.
Frequently asked
- What is yetone/magpie?
- Because editing a dozen config files just to try a new model is a waste of keystrokes.
- Is magpie open source?
- Yes — yetone/magpie is open source, released under the MIT license.
- What language is magpie written in?
- yetone/magpie is primarily written in Go.
- How popular is magpie?
- yetone/magpie has 641 stars on GitHub.
- Where can I find magpie?
- yetone/magpie is on GitHub at https://github.com/yetone/magpie.