Summary: Magpie brings model access, credentials, and usage tracking for multiple AI coding tools into one gateway. This guide examines remote sharing, licensing, quota controls, and Codex caching, then compares it with CodexManager and Codex Pooler.
Verified: November 8, 2026, China Standard Time (UTC+8). GitHub star snapshot: 22:29 CST.
When working with Codex, Claude Code, and other agents, the friction often comes from scattered configurations, logins, and quotas rather than the models themselves. Magpie consolidates those connections: the coding tools stay familiar while the gateway manages model sources and call records.
This article draws on official documentation, current source code, GitHub issues, and public X posts. It is not a hands-on review: no installation, model calls, or load tests were performed. The project discussed is yetone/magpie, linked from usemagpie.ai, not another project with the same name.
02
Personal use or a shared server
Magpie has desktop, terminal UI, and command-line interfaces. Its official image, ghcr.io/yetone/magpie, can run on a server or NAS. Documented endpoints include Responses, Chat Completions, and Anthropic Messages. Other computers can call the gateway using its address and an access key; it is not limited to the local machine.
But supporting several callers is different from being a complete SaaS product.
The remote-sharing documentation describes a gateway key for each client, with controls over models, upstream accounts, tokens, and estimated spending. Key holders can also inspect their own quota and usage at /me. This research found no official commitment to a complete customer-registration system, organizational workspaces, subscription payments, or tenant-level administration. Accounting by key is not identity management: several people sharing a key remain indistinguishable in that ledger.
The server management interface uses a separate administrative secret. The documentation warns that anyone holding its management link can change Magpie and see keys. It should not be exposed as a customer portal. The Docker guide recommends keeping management access local or behind a VPN, and using HTTPS for network access.
The actual MIT license permits commercial use, modification, distribution, and sale, subject to retaining the required notices. Permission to commercialize the software does not grant permission to resell Claude, ChatGPT, or another upstream subscription. A paid service still needs to comply with upstream contracts and account authorization.
03
Credentials and quotas are different problems
Magpie manages supported model credentials, not arbitrary website passwords:
- Upstream API keys: credentials for providers or compatible endpoints, including multiple keys.
- Subscription sign-ins: vendor logins such as Claude, ChatGPT, and Copilot, plus services supported through plugins.
- Local authorization discovery: supported agents' existing login records; discovery can be disabled, and encrypted-storage compatibility varies by operating system.
- Downstream gateway keys: access credentials issued to clients, rather than copies of the original provider secrets.
Documented interface locations include Providers → + Add provider, Settings → Network and sharing, and Gateway → Gateway keys. See the getting-started guide and reference.
Usage tracks input, output, cache-read and cache-write tokens, requests, and cost. Requests provides individual call records and filters. Dimensions include model, agent, provider, upstream account, upstream key, and client key. Normally this covers requests passing through the gateway; calls made directly to a vendor do not automatically join its ledger.
Three quantities must remain separate:
Recorded usage describes consumption. Estimated cost uses known or manually configured prices. Remaining vendor quota requires information from the upstream service. Missing prices do not produce an accurate bill, and token counts cannot establish the exact balance of a subscription that exposes no quota interface.
The remote guide explains that quota cards reflect information last read by the server. Failed refreshes retain old values with their date; a remote card can be refreshed at most once every 30 seconds. This is not a real-time financial ledger.
Gateway keys can have periodic token or spending limits. Exceeding a limit produces 429 responses. Keys can also be disabled, rotated, deleted, or issued temporarily. However, in-flight requests settle after completion and may cause an overshoot, so the budget is not an absolute spending ceiling. Expiry and revocation control access; they do not change the vendor's own allowance.
The quota-alert implementation supports usage-percentage, low-balance, and approaching-reset alerts. Desktop notifications require operating-system permission. No explicit evidence of Magpie email or webhook quota alerts was found. Desktop notification support should not be assumed to cover a headless server.
04
Does forwarding Codex break prompt caching?
The answer depends on the route, not simply on whether Magpie is involved.
Codex to an OpenAI API or Responses-compatible upstream
prompt_cache_key belongs in the request body; it is not a generic caching header. Current tests check key preservation and stable history prefixes and tool lists. There is also handling to retry without an unsupported field when a compatible upstream explicitly rejects it.
Codex to the ChatGPT subscription backend
This path normalizes the body and handles Codex instructions. It is not a byte-for-byte transparent proxy. The current implementation retains the client's key and uses it for session-id and thread-id. It also removes prompt_cache_options, which that backend does not support. Ordinary OpenAI API documentation does not establish every behavior of the subscription backend.
There has been a real caching regression. Issue #1473 reported repeated zero cache hits for requests containing tools in v0.1.1150. Older underscore-style session headers could be dropped by intermediate proxies. Commit 437bf023 switched to hyphenated headers; v0.1.1163 was released on October 10. The reporter confirmed recovery. Remaining misses were traced to client-side Auto-Learn changing the tools and system prompt. The issue is closed.
Codex to Anthropic Messages
This is protocol conversion. It uses Anthropic's cache_control, not a transplanted OpenAI cache key. The gateway-routing documentation describes automatic one-hour cache markers when translating Responses to Claude, while preserving explicit client markers. Issue #3972 has TTL-related changes but remains open. Some reports of zero cache reads have no independently established root cause; the discussion cannot be described as fully resolved.
OpenAI's caching guide requires matching reusable prefixes. Models, tool ordering, instructions, reasoning settings, and compaction can affect reuse. Switching upstream accounts should not be assumed to share a cache. Magpie has session affinity, not a guarantee of a hit on every call.
Reporting is another possible source of confusion. The official technical documentation describes cases where an upstream returned another provider's cache-statistics fields and the client SDK could not read them, displaying zero. A zero display does not establish zero upstream cache hits. Check raw usage, the actual upstream, and adjacent request prefixes rather than relying on one percentage.
05
What users report doing with it
These are third-party accounts, not independently validated demonstrations:
- @chilohwei connected GPT to Claude Desktop for design work and subjectively preferred it to Codex.
- @ryan4yin kept LLM API keys in Magpie and connected local machines only to the gateway.
- @niannian_you configured Langfuse to inspect prompts, parameters, and responses for debugging.
- @forecho described using WorkBuddy's DeepSeek allowance through Claude CLI. The post included a rewarded referral link, so it has a promotional incentive and is not evidence of unlimited free use.
- @aolaikingdom described generating a 3D rainy-night convenience store and inspecting substantial consumption in Magpie. The task was still unfinished when posted; this is not a completed-delivery case study.
06
Load and project selection
This research found no official Magpie capacity guarantee for QPS, total accounts, or concurrency. Configurable concurrency, RPM, and queue limits do not prove sustained capacity at a chosen setting.
The still-open issue #5175 supplies a specific community report: Magpie v0.1.2897, two CPU cores, approximately 914MB RAM, and a particular OAuth plugin. Simultaneous renewal of 500 accounts left the model-list endpoint unresponsive for roughly three minutes. This is a startup-renewal bottleneck on a small machine, not a limit of 500 users, and not a general request-load benchmark.
For selection, start with scope. Magpie covers multiple agents and providers. CodexManager's official README focuses more on Codex account pools, model catalogs, and desktop/Service editions. Its MIT license names hongshun.gao as the copyright holder.
Codex Pooler's website documents Pools, Pool-scoped administrators, two-factor login, email/webhook alerts, and per-key limits, emphasizing team operations. But its license is not MIT. The actual Elastic License 2.0 prohibits offering third parties a hosted or managed service that exposes a substantial set of the software's features. Readable source and free self-hosting do not confer permission to sell an equivalent hosted SaaS.
07
Separate the checks before going live
Source and tests show implementation intent and covered branches. They do not replace end-to-end validation of a particular client, gateway, reverse proxy, and upstream combination. During migration, retain a direct path for comparison and record client version, gateway version, provider, and model. Two calls using different models or accounts are not a controlled cache-rate comparison.
Test ordinary keys, restricted keys, expired keys, and administrative access separately. Check visibility of model lists, request logs, and quota cards. A restricted key's own usage access does not imply permission to view the entire server's account balances. The remote documentation includes separate authorization for quota disclosure; one successful model call is not a tenant-isolation test.
Likewise, keep request success rates, cache reads and writes, estimated cost, and vendor bills separate. Cache writes may have their own price, and a cache hit does not make an entire request free. Unspent local budget does not guarantee remaining vendor capacity. For long tasks, consider when active requests settle and how the next request behaves after a limit is reached. None of these checks was performed for this article, and no machine-sizing recommendation is offered.
For personal use, first check client and credential compatibility. For team sharing, validate isolation and quotas. For a paid service, resolve licensing, upstream authorization, billing, and capacity acceptance. The projects' star rankings cannot answer those questions.
Sources and verification scope
Sources are linked beside the relevant claims. Principal references are the official documentation, repository documentation, the three actual licenses and GitHub API records, and five public X posts. Issue states, source on the main branch, and stars change over time. The X selection is not a comprehensive survey. Author statements, user experiences, and official capability commitments should be interpreted separately.