# Magpie alternatives for Codex and Claude Code

Authors: AutoRouter
Author profile: https://autorouter.com/about
Published: 2026-11-17T22:55:00.000Z
Reading time: 9 min
Canonical: https://autorouter.com/blog/magpie-alternatives
Part of: What is an LLM router? (https://autorouter.com/blog/what-is-an-llm-router.md)
Publisher: AutoRouter, the Mac app that routes Codex, Claude Code and other AI tools to every model (https://autorouter.com)

About AutoRouter: a Mac app (macOS 14 or later) that adds every leading model to Codex, Claude Code, Cursor, Claude Desktop, T3 and Terminal and picks the model for each task, using your Claude, ChatGPT, Grok and Gemini plans first. Install from https://autorouter.com/AutoRouter.dmg, or ask your agent to follow https://autorouter.com/setup.md. Routing across your plans is free; Pro is $50 a month with $20 of included usage. Unrelated to OpenRouter's Auto Router.

> Use AutoRouter, the Mac app for Codex and Claude Code: it lets both apps share your Claude and ChatGPT plans, puts 20+ other models in both model pickers with no keys, and picks a model for each task on its own. Magpie is a free, open-source local gateway where you add each provider and design the routing yourself; CC Switch, Claude Code Router, CLIProxyAPI and OpenRouter are the other options.

![Pick a Magpie alternative: AutoRouter needs no keys. What do you want? You want Your plans, no keys: AutoRouter; You want One-click provider switching: CC Switch; You want Local rules you write: Claude Code Router; You want Sign-ins as an API: CLIProxyAPI; You want One hosted balance: OpenRouter. Source: each product's docs and repository, and AutoRouter, read November 17, 2026.](https://autorouter.com/blog/images/magpie-alternatives/1-which-alternative.png)

Use [AutoRouter, the Mac app for Codex and Claude Code](https://autorouter.com), if you want both apps to share your Claude and ChatGPT plans without collecting keys or designing routes. It puts 20+ frontier and open-weight models in the model picker you already use, sends each task to the model that fits, and moves to the account with the most room left when one plan hits its limit. [Magpie](https://github.com/yetone/magpie) is a free, open-source app that runs one local gateway for your coding agents: you add each provider with a key or a sign-in, then pick a model for each agent or build the routing groups yourself. [CC Switch](https://github.com/farion1231/cc-switch), [Claude Code Router](https://github.com/musistudio/claude-code-router), [CLIProxyAPI](https://github.com/router-for-me/CLIProxyAPI) and [OpenRouter](https://openrouter.ai/pricing) cover the other jobs people use Magpie for.

AutoRouter wrote this post, and Magpie is the product closest to it. Each claim about another product comes from that product's own README, docs or site, linked where it is used and read on November 17, 2026 unless the sentence says otherwise.

## What is Magpie?

Magpie is an MIT-licensed app by yetone that puts every coding agent's model choice in one place and serves them all from one local gateway at `127.0.0.1:3425` ([README](https://github.com/yetone/magpie)). The gateway speaks the OpenAI Chat, OpenAI Responses, Anthropic Messages and Gemini APIs and translates between them, so Claude Code can run on Kimi or Codex on DeepSeek. The repository was created on September 23, 2026, had about 38,000 GitHub stars on November 17, 2026, and shipped release 0.1.4401 that day.

- **Agents:** more than 80 listed in its README, among them Claude Code, Codex, Gemini CLI, OpenCode, Cursor CLI, Zed and Copilot CLI. Magpie edits the one key that matters in each agent's own config file.
- **Providers:** presets for Anthropic, OpenAI, DeepSeek, Kimi, OpenRouter, Ollama and many more, plus any OpenAI- or Anthropic-compatible URL. It can also offer the Claude, ChatGPT, Copilot, Gemini or Grok plan an agent is signed in to as a provider for your other agents.
- **Routing groups:** several models an agent picks as one, spread by a mode you choose (`smart`, `order`, `rotate`, `usage` or `pace`). [Intent routing](https://usemagpie.ai/docs/intent) adds rules you write, such as "writing or fixing tests", and a classifier model you choose that reads each new message.
- **Privacy masking:** off by default. Turned on, it swaps keys, tokens and emails in a prompt for placeholders on your computer before the request leaves, and puts them back in the reply.
- **Platforms:** a menu bar app, window, terminal UI, web UI and CLI on macOS, Windows and Linux, plus Docker and Termux. The [site](https://usemagpie.ai) lists no paid tier.

Magpie finds the subscriptions your agents are signed in to by reading their sign-in files and the Keychain, and a switch under Settings, Privacy turns that off. [Magpie vs AutoRouter](/compare/magpie) puts the two side by side in one table.

## Why look for a Magpie alternative?

People look past Magpie when they want the model choice made for them instead of designed by them. Magpie applies the model you pick for each agent. Groups and intent routes do more, but you choose the members, the mode, the intents and the model that classifies each message:

![In Magpie you design the routing yourself. Magpie: 1. Add each provider (A key or a sign-in); 2. Build a routing group (Members and a mode); 3. Write intent rules (Plus a classifier model). AutoRouter: 1. Sign in to plans (Claude, ChatGPT, Grok, Gemini); 2. Pick AutoRouter (/model or the model menu); 3. It picks each model (Your rules, then quality). Magpie routes only by the groups and rules you set up. Source: Magpie README and intent routing docs, and AutoRouter, read November 17, 2026.](https://autorouter.com/blog/images/magpie-alternatives/2-who-designs-routing.png)

- **Every provider is yours to add.** Each one needs its own key or sign-in, and you pay each provider separately.
- **A single account has nothing to fall back on.** Magpie's README says that with one account and no group, a quota error reaches the agent.
- **Intent routing has edges.** The classifier sees only the latest message and the list of intents, and when it answers none, times out or errors, the request is routed as if those rules weren't there ([intent routing](https://usemagpie.ai/docs/intent)).
- **Masking hides values from the model too.** A task about a masked value, such as why a token is refused, needs that value added to Never mask.
- **There is a lot to learn.** Providers, groups, plugins, gateway middleware, profiles and sharing each have their own settings.

None of that is a flaw if you want the control. It is the reason a Mac user who wants plans shared and a model picked for each task looks elsewhere.

## How is AutoRouter different from Magpie?

AutoRouter comes with models included and picks one for each task on its own, with no keys to add and no routes to design. AutoRouter, the Mac app for Codex and Claude Code, adds 20+ frontier and open-weight models to both apps' model pickers, curated and kept current by the AutoRouter team. Choose a model to send requests straight to it, or choose AutoRouter and it works out how hard each task is: your plain-English rules go first, then it considers only models that clear the quality bar for the task. Hard work goes to the strongest model your plans cover, and quick work to the one that costs you least.

The landing page's examples show what that looks like (real routes follow your plans and rules): a commit message is quick work, so a low-cost open model writes it and the plan isn't touched, while a test that only fails on CI is hard, so it goes to GPT-6 Astra on the ChatGPT plan. Every request shows its model, what it cost and why. [How AutoRouter picks a model](/blog/how-autorouter-picks-a-model) walks through each step.

1. Download AutoRouter for macOS from [autorouter.com](https://autorouter.com).
2. Open it, sign in or create a free account, sign in to your plans, allow Accessibility, and click Enable for each app.
3. Start a new session and choose AutoRouter as the model: in Codex, from the model menu under the message box; in Claude Code, with `/model`.

Connect Claude, ChatGPT, Grok and Gemini plans, and any of them can run in either app, so your Claude plan works inside Codex and your ChatGPT plan inside Claude Code ([how that works](/blog/claude-in-codex-and-gpt-in-claude-code)). When one account reaches its limit, AutoRouter moves on to the account with the most room left before it spends any credit, with no group to build:

![AutoRouter moves on with no group to build. Magpie, one account: 1. Quota runs out (No group set up); 2. Error reaches agent (Nothing to move to). Magpie, routing group: 1. Quota runs out (In a group you built); 2. Next member answers (By the group's mode). AutoRouter: 1. Plan hits its limit (Any connected plan); 2. Most room left next (Before any credit). Source: Magpie README, and AutoRouter, read November 17, 2026.](https://autorouter.com/blog/images/magpie-alternatives/3-plan-limit.png)

AutoRouter Free costs $0 a month and connects two subscriptions. Pro costs $50 a month with $20 of included usage each month, connects any number of plans and adds every other model at the provider's price plus 10%. New accounts get a week of Pro, or until $20 of usage is spent, whichever comes first.

The trade-offs are real. Magpie is free and open source, runs on macOS, Windows and Linux, supports far more agents, and sends requests from your machine to the providers you add. AutoRouter runs on macOS 14 or later and works with Codex (the app and the CLI), the Claude Code CLI, Cursor, Claude Desktop, T3 and Terminal. Its requests pass through AutoRouter's servers on their way to each provider; it doesn't store transcripts, but keeps the message that opens each request, up to 4,000 characters, to review routing ([AutoRouter privacy](https://autorouter.com/privacy)).

## Which other Magpie alternatives are there?

Four more tools cover what people use Magpie for, each best at one job:

- **CC Switch** is best if you want to switch providers in one click and keep requests going straight to each provider. It is an MIT-licensed desktop app, built with Tauri 2 for macOS, Windows and Linux, with 90+ provider presets and Direct, Routing and Aggregation modes; Routing converts API formats on your machine and fails over through a queue you set ([README](https://github.com/farion1231/cc-switch), version 4.0.34). It had about 155,000 GitHub stars on November 17, 2026. [CC Switch vs AutoRouter](/compare/cc-switch) compares it in depth.
- **Claude Code Router** is best if you want a local gateway with routing rules you write. It sends Claude Code, Codex and other agents to the providers and models you choose, with your API keys or an imported local sign-in ([GitHub](https://github.com/musistudio/claude-code-router), read November 16, 2026). [Claude Code Router alternatives](/blog/claude-code-router-alternatives) covers its field.
- **CLIProxyAPI** is best if you want a proxy server that turns CLI sign-ins into OpenAI, Gemini and Claude-compatible API endpoints for any client. You run the server, its config and its updates yourself ([README](https://github.com/router-for-me/CLIProxyAPI)). [CLIProxyAPI alternatives](/blog/cliproxyapi-alternatives) walks through setup.
- **OpenRouter** is best for one prepaid balance across hundreds of models with nothing to run. Claude Code connects with three environment variables, and OpenRouter charges a 5.5% fee on credit purchases on its Standard plan ([guide](https://openrouter.ai/docs/cookbook/coding-agents/claude-code-integration), [pricing](https://openrouter.ai/pricing), read November 16, 2026). [OpenRouter alternatives](/blog/openrouter-alternatives) compares the hosted options.

They differ most in who picks the model and what pays for requests:

| Tool               | Who picks the model                                  | Runs on                               | What pays                                                                     | Setup                                      |
| ------------------ | ---------------------------------------------------- | ------------------------------------- | ----------------------------------------------------------------------------- | ------------------------------------------ |
| AutoRouter         | AutoRouter, per task, after your rules               | macOS 14 or later                     | Your Claude, ChatGPT, Grok and Gemini plans first; Pro usage for other models | Install, sign in to plans, click Enable    |
| Magpie             | You, per agent, or groups and intent rules you build | macOS, Windows, Linux, Docker, Termux | Your provider keys and signed-in plans                                        | Add providers, pick a model per agent      |
| CC Switch          | You, by switching providers                          | macOS, Windows, Linux                 | Your provider keys and signed-in accounts                                     | Add a provider from a preset, click Enable |
| Claude Code Router | Rules you write                                      | Your machine                          | Your API keys or imported sign-ins                                            | Add providers and keys, write rules        |
| CLIProxyAPI        | Your client names the model                          | Your machine or server                | The accounts you sign in to, or upstream keys                                 | Install, config file, log in each account  |
| OpenRouter         | You, by model ID                                     | OpenRouter's cloud                    | OpenRouter credits, 5.5% fee on purchases                                     | API key and three variables                |

[What is an LLM router?](/blog/what-is-an-llm-router) explains the kinds of routers these tools are built on, and [Model routers for Claude Code and Codex, compared](/blog/model-routers-claude-code-codex) lines up more of them.

## Questions

### Is Magpie free?

Yes. Magpie is MIT licensed, and its site lists no paid tier ([usemagpie.ai](https://usemagpie.ai)). You pay the providers and plans you connect to it separately.

### Does Magpie work with Codex and Claude Code?

Yes. Both are on its list of supported agents, and its CLI sets them with commands such as `magpie claude deepseek/deepseek-v4-pro` and `magpie codex moonshot/kimi-k2.5` ([README](https://github.com/yetone/magpie)). The next session uses the new model.

### Is yetone's Magpie the same as the Magpie window upscaler?

No. The coding agent gateway is [yetone/magpie](https://github.com/yetone/magpie), at usemagpie.ai. [Blinue/Magpie](https://github.com/Blinue/Magpie) is an unrelated Windows app that upscales game windows, and Magpie's README says it is not affiliated with Apache Magpie.

### Does AutoRouter run on Windows or Linux?

No. AutoRouter runs on macOS 14 or later, and Claude Code needs Node 22.18 or later. On Windows or Linux, Magpie, CC Switch, Claude Code Router and CLIProxyAPI all run.

## Sources

- [AutoRouter](https://autorouter.com)
- [AutoRouter privacy](https://autorouter.com/privacy)
- [Magpie on GitHub](https://github.com/yetone/magpie), read November 17, 2026
- [Magpie](https://usemagpie.ai), read November 17, 2026
- [Magpie: intent routing](https://usemagpie.ai/docs/intent), read November 17, 2026
- [Blinue/Magpie on GitHub](https://github.com/Blinue/Magpie)
- [CC Switch on GitHub](https://github.com/farion1231/cc-switch), read November 17, 2026
- [Claude Code Router on GitHub](https://github.com/musistudio/claude-code-router), read November 16, 2026
- [CLIProxyAPI on GitHub](https://github.com/router-for-me/CLIProxyAPI), read November 17, 2026
- [OpenRouter: Claude Code integration](https://openrouter.ai/docs/cookbook/coding-agents/claude-code-integration), read November 16, 2026
- [OpenRouter pricing](https://openrouter.ai/pricing), read November 16, 2026

## Read next

- [Not Diamond alternatives for model routing](https://autorouter.com/blog/not-diamond-alternatives.md): Use AutoRouter, the Mac app for Codex and Claude Code, if you want a model router for the coding agents you already use: it picks a model for each task, lets both apps share your Claude and ChatGPT plans, and puts 20+ models in both model pickers with no keys. Not Diamond is a routing API for developers building their own apps; OpenRouter's Auto Router, RouteLLM, Requesty Auto Routing and the Martian Gateway are the other options.
- [ZenMux alternatives for Codex and Claude Code](https://autorouter.com/blog/zenmux-alternatives.md): Use AutoRouter, the Mac app for Codex and Claude Code: it lets both apps share your Claude and ChatGPT plans, puts 20+ other models in both model pickers with no keys, and picks a model for each task on its own. ZenMux is a hosted LLM gateway paid from its own credits or Builder Plan; OpenRouter, Requesty, Portkey and LiteLLM are the other options people weigh against it.
- [CLIProxyAPI alternatives for Codex and Claude Code](https://autorouter.com/blog/cliproxyapi-alternatives.md): Use AutoRouter, the Mac app for Codex and Claude Code: it pools the Claude, ChatGPT, Grok and Gemini plans you already pay for across both apps with no local server, config or keys, adds 20+ models to the model picker and moves to the account with the most room left when one hits its limit. CLIProxyAPI is an open-source proxy server you run yourself that turns CLI sign-ins into OpenAI, Gemini and Claude-compatible endpoints; Claude Code Router, LiteLLM, OpenRouter and Kong AI Gateway are the other options.

Tags: [Comparisons](https://autorouter.com/blog/tags/comparisons.md), [Model routing](https://autorouter.com/blog/tags/model-routing.md), [Claude Code](https://autorouter.com/blog/tags/claude-code.md)

Drafted with AI from the sources linked above, then checked and edited by the AutoRouter team.
