# yetone/magpie

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/yetone-magpie).**

_How this analysis was created: the description and tags below were written by an AI model that read this project's README and public documentation pages; stars, license and language come straight from the GitHub API. The model does not read the source code._

31,791 stars · 2,793 forks · Go · MIT

## Links

- GitHub: https://github.com/yetone/magpie
- Homepage: https://usemagpie.ai
- awesome-repositories: https://awesome-repositories.com/repository/yetone-magpie.md

## Topics

`claude-code` `codex` `deepseek` `gemini-cli` `llm` `macos`

## Description

Magpie is a local gateway for coding agents. It points tools such as Claude Code, Codex and Gemini CLI at models from any provider by writing each tool's own config file, so a user picks which model each agent runs on without editing configs by hand. The gateway translates between OpenAI Chat, OpenAI Responses, Anthropic Messages and Gemini formats while preserving streaming, tool calls and reasoning, so any client that accepts a base URL can reach any model.

Several features set it apart. Existing subscriptions, such as Claude, ChatGPT or Copilot plans, can be exposed as providers for every other agent, with multiple accounts per plan. Models, accounts and keys can be grouped under one name and balanced by order, rotation, usage, pace or renewal timing, with automatic failover when a quota runs out and optional routing by intent. A local masking layer replaces keys, tokens and personal data in prompts with placeholders before they leave the machine, restores the real values in replies, and lets users audit what was altered. Magpie also tracks tokens, cost, quota windows and sessions per key and account, and can export telemetry to OpenTelemetry or Langfuse.

Beyond routing, Magpie writes instructions, MCP servers, skills and subagents once into each agent's own file format. It also supports saved setup profiles and encrypted settings sync over WebDAV, S3 or a private repository. JavaScript plugins and middleware can add providers, search backends and new agents, or rewrite, reject and inspect requests. Other features include image and video generation tools, web search for models that lack it, embeddings and rerank endpoints, and sharing the gateway across a network with per-client keys and spending limits.

Magpie can be run from the app, a menu bar icon, a terminal screen or a browser console. A Docker image is also available that keeps all state in a single volume and protects access with a gateway key.

## Tags

### Artificial Intelligence & ML

