# Magpie alternatives for Codex and Claude Code

> Use Auto, the Mac app for all your coding agents: it runs them on the AI subscriptions you already pay for, puts models from other providers in the model picker you already use 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.

Author: Tyler J. Cagle (https://x.com/tjcages)
Published: 2026-11-17T22:55:00.000Z
Updated: 2026-11-19T23:45:00.000Z
Reading time: 9 min
Canonical: https://auto.sh/blog/magpie-alternatives
Part of: What is an LLM router? (https://auto.sh/blog/what-is-an-llm-router.md)
Publisher: Auto (https://auto.sh)

![Pick a Magpie alternative: Auto needs no keys. What do you want? You want Your plans, no keys: Auto; 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 Auto, read November 17, 2026.](https://auto.sh/blog/images/magpie-alternatives/1-which-alternative.png)

Use [Auto, the Mac app for all your coding agents](https://autorouter.com/), if you want every coding agent you use (Claude Code, Codex, Cursor, etc.) to share the AI subscriptions you already pay for without collecting keys or designing routes. It puts 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.

Auto 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 Auto](/compare/magpie) puts the two side by side in one table, and [the Magpie switch page](/switch/magpie) reads your providers.json and puts your agents back before you move over.

## 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). Auto: 1. Sign in to plans (Claude, ChatGPT, Grok, Gemini); 2. Pick Auto (/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 Auto, read November 17, 2026.](https://auto.sh/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 Auto different from Magpie?

Auto comes with models included and picks one for each task on its own, with no keys to add and no routes to design. Auto adds frontier and open-weight models to the model picker in every coding agent you use, curated and kept current by the Auto team. Choose a model to send requests straight to it, or choose Auto 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 Auto 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 the AI subscriptions you already pay for, and any of them can run in any of your coding agents, 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, Auto moves on to the account with the most room left before it spends any credit, with no group to build:

![Auto 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). Auto: 1. Plan hits its limit (Any connected plan); 2. Most room left next (Before any credit). Source: Magpie README, and Auto, read November 17, 2026.](https://auto.sh/blog/images/magpie-alternatives/3-plan-limit.png)

Auto Free costs $0 a month and connects two subscriptions. [Pro](/pricing) includes 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 its included 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. Auto runs on macOS 14 or later and works with Codex (the app and the CLI), the Claude Code CLI, Cursor, Claude Desktop, T3, OpenCode, Pi and Terminal. Its requests pass through Auto'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 ([Auto 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 Auto](/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                                      |
| ------------------ | ---------------------------------------------------- | ------------------------------------- | ----------------------------------------------------------------------------- | ------------------------------------------ |
| Auto               | Auto, 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.

If you want another Mac menu bar option, see [VibeProxy vs Auto](/compare/vibeproxy). If you already have your providers configured, see how to [switch from CC Switch to Auto](/switch/cc-switch).

## 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 Auto run on Windows or Linux?

No. Auto 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

- [Auto](https://autorouter.com/)
- [Auto 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

- [Which Portkey alternative fits your coding agents?](https://auto.sh/blog/portkey-alternatives-coding-agents.md): If you want a model router inside the coding agents you already use, Auto uses your AI subscriptions and picks a model for each task. If your team needs a shared gateway for every app, compare Portkey with a self-hosted gateway such as LiteLLM or Bifrost, or a hosted API such as OpenRouter.
- [Not Diamond alternatives for model routing](https://auto.sh/blog/not-diamond-alternatives.md): Use Auto, the Mac app for all your coding agents, if you want a model router where you already code: it picks a model for each task, runs on the AI subscriptions you already pay for, and puts models from different providers in the model picker you already use 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://auto.sh/blog/zenmux-alternatives.md): Use Auto, the Mac app for all your coding agents: it runs them on the AI subscriptions you already pay for, puts models from other providers in the model picker you already use 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.

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

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

Auto is a Mac app for AI model routing in Codex, Claude Code, Cursor and other supported coding agents. It uses eligible connected subscriptions first. See [setup](https://auto.sh/setup.md) and [pricing](https://auto.sh/pricing).
