Skip to content
Sign in
  • Browse all toolsFilter by category and pricing
  • Browse categoriesWriting, code, image, audio and more
  • Compare toolsPut up to three side by side
  • Read the blogGuides and comparisons

magpie

A local gateway for choosing models, sharing subscriptions and masking secrets across coding agents.

magpie is a free, open-source local model gateway that connects coding agents to different providers, translates APIs and manages model selection. Built for developers using tools such as Codex, Claude Code and Gemini CLI, magpie is available for macOS, Windows and Linux under the MIT license.

Updated 15 Nov 20266 sections

At a glance

Pricing
Freemagpie is free and MIT-licensed. Provider access uses added API keys, local servers or existing subscriptions.
Added
15 Nov 2026
magpie website screenshot

What is magpie?

magpie is a local model gateway and agent configuration application for developers using coding assistants. magpie lets supported agents use models from different vendors rather than relying only on their native provider. The application connects tools such as Codex, Claude Code and Gemini CLI to providers including DeepSeek, Kimi, GLM, OpenRouter and Ollama. magpie is free, open source and available for macOS, Windows and Linux.

What magpie can do

magpie combines model selection, request translation and account management in a local application. The gateway supports OpenAI Chat, OpenAI Responses, Anthropic Messages and Google Gemini APIs, with translation for streaming, tool calls and reasoning. Alongside model access, magpie provides controls for privacy masking, routing and usage visibility, allowing developers to manage how supported agents send requests and which accounts answer them.

  • magpie assigns a model to each supported agent.
  • magpie saves profiles that switch agent configurations together.
  • magpie masks sensitive values locally and restores placeholders in replies.
  • magpie routes turns by intent and keeps their tool rounds on the selected model.
  • magpie retries requests through another account when an account cannot answer.
  • magpie reports tokens, cache hits and cost by agent and model.

How magpie works

magpie runs a gateway on the user's computer and rewrites the selected agent configuration keys when a model changes. The next agent session uses the new selection, while choosing the native model restores the previous configuration. Providers can be added with an API key, and local servers such as Ollama need no key. Existing supported agent sign-ins can also become providers, with tokens refreshed through the agent's authentication method.

  • magpie offers a menu bar interface, TUI and CLI.
  • magpie discovers available models by querying providers.
  • magpie accepts gateway clients with a configurable base URL.

Who magpie is for

magpie serves developers working with coding agents who want to choose models independently of the agent interface. The documented workflows include using DeepSeek in Codex, Kimi in Claude Code and subscription-backed models in other agents. Saved profiles support switching configurations for different work contexts, while intent-based routing allows users to describe which models should handle tasks such as quick questions or writing and fixing tests.

  • magpie supports trying different providers without changing the coding agent.
  • magpie supports sharing existing subscription access across supported agents.
  • magpie supports masking secrets found in prompts, configuration files and logs.

magpie pricing and access

magpie is offered free of charge under the MIT license, with source code on GitHub. The website provides application downloads and a terminal installation command. Model access comes from the providers, local servers and existing subscriptions users connect; magpie can reuse supported Claude, ChatGPT and GitHub Copilot sign-ins. The free application is therefore distinct from any provider account or subscription used to supply models.

magpie strengths and limitations

magpie combines cross-provider API translation with configuration edits that preserve comments, ordering and indentation. Provider keys remain in magpie rather than being exposed to agents, and masked secret values are held in memory. Privacy masking also has a task-specific constraint: a model sees placeholders instead of the original values, so work that requires inspecting a sensitive value needs an explicit Never mask exception.

  • magpie requires users to add providers explicitly rather than reading API keys from shell environment variables.
  • magpie needs a Never mask exception when a task depends on the sensitive value itself.
  • magpie holds requests back if privacy masking cannot run.

magpie FAQ

What is magpie?

magpie is a free, open-source local gateway for connecting coding agents to different model providers. magpie translates between supported APIs and lets developers select models for tools such as Codex, Claude Code and Gemini CLI.

Is magpie free?

magpie is free and MIT-licensed, with source code available on GitHub. Model access uses the provider API keys, local servers or existing subscriptions users connect, rather than a stated bundled model allowance.

Which operating systems does magpie support?

magpie supports macOS, Windows and Linux. magpie provides application downloads, a terminal installer, a TUI and a CLI, and the page also identifies a terminal-only Windows build.

Can magpie use existing AI subscriptions?

magpie can use existing supported agent sign-ins as providers, including Claude Pro or Max, ChatGPT Plus or Pro, and GitHub Copilot. Models from those accounts appear in other agents' model pickers without manually copying authentication tokens.

How does magpie protect secrets in prompts?

magpie replaces detected sensitive values with placeholders locally before requests reach a vendor, then restores those values in replies, including streamed text and tool calls. Masked values stay in memory, and requests are held back if masking cannot run.

Does magpie work with Ollama and custom gateway clients?

magpie supports Ollama as a local provider without requiring an API key. magpie also supports gateway clients with configurable base URLs, including settings for OpenAI, Anthropic and Google Gemini API access.

From the community

No reviews yet

Be the first to review this tool. What you write helps the next person choose.

More tools like magpie

Claude Code Router

www.github.com

A local model gateway for routing coding agents across providers, models, accounts, and tools.

Free

Free Claude Code

www.github.com

Connect coding agents to free, paid, subscription, and local models through a searchable model catalog.

Free

New API

www.github.com

Self-hosted AI gateway for model routing, API access control, usage tracking, and cost accounting.

Free

GPT Engineer

www.github.com

Open-source CLI for generating code from natural-language instructions and improving existing projects.

Free