- [LLM Gateways](https://awesome-repositories.com/f/artificial-intelligence-ml/agent-gateways/llm-gateways.md) — Runs a local gateway that routes coding agents to any model provider and translates between OpenAI, Anthropic and Gemini formats, preserving streaming, tool calls and reasoning.
- [Model Routing for Agents](https://awesome-repositories.com/f/artificial-intelligence-ml/agentic-systems-frameworks/integration-deployment/ai-agent-tooling/coding-agents/model-routing-for-agents.md) — Points coding-agent tools such as Claude Code, Codex and Gemini CLI at models from any vendor through one local gateway without hand-editing configs.
- [Agentic Traffic Routing](https://awesome-repositories.com/f/artificial-intelligence-ml/agentic-traffic-routing.md) — Points coding agents such as Claude Code, Codex and Gemini CLI at a local gateway so any chosen provider model serves them. ([source](https://github.com/yetone/magpie/blob/main/docs/reference.md))
- [Agent Model Switchers](https://awesome-repositories.com/f/artificial-intelligence-ml/agent-model-switchers.md) — Opens a searchable list of every provider model and rewrites the chosen agent's config in place, keeping comments and formatting. ([source](https://github.com/yetone/magpie#readme))
- [Model Group Request Routing](https://awesome-repositories.com/f/artificial-intelligence-ml/model-group-request-routing.md) — Groups models, accounts and keys under one name and spreads requests by order, rotation, usage, pace or soonest renewal. ([source](https://github.com/yetone/magpie#readme))
- [Multi-Provider LLM Gateways](https://awesome-repositories.com/f/artificial-intelligence-ml/multi-provider-llm-gateways.md) — Runs a local gateway that lets any base-URL tool reach models from any provider through format conversion with streaming and tool calls. ([source](https://github.com/yetone/magpie/blob/main/README.zh-CN.md))
- [Prompt Privacy Filters](https://awesome-repositories.com/f/artificial-intelligence-ml/prompt-privacy-filters.md) — Swaps keys, tokens and personal data for placeholders locally before prompts leave the machine, then restores the real values in replies. ([source](https://github.com/yetone/magpie#readme))
- [Quota Failover Routing](https://awesome-repositories.com/f/artificial-intelligence-ml/quota-failover-routing.md) — Switches to the next account or model automatically when a quota runs out, hiding the error from the agent. ([source](https://github.com/yetone/magpie#readme))
- [Subscription Reuse Across Agents](https://awesome-repositories.com/f/artificial-intelligence-ml/subscription-reuse-across-agents.md) — Exposes signed-in Claude, ChatGPT or Copilot plans as model providers for every other agent, with several accounts per plan. ([source](https://github.com/yetone/magpie#readme))
- [Agent Subscription Discovery](https://awesome-repositories.com/f/artificial-intelligence-ml/agent-subscription-discovery.md) — Reads existing sign-ins from agent tools, refreshes tokens, and shares each subscription's models with every other agent. ([source](https://github.com/yetone/magpie/blob/main/docs/reference.md))
- [Instruction and Tool Syncing](https://awesome-repositories.com/f/artificial-intelligence-ml/agentic-systems-frameworks/agent-capabilities-skills-tooling/agent-tooling/instruction-and-tool-syncing.md) — Writes instructions, MCP servers, skills and subagents once into each coding agent's own file format and removes only what it added. ([source](https://github.com/yetone/magpie#readme))
- [Model Provider Integrations](https://awesome-repositories.com/f/artificial-intelligence-ml/agentic-systems-frameworks/model-integration-serving/ai-model-orchestration/model-provider-integrations.md) — Offers presets for many vendors and any compatible endpoint, pulls model lists and reasoning tiers, and imports settings from other tools with per-key proxies. ([source](https://github.com/yetone/magpie/blob/main/README.zh-CN.md))
- [OpenAI-Compatible Endpoints](https://awesome-repositories.com/f/artificial-intelligence-ml/agentic-systems-frameworks/model-integration-serving/model-integration-interfaces/ai-integration-apis/openai-compatible-apis/anthropic-compatible-endpoints/openai-compatible-endpoints.md) — Serves OpenAI, Anthropic, Gemini and Ollama-compatible endpoints so any client can connect by URL, with optional gateway-key authentication. ([source](https://github.com/yetone/magpie/blob/main/docs/reference.md))
- [Provider Account Rotation](https://awesome-repositories.com/f/artificial-intelligence-ml/provider-account-rotation.md) — Rotates requests among multiple accounts of a subscription provider and starts usage windows early on a schedule. ([source](https://github.com/yetone/magpie/blob/main/README.zh-CN.md))
- [Web Search Tools](https://awesome-repositories.com/f/artificial-intelligence-ml/web-search-tools.md) — Searches on behalf of models that lack web search using ordered search services with multiple keys, and exposes search and page fetch tools to any agent. ([source](https://github.com/yetone/magpie#readme))

### Development Tools & Productivity

- [Format Translators](https://awesome-repositories.com/f/development-tools-productivity/github-api-integrations/copilot-api-integrations/api-proxies/format-translators.md) — Converts between OpenAI Chat, OpenAI Responses, Anthropic Messages and Gemini requests, covering streaming, tool calls and reasoning. ([source](https://github.com/yetone/magpie#readme))
- [Gateway Plugins and Middleware](https://awesome-repositories.com/f/development-tools-productivity/gateway-plugins-and-middleware.md) — Supports JavaScript plugins that add logins, providers and models, plus middleware that can rewrite, reject or inspect requests, events and responses. ([source](https://github.com/yetone/magpie/blob/main/README.zh-CN.md))

### Part of an Awesome List

- [Sensitive Data Redaction](https://awesome-repositories.com/f/awesome-lists/devtools/information-extraction/sensitive-data-identification/sensitive-data-redaction.md) — Replaces secrets and personal data such as keys, tokens, emails and card numbers with placeholders before requests leave the machine, restoring them in replies. ([source](https://github.com/yetone/magpie/blob/main/README.zh-CN.md))

### DevOps & Infrastructure

- [Account-Based Load Balancers](https://awesome-repositories.com/f/devops-infrastructure/account-based-load-balancers.md) — Orders multiple subscription accounts or keys per request by remaining quota and rate-limit state, keeping a conversation on its account to preserve cache. ([source](https://github.com/yetone/magpie/blob/main/docs/reference.md))

### Networking & Communication

- [LLM Provider Failovers](https://awesome-repositories.com/f/networking-communication/http-client-libraries/provider-rotation/llm-provider-failovers.md) — Groups models, accounts and keys under one name, balances requests by order, rotation or usage, and fails over when a quota runs out.
- [Shared Local Network Access](https://awesome-repositories.com/f/networking-communication/network-gateways/shared-local-network-access.md) — Opens the local gateway to other machines using named client keys with daily, weekly or monthly token and cost limits. ([source](https://github.com/yetone/magpie#readme))

### Security & Cryptography

- [Secret Masking](https://awesome-repositories.com/f/security-cryptography/secret-masking.md) — Replaces keys, tokens and personal data in prompts with placeholders locally, restores real values in replies, and lets users audit what changed.

### Software Engineering & Architecture

- [Gateway Middleware](https://awesome-repositories.com/f/software-engineering-architecture/core-business-logic/logic-hooks/gateway-middleware.md) — Runs JavaScript plugins that add providers or act as middleware, rewriting, rejecting or inspecting requests and responses through the gateway. ([source](https://github.com/yetone/magpie#readme))
- [Provider Plugins](https://awesome-repositories.com/f/software-engineering-architecture/integration-extensibility/extensibility/third-party-plugins/provider-plugins.md) — Installs provider plugins from published packages that sign in to subscriptions, list models and make requests on a downloaded JavaScript runtime. ([source](https://github.com/yetone/magpie/blob/main/docs/reference.md))

### System Administration & Monitoring

- [AI Usage Quota Tracking](https://awesome-repositories.com/f/system-administration-monitoring/power-optimization-utilities/cpu-power-management/cpu-quota-throttling/ai-usage-quota-tracking.md) — Shows account quota windows, tokens, spend in chosen currencies and per-session cost, with billing breakdowns and telemetry export. ([source](https://github.com/yetone/magpie/blob/main/README.zh-CN.md))
- [Subscription Plan Quota Checks](https://awesome-repositories.com/f/system-administration-monitoring/subscription-plan-quota-checks.md) — Pools several accounts and plans behind named groups that rotate, balance load and fail over automatically when a quota runs out.
- [Cost and Token Trackers](https://awesome-repositories.com/f/system-administration-monitoring/usage-monitoring/token-usage-analytics/cost-and-token-trackers.md) — Reports tokens, cache use, context fill, per-key quotas and estimated cost by account, with session history and observability export. ([source](https://github.com/yetone/magpie#readme))
