# magpie

> Local gateway and menu bar app that routes coding agents like Claude Code and Codex to different LLM providers.

- Type: agent or tool
- Field: Developer Tools
- Repository: https://github.com/yetone/magpie
- GitHub stars: 42532
- Licence: MIT
- Language: Go
- Last push: 2026-11-27
- Page: https://imutechz.in/agents/magpie

## What it is
magpie puts every agent's model choice behind one app and one local gateway. You add providers by API key, local model or signed-in subscription, then pick a model for each agent. When a quota runs out it moves to the next account or routing group. It runs on macOS, Windows and Linux, in Docker and on Termux.

## Features
- Pick any model for Claude Code, Codex, Gemini CLI and others
- Failover to the next account or group when quota runs out
- Optional masking of keys and emails in prompts
- Menu bar app, window, TUI, web UI and CLI
- Profiles and a quota overview
- Built-in image, vision and search tools

## Best for
- Using several agents and providers
- Reusing a subscription across agents
- Automatic failover between accounts

## Pros
- Free of per-agent config editing
- Mac builds signed and releases attested
- MIT licensed

## Cons
- Masking is off by default
- With one account and no group, quota errors reach the agent

## Install
```
curl -fsSL https://usemagpie.ai/install.sh | sh
```

## Usage
```
magpie claude deepseek/deepseek-v4-pro
```

Tags: llm-gateway, claude-code, codex, model-routing, menu-bar, multi-provider, cli, failover
