中文简介
magpie(yetone 出品)的口号是 Every agent’s model. One place.:所有 AI 编程 agent 的模型,一个地方统一管。Claude Code 跑 Kimi、Codex 跑 DeepSeek、Gemini CLI 跑 GLM——菜单栏点一下就切,背后是一个本地网关在统一调度。项目 2026 年 9 月公开,已有 1.3 万 Star。
- 任意模型配任意 agent:一个本地网关(127.0.0.1:3425)同时说 OpenAI Chat / Responses、Anthropic Messages、Gemini 三种协议并互相翻译,支持 50+ 种 agent(Claude Code、Codex、Gemini CLI、OpenCode、Zed、VS Code、Cursor、Kimi Code、WorkBuddy 等);
- Provider 预设丰富:Anthropic、OpenAI、DeepSeek、Kimi、智谱 GLM、Qwen、OpenRouter、Groq、SiliconFlow、Ollama、LM Studio 等,粘贴 Key 即用,也支持任意兼容 URL;
- 订阅即 Provider:已经登录的 Claude 订阅、ChatGPT 计划、GitHub Copilot、Gemini 等可以直接变成所有 agent 共用的模型源,多账号自动故障转移;
- 路由组(Routing groups):把多个模型/账号编成一组(smart / order / rotate / usage / pace 等模式),一个配额用完悄悄切到下一个,agent 完全无感;
- 用量成本追踪:Token、缓存命中、推理量、调用次数按美元/人民币计价,每个会话的成本一目了然;
- 其他:插件系统(含网关中间件)、局域网分享、WebDAV 云同步、Docker 部署、TUI/网页/CLI 多种界面。
安装一条命令:curl -fsSL https://usemagpie.ai/install.sh | sh(Mac 构建已签名公证),或去官网下载。macOS / Windows / Linux / Docker / Termux 全支持,MIT 开源。跟 cc-switch 同类,都是统一管理多 agent 模型入口的工具,可以对比着看。
English Summary
magpie (by yetone) — Every agent’s model. One place. One app to manage models for all your AI coding agents: Claude Code on Kimi, Codex on DeepSeek, Gemini CLI on GLM — switch any of them from the menu bar, with one local gateway doing the routing. Public since September 2026, 12.8K stars.
- Any model, any agent: a local gateway (127.0.0.1:3425) speaks OpenAI Chat / Responses, Anthropic Messages and Gemini, translating between them; 50+ agents supported (Claude Code, Codex, Gemini CLI, OpenCode, Zed, VS Code, Cursor, Kimi Code, WorkBuddy and more);
- Rich provider presets: Anthropic, OpenAI, DeepSeek, Kimi, Zhipu GLM, Qwen, OpenRouter, Groq, SiliconFlow, Ollama, LM Studio and more — paste a key and go, plus any compatible URL;
- Subscriptions as providers: a signed-in Claude subscription, ChatGPT plan, GitHub Copilot or Gemini becomes a model source for every agent, with automatic failover across accounts;
- Routing groups: bundle models/accounts into one virtual model (smart / order / rotate / usage / pace modes) — when a quota runs out it quietly moves on, the agent never sees the error;
- Usage & cost tracking: tokens, cache hits, reasoning and calls priced in dollars or yuan, per-session cost at a glance;
- More: plugin system (incl. gateway middleware), LAN sharing, WebDAV sync, Docker deployment, TUI / web / CLI interfaces.
Install with curl -fsSL https://usemagpie.ai/install.sh | sh (Mac builds are signed and notarized) or download from the website. Runs on macOS, Windows, Linux, Docker and Termux. MIT licensed. In the same space as cc-switch — both unify model access across agents, worth comparing.
链接 / Links
- 项目主页 / Repository: https://github.com/yetone/magpie
- 官网 / Website: https://usemagpie.ai

评论(0)
暂无评论