# yetone/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.

Source: https://github.com/yetone/magpie
Indexed: commit 1e28577 on 2026-11-12 by Repowise. Facts come from the source and git history, not from the maintainer.

## Facts

- Type: App
- Language: Go
- Stars: 36,444 at index time
- License: MIT
- Code health: 6.4/10, Fair
- Last commit: 2026-11-12
- Contributors: 6

## Install

From the README: https://github.com/yetone/magpie#quick-start

Claude Code:

Add a provider, such as DeepSeek, using its API key.
    magpie provider add deepseek sk-…

Start Claude Code on DeepSeek.
    magpie claude deepseek/deepseek-v4-pro

Open the whole magpie setup in a terminal interface.
    magpie tui

## How it 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.

- build/assetpack/main.go: entry point
- build/icon/gen.go: entry point
- internal/cli/main.go: entry point
- internal/gui/app.go: entry point
- internal/gui/assets/app.js: entry point
Modules: internal, plugins, site, third_party, .github, root, build, native. 8,168 files, 1,251,756 lines, 61,124 symbols.

## Code health

- Score: 6.4/10 (Fair)
- Rank: #165 of 4,000+ indexed repos
- Hotspots: internal/gui/assets/app.js, internal/gui/assets/i18n.js, internal/gui/assets/plugins/library/client.js, internal/provider/codex_projects.go, site/worker.js
- Lowest file: internal/gateway/gateway.go
- Dead code: 14 findings

## Maintenance

- Last commit 2026-11-12, 500 commits
- 6 contributors, bus factor 1

## Security

- Security findings are shown to signed-in users at https://repowise.dev/repo/yetone/magpie/security

## More

- Page: https://repowise.dev/repo/yetone/magpie
- Ask this codebase: https://repowise.dev/repo/yetone/magpie/chat
- Docs: https://repowise.dev/repo/yetone/magpie/docs
- MCP (signs in with Repowise on first use):
    claude mcp add --transport http repowise https://api.repowise.dev/mcp/yetone/magpie
