Skip to content
aicoolies logo
Magpie logo

Magpie

One local gateway that lets any coding agent use any model or subscription

Open-source (MIT) menu bar app and local gateway by yetone that lets you pick any model for any coding agent: Claude Code on Kimi, Codex on DeepSeek, Gemini CLI on GLM or OpenCode on a ChatGPT plan. It translates between OpenAI, Anthropic and Gemini APIs, reuses API keys, local models and signed-in subscriptions, and fails over between accounts when a quota runs out. Free; anonymous daily usage stats are on by default.

About Magpie

Magpie is a desktop app and local gateway for people who use more than one coding agent, provider or account. Each agent normally keeps its model, keys and base URL in its own config format; Magpie puts them behind one app and a gateway at 127.0.0.1:3425 that speaks OpenAI Chat, OpenAI Responses, Anthropic Messages and Gemini and translates between them, including streaming, tool calls and reasoning. That lets Codex, which only speaks the Responses API, run on DeepSeek, or Claude Code run on Kimi or GLM.

From the menu bar or the Agents page you pick a provider/model for each agent and Magpie rewrites only the relevant key in that agent's own config; profiles switch every agent at once. The README lists dozens of supported agents, including Claude Code, Codex, Gemini CLI, OpenCode, Cursor CLI, Copilot CLI, Zed, Goose, Cline, Droid, Qwen Code and T3 Code, and anything that accepts an OpenAI, Anthropic or Gemini base URL can use the gateway. Providers come from presets (Anthropic, OpenAI, Gemini, Bedrock, DeepSeek, Kimi, GLM, MiniMax, Qwen, OpenRouter, Ollama, LM Studio and more) or any compatible URL.

Magpie can also reuse the Claude, ChatGPT, Copilot, Gemini or Grok plan an agent is signed in to by reading that agent's sign-in files (this discovery can be turned off), and routing groups move to the next account or model when one runs out, using strategies such as smart, in order or least used. Plugins running on Bun add providers or act as gateway middleware, and optional OpenTelemetry export sends metrics to your own collector.

Magpie is free and MIT-licensed and runs on macOS, Windows and Linux (menu bar app, window, TUI, web UI and CLI), in Docker and on Termux. Once a day a running instance sends one anonymous event to PostHog with a random install id, version, OS, and the ids of connected agents, providers and models; the agents/providers/models part can be turned off in Settings → Privacy. Check each model provider's terms before routing a subscription through a third-party gateway.

Pricing & Platform Specs

Pricing Summary

Magpie is free and open source under the MIT license. Model usage is billed by the providers or subscriptions you connect; Magpie itself charges nothing.

Supported Platforms

macOS 12+ (Apple Silicon and Intel), Windows and Linux as menu bar app, window, TUI, web UI and CLI; Docker image; Termux on Android

Explore categories, tags & use cases

Self-hosted proxy API for routing AI CLI accounts into OpenAI-compatible endpoints

CLIProxyAPI is an open-source Go proxy server that wraps Gemini CLI, Claude Code, OpenAI Codex, Grok Build, and related CLI account flows behind OpenAI/Gemini/Claude-compatible API endpoints. Use it carefully: it can touch OAuth sessions, auth files, logs, and provider account policies, so production use needs credential and ToS review.

Open SourceTelemetry

Community experience

Sources & verification

Sources checked
Content verified

Verification dates are editorial checks. Routine CMS saves and automatic updatedAt timestamps do not advance them.

FAQ

What is Magpie?

Open-source (MIT) menu bar app and local gateway by yetone that lets you pick any model for any coding agent: Claude Code on Kimi, Codex on DeepSeek, Gemini CLI on GLM or OpenCode on a ChatGPT plan. It translates between OpenAI, Anthropic and Gemini APIs, reuses API keys, local models and signed-in subscriptions, and fails over between accounts when a quota runs out. Free; anonymous daily usage stats are on by default.

Is Magpie free?

Yes — Magpie is open source and free to use. Magpie is free and open source under the MIT license. Model usage is billed by the providers or subscriptions you connect; Magpie itself charges nothing.

Is Magpie open source?

Yes — Magpie is open source.

Is Magpie still maintained?

Yes — Magpie is active. Its listing was last verified on October 20, 2026.

What are the best Magpie alternatives?

The first editor-selected Magpie alternatives are CLIProxyAPI.