Who it is forA developer using a tool that is not in the supported agent list but accepts an OpenAI, Anthropic or Gemini base URL.
The problemTools without a Magpie setup page cannot pick models from Magpie, so each one needs its own provider configuration.
The outcomeThe tool sends its requests to the local gateway at 127.0.0.1:3425 and Magpie handles the provider and routing.
What you need first
- A computer running macOS, Windows or Linux (or Docker or Termux)
- An API key for a provider such as DeepSeek, or a signed-in subscription such as Claude or ChatGPT
- The agent you want to route, such as Claude Code or Codex, already installed
Steps
- Start Magpie and confirm the gateway is running at 127.0.0.1:3425.
- Set
export OPENAI_BASE_URL=http://127.0.0.1:3425/v1 OPENAI_API_KEY=magpiein the shell where the tool runs. (inferred, check the README) - Set
export ANTHROPIC_BASE_URL=http://127.0.0.1:3425 ANTHROPIC_API_KEY=magpiefor Anthropic-style tools. (inferred, check the README) - Start the tool and send one request to confirm it appears in Magpie's usage view.
Prompt for your agent
Using the yetone/magpie repository, confirm the gateway is listening on 127.0.0.1:3425, export OPENAI_BASE_URL=http://127.0.0.1:3425/v1 and OPENAI_API_KEY=magpie, and run <tool-command>. Report whether the tool returns an answer and whether the request appears in magpie's usage data.
Caveat. The README says the gateway speaks these API formats, so tools that need a different protocol will not work through it.
Get 5 new use cases every morning. Free, one short email, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Disclaimer
Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked "Seen in the wild", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email [email protected] and we will look at it promptly. Full disclaimer page