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/v1with OPENAI_API_KEY=Magpie in the shell where the tool runs. - For Anthropic style tools set
export ANTHROPIC_BASE_URL=http://127.0.0.1:3425with ANTHROPIC_API_KEY=Magpie. - 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.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for yetone/magpie and "Send any OpenAI or Anthropic tool through the Magpie gateway"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer