Skip to main content
ToolPotion
AI Advisor
Submit a Tool (Free)

Magpie

Magpie is a local gateway that allows users to switch between various coding agents and their respective AI models from a single menu bar interface. It supports popular agents like Claude Code, Codex, and Gemini CLI, enabling flexible model selection from providers such as DeepSeek, Kimi, and GLM, while ensuring user secrets remain local and secure.

Visit Website
Share
Magpie screenshot
Magpie screenshot

Magpie serves as a unified local gateway for managing and switching AI models across multiple coding agents directly from your menu bar. It simplifies the process of selecting the optimal model for agents like Claude Code, Codex, Gemini CLI, OpenCode, and many others, integrating seamlessly with various AI providers such as DeepSeek, Kimi, GLM, OpenAI, Anthropic, and Google Gemini.

Read More

The tool operates by allowing users to add their existing AI model subscriptions and API keys from different vendors. Once configured, Magpie rewrites the agent's configuration to route requests through its local gateway, enabling dynamic model selection. This means you can assign specific models to individual agents, for instance, running Codex on DeepSeek or Claude Code on Kimi, and even switch between different tiers like Claude's Opus, Sonnet, and Haiku.

Key functionalities include the ability to create and switch between 'Profiles' that instantly change models for all agents simultaneously, catering to different workflows like 'Budget' or 'Focus'. Magpie prioritizes security by ensuring that user API keys and secrets never leave the local machine or reach the vendor directly through its gateway. It also offers advanced routing groups, allowing users to manage multiple accounts or keys for a single provider, or route one model across several providers based on criteria like cost, speed, usage, or expiry.

Magpie provides detailed usage statistics per agent and model, helping users monitor token consumption and costs. It supports failover mechanisms, rate limit awareness, and quota management to ensure continuous operation. The application is free, open-source, and available natively for macOS, Windows, and Linux, offering both a graphical user interface (GUI) and command-line interface (CLI) options for configuration and management.

Furthermore, Magpie offers sophisticated rule-based routing, enabling models to be selected based on turn characteristics such as length, presence of images, reasoning effort, specific agents, user intent, context compaction, or even the project folder. This allows for fine-grained control over model usage, optimizing for cost, speed, or specific task requirements. It also supports pausing models during certain hours or days, and managing groups of models for complex routing scenarios.

  • CategoryAI Coding Assistants
  • Pricing ModelFree
  • DeploymentLocal
  • PlatformsmacOS, Windows, Linux

  • Unified Model Switching for Coding Agents

  • Supports Claude Code, Codex, Gemini CLI, and more

  • Integrates with DeepSeek, Kimi, GLM, OpenAI, Anthropic, Google Gemini

  • Local Gateway for API Routing

  • Menu Bar Access for Quick Model Selection

  • User Secrets Remain Local and Secure

  • Customizable Profiles for Instant Agent Model Swaps

  • Advanced Routing Groups for Multiple Accounts/Providers

  • Rule-Based Routing (e.g., by cost, speed, usage, intent)

  • Usage Tracking per Agent and Model

  • Failover, Rate Limit, and Quota Management

  • Free and Open-Source Software

  • Native Support for macOS, Windows, and Linux

  • CLI and TUI (Text User Interface) Options Available

  1. Add Providers: Sign in to your subscriptions or paste API keys for various AI model vendors.

  2. Pick Models for Agents: Select a specific model for each coding agent from the Magpie interface.

  3. Configure Routing Groups: Set up advanced routing rules for multiple accounts, keys, or providers based on desired criteria.

  4. Start New Session: Agents will read their updated configuration and use the newly selected models in subsequent sessions.

  5. Manage Profiles: Save and apply profiles to switch models for all agents at once, optimizing for different tasks or budgets.

  6. Monitor Usage: Track token consumption and costs per agent and model to manage your AI expenses effectively.

  • Optimizing Coding Agent Performance
  • Managing AI Model Costs
  • Ensuring AI Service Continuity
  • Customizing Agent Behavior by Task
  • Securing AI API Keys
  • Streamlining Developer Workflows
  • Testing Different AI Models

Magpie Reviews

Loading...

Popular AI Tools Like Magpie

Conclave

AI Apps

Conclave is a self-hosted agent harness and hub that allows coding agents to run on your own computers using various AI models like Claude Code, Codex, Gemini CLI, and OpenCode.…

AI Agent Builders
View Tool

AI Apps

Self-hosted agent harness and hub that allows coding agents to run on your own computers using various AI models like Claude Code, Codex, Gemini CLI, and OpenCode.…Conclave is a self-hosted agent harness and hub that allows coding agents to run on your own computers using various AI models like Claude Code, Codex, Gemini CLI, and OpenCode.…

