repowiserepowise

App

yetone / magpie

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

★ 36,369stars on GitHubGoMIT

Repowise maps public repos from their source. Not affiliated with yetone. What is Repowise?

github.com/yetone/magpieIndexed at 1e28577

What is magpie?

magpie is an app and local gateway for choosing which model a coding agent uses, such as Claude Code or Codex. Each agent keeps its model setting in its own config file, and magpie edits that setting so the agent runs on a model from any provider you have added. magpie is written mainly in Go, with JavaScript for its web interface. To install it, run magpie provider add deepseek sk-… and follow the steps below. Its code health is 6.4 out of 10 (Fair), ranked #165 of 4,000+ indexed repos. The last commit to magpie was on Nov 12, 2026, and 6 people have contributed.

As of commit 1e28577, indexed Nov 12, 2026. What it is comes from a model reading the README; the rest is measured from the source and git history, not from the maintainer.

For agentsmagpie.md

Repo facts: type, license, health, rank, contributors
magpie facts
TypeApp
LicenseMIT
Code health6.4 / 10 (Fair)
Health rank#165 of 4,000+ indexed repos
Last commitNov 12, 2026
Contributors6
Bus factor1
Size8,168 files, 1,251,756 lines

Install magpie

Commands copied from the README

  1. 1Add a provider, such as DeepSeek, using its API key.
    magpie provider add deepseek sk-…
  2. 2Start Claude Code on DeepSeek.
    magpie claude deepseek/deepseek-v4-pro
  3. 3Open the whole magpie setup in a terminal interface.
    magpie tui

Full install notes on GitHub

Explore magpie

Ask about this code in your agent

This connects Repowise to magpie's code. It does not install magpie. To install magpie, use the install steps.

Useful if you want to change or fork magpie: your agent can ask how it is put together and get answers that cite its files.

Show the connect command (Claude Code, Cursor, Codex, VS Code)

Run it in a terminal, then type /mcp in Claude Code and sign in with Repowise. No key to paste.

Docs
bash
claude mcp add --transport http repowise https://api.repowise.dev/mcp/yetone/magpie
Claude Code, Claude, Cursor and VS Code sign you in on first use, free. Codex and Windsurf need an API key: sign in to create one.Sign in for a key

This repo is public, so anyone with a free Repowise account can connect.

Try asking

  • get_overview()
  • get_answer("how is magpie put together?")
  • get_why("why is magpie structured this way?")

Ask about magpie

Answers come from magpie's README and source, with the files they cite. Two free answers a day without an account.

Featured answer

magpie is an app and local gateway that lets you choose which model a coding agent such as Claude Code or Codex runs on, by editing each agent's own config file so it can use any provider you have added. It is written mainly in Go, with JavaScript for the web interface. The core code sits in the internal directory, which holds 7588 of the project's 8168 files, where internal/cli/main.go is the command line entry point and internal/gui/app.go starts the desktop window. The gateway listens at 127.0.0.1:3425 and accepts OpenAI Chat, OpenAI Responses, Anthropic Messages and Gemini requests, translating between them including streaming and tool calls, with provider handling under internal/provider. The layers by file count are CLI, API, Middleware, Application, Config, Service, and Docs & Tooling, and the site directory with site/worker.js is kept separate from the app code. To start reading, begin with internal/cli/main.go and internal/gui/app.go, then internal/provider for how providers are handled.

Files per layer in magpie7 layers.

Basis: Inferred · knowledge graph· as of 1e28577

Want this for your own codebase? Map your repo free

About this page

Get a page like this for your own codebase

Repowise built this map of yetone/magpie from its source and git history. It parses every symbol, draws the dependency graph, scores each file's health from complexity, duplication, coverage and churn, finds hotspots and owners in the history, and writes documentation for every module. Your coding agent reads the same index over MCP, so its answers cite real files.

Free for 2 public repos, with a page like this one. No card. See how Repowise works

Prefer local? pip install repowise && repowise init indexes your own checkout, no account needed. Star Repowise on GitHub

yetone/magpie FAQ

What is magpie?

magpie is an app and local gateway that lets coding agents such as Claude Code and Codex run on models from other providers. It can be used from a menu bar app, a desktop window, a terminal interface or the command line.

How does magpie work?

magpie runs a local gateway that translates requests between OpenAI, Anthropic and Gemini formats. You pick a model for each agent, and magpie rewrites that agent's own config to use it.

How do I install magpie?

magpie can be installed by downloading the app, with an install script, through go install or as a Docker image. After installing, add a provider and then pick a model for an agent. See the install steps

What language is magpie written in?

magpie is written mainly in Go, with JavaScript used for its web interface. The project also includes shell scripts and a small amount of C and C++ code.

How is the magpie code organized?

The internal directory holds most of the code, with the command line entry at internal/cli/main.go and the desktop app entry at internal/gui/app.go. Other top-level directories include plugins and site.

Who is magpie for?

magpie is for people who use more than one agent, more than one provider, or more than one account. If one agent on its vendor's own plan is enough, magpie is not needed.

What license does magpie use?

magpie is released under the MIT license, identified as MIT.

Code health

6.4out of 10Fair

Hotspots average 1.8, the place fixes pay off most.

On the leaderboards:#22 of 26 Go repos

Key features of magpie

  • Switch the model for any supported agent from one list, and magpie edits the model setting in that agent's own config.
  • When a quota runs out, a routing group can move the agent to another model or provider without the agent seeing the error.
  • Keys, passwords and emails in prompts are masked on your computer before the request is sent, once masking is turned on in Settings.
  • Shows tokens, cost, quota, sessions and context window use across your agents and accounts.
  • Profiles save every agent's setup under one name and switch them all together.

How yetone/magpie works

The internal directory holds 7588 of the project's 8168 files, and it contains the core code. internal/cli/main.go is the command line entry point, and internal/gui/app.go is the entry point for the desktop window. internal/gui/assets/app.js is the script that runs the web interface. The gateway at 127.0.0.1:3425 accepts requests in OpenAI Chat, OpenAI Responses, Anthropic Messages and Gemini formats and translates between them, including streaming and tool calls. Provider handling lives under internal/provider, and the site directory, which holds 20 files including site/worker.js, is separate from the app code.

The codebase has 8,168 files and 61,124 symbols in 8 modules, led by Go, JavaScript and Shell. Code health is 6.4 out of 10, rated fair.