Magpie
yetone/magpieAI 已审核
用途
magpie 是一个小应用加一个本地网关,用来决定你的每个编程代理该调用哪个 AI 模型,这样 Claude Code 就能跑在 Kimi 上,Codex 可以跑在 DeepSeek 上。你添加各服务商的密钥,或者使用代理已经登录的订阅账号,magpie 会改写每个代理自己的配置,并把请求路由经过 127.0.0.1:3425。它可以在额度用尽时切换到你的下一个账号,显示 token 数和费用,遮盖提示中的敏感信息,还能用 Docker 运行在服务器上。它适合同时使用多个代理、服务商或账号的人。
安装难易度
B · 安装程序加一个简单步骤 · Windows
- Windows B
- macOS B
- Linux C
macOS 和 Windows 评级为 B:每个发布版本都有现成的 .dmg 和 .exe(README 说 Mac 构建版经过签名和公证,并会自动更新),唯一多出的步骤是添加一个服务商密钥或登录账号。Linux 评级为 C,因为安装脚本可能会先通过你的包管理器用 sudo 安装 WebKitGTK,或者退回到终端版本。
GitHub 数据
- 星标
- 26,9562026年10月31日
- 下载量
- 114,407本周 55,838
- 增长
- +4,3525 天内新增星标
星标变化
事实
- 可运行于
- Windows, macOS, Linux
- 需要安装
- 只需程序本身
- 从源码编译需要
- Docker, Go
- 磁盘空间
- 72 MB–215 MB · 根据安装程序
- 账号或密钥
- At least one model provider key or signed-in subscription, OpenAI, Anthropic, Google Gemini
- 费用
- 免费,API 另行收费 · 该应用免费(MIT 许可证)。它把请求路由到你自己付费的模型服务商和计划;也可以指向通过 Ollama 或 LM Studio 运行的本地模型。
- 许可证
- MIT (宽松型)
- 可以替代
- OpenRouter, Portkey
- 最近更新
- 2026年11月1日
风险信号 (8)
- 注意很新的仓库却有大量星标
38 天内获得 26968 个星标
自动检查
- 注意把你的订阅提供给其他程序使用
README 的 'Subscriptions' 部分:'Codex / ChatGPT: your ChatGPT plan's models, in every other agent',还有 'Add several accounts per subscription and magpie fails over between them' 以及一个 'Daily warm-up',会 'starts each Claude and ChatGPT account's 5-hour window at the times you choose'。每家服务商各自的条款决定了某个计划是否可以这样使用,以及能否跨多个账号使用。
AI 审核
- 注意读取你电脑上已登录的账号信息
README 写道:'magpie finds the subscriptions your agents are signed in to by reading their sign-ins (Claude Code's and Codex's files, the Keychain).' 可以通过 'Settings → Privacy → Subscription accounts' 或 'magpie accounts discovery off' 来关闭这个功能。
AI 审核
- 注意安装过程把远程脚本直接传给 shell 执行
README 的快速开始:'curl -fsSL https://usemagpie.ai/install.sh | sh',细则提到在没有 WebKitGTK 4.1 的 Linux 上,脚本会 'with your package manager (sudo asks for your password)' 来安装它。
AI 审核
- 注意插件能看到每一个请求
README 的 'Plugins' 部分:插件是从 npm 安装的('magpie plugin add opencode-gemini-auth'),并且 'run on Bun, downloaded the first time one needs it'。插件还可以是 'gateway middleware: JavaScript that sees what every agent sends and gets back',能够改写或拒绝某个请求。
AI 审核
- 注意遥测功能默认开启
README 的 'Privacy' 部分:'Once a day a released magpie tells us it is in use: a random id, its version and system, and which agents, providers and models it is used with.'(每天一次,发布版的 magpie 会告知我们它在被使用:一个随机 id、版本和系统,以及使用了哪些代理、服务商和模型)。可以在 Settings → Privacy 中关闭,或设置 DO_NOT_TRACK=1。合作伙伴链接会经过 'usemagpie.ai/go/…, which counts the click',图标则通过 usemagpie.ai/api/icon 获取。
AI 审核
- 信息付费合作伙伴会优先显示
README 中有一行 Sponsors(APINEBULA、零词元、Kimi、APIKEY.FAN、WandAPI、AIGoCode),隐私部分会统计 'for each partner listed first in the add sheet, how many times a day it was shown, opened and added',也就是说应用内的服务商列表会把合作伙伴排在前面。
AI 审核
- 信息敏感信息遮盖默认关闭,需要手动开启
README 写道:'once you turn masking on in Settings → Privacy (it's off by default), keys, passwords and emails in a prompt are masked on your computer before the request leaves it'。可选的本地检测模型是 'a 1.6 GB download, on the CPU'。
AI 审核
证据以原始语言显示。
Radar 无法验证的内容
- 列出的每个代理和服务商在实际中是否都能用
- 服务商是否会封锁或关闭以这种方式使用的账号
- 遮盖规则在真实提示中能多大程度上识别出敏感信息,又会漏掉什么
- 你添加的 npm 插件会如何处理它们看到的请求
- 你在所路由的各个服务商和计划上总共会花多少钱