AI Agent Builders
See the Top 250 AI Apps

Magpie

AI GitHub Repos

Magpie is a GitHub repository that consolidates various AI models into one accessible platform. It offers Codex on DeepSeek and Claude Code on Kimi, providing users with a…

AI Coding Assistants

Ranked #170 in Coding & Development

View Tool

AI GitHub Repos

GitHub repository that consolidates various AI models into one accessible platform. It offers Codex on DeepSeek and Claude Code on Kimi, providing users with a…Magpie is a GitHub repository that consolidates various AI models into one accessible platform. It offers Codex on DeepSeek and Claude Code on Kimi, providing users with a…

AI Coding Assistants
Ranked #170 in Coding & Development

ZenMux

AI Apps

ZenMux is an enterprise LLM platform offering a unified API to 100+ AI models such as Claude, GPT, and Gemini, with intelligent routing, developer observability, and AI Model…

AI Agent Builders

Ranked #90 for Monitoring AI models

View Tool

AI Apps

Enterprise LLM platform offering a unified API to 100+ AI models such as Claude, GPT, and Gemini, with intelligent routing, developer observability, and AI Model…ZenMux is an enterprise LLM platform offering a unified API to 100+ AI models such as Claude, GPT, and Gemini, with intelligent routing, developer observability, and AI Model…

AI Agent Builders
Ranked #90 for Monitoring AI models

Open Interpreter is an open-source coding agent that runs in the terminal, forked from OpenAI's Codex and tuned to get strong performance out of low-cost and open-weight models.…

AI Coding Assistants

Ranked #27 in Automation & Agents

View Tool

Open-source coding agent that runs in the terminal, forked from OpenAI's Codex and tuned to get strong performance out of low-cost and open-weight models.…Open Interpreter is an open-source coding agent that runs in the terminal, forked from OpenAI's Codex and tuned to get strong performance out of low-cost and open-weight models.…

AI Coding Assistants
Ranked #27 in Automation & Agents

GuRouter

AI Apps

GuRouter is a unified AI API gateway that routes requests to over 40 leading AI models, including DeepSeek, OpenAI, Claude, and Gemini. It offers wholesale pricing with zero…

AI DevOps & Cloud Tools

Ranked #83 for Prompt Engineers

View Tool

AI Apps

Unified AI API gateway that routes requests to over 40 leading AI models, including DeepSeek, OpenAI, Claude, and Gemini. It offers wholesale pricing with zero…GuRouter is a unified AI API gateway that routes requests to over 40 leading AI models, including DeepSeek, OpenAI, Claude, and Gemini. It offers wholesale pricing with zero…

AI DevOps & Cloud Tools
Ranked #83 for Prompt Engineers

OpenCode

AI Apps

OpenCode is an open-source AI coding agent designed for privacy and flexibility. It allows users to connect any model from various providers, including Claude, GPT, and Gemini,…

AI Coding Assistants

Ranked #32 in AI Apps

View Tool

AI Apps

Open-source AI coding agent designed for privacy and flexibility. It allows users to connect any model from various providers, including Claude, GPT, and Gemini,…OpenCode is an open-source AI coding agent designed for privacy and flexibility. It allows users to connect any model from various providers, including Claude, GPT, and Gemini,…

AI Coding Assistants
Ranked #32 in AI Apps

Crazyrouter is a unified API gateway providing access to over 300 AI models, including Claude and GPT-5, through a single API key. It offers competitive pricing, with costs 20-50%…

AI Coding Assistants
View Tool

Unified API gateway providing access to over 300 AI models, including Claude and GPT-5, through a single API key. It offers competitive pricing, with costs 20-50%…Crazyrouter is a unified API gateway providing access to over 300 AI models, including Claude and GPT-5, through a single API key. It offers competitive pricing, with costs 20-50%…

AI Coding Assistants
See the Top 250 AI Apps

FlyRouter

AI Apps

FlyRouter is a production-grade LLM gateway providing a unified, OpenAI-compatible API for various models like Claude, GPT, and Gemini. It offers low latency, supports over 10…

AI DevOps & Cloud Tools

Ranked #120 for CTOs

View Tool

AI Apps

Production-grade LLM gateway providing a unified, OpenAI-compatible API for various models like Claude, GPT, and Gemini. It offers low latency, supports over 10…FlyRouter is a production-grade LLM gateway providing a unified, OpenAI-compatible API for various models like Claude, GPT, and Gemini. It offers low latency, supports over 10…

AI DevOps & Cloud Tools
Ranked #120 for CTOs
1 of 8