DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to send any OpenAI or Anthropic tool through the Magpie gateway with Magpie

Set three base URL variables so any tool that accepts a base URL uses the Magpie gateway.

Short answer: Start Magpie and confirm the gateway is running at 127.0.0.1:3425; then set export OPENAI_BASE_URL=http://127.0.0.1:3425/v1 with 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:3425 with ANTHROPIC_API_KEY=Magpie. All steps.

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

  1. Start Magpie and confirm the gateway is running at 127.0.0.1:3425.
  2. Set export OPENAI_BASE_URL=http://127.0.0.1:3425/v1 with OPENAI_API_KEY=Magpie in the shell where the tool runs.
  3. For Anthropic style tools set export ANTHROPIC_BASE_URL=http://127.0.0.1:3425 with ANTHROPIC_API_KEY=Magpie.
  4. 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer