Who it is forA developer or small platform team whose apps call OpenAI or Anthropic directly and who wants one place to manage providers and keys.
The problemEach app holds its own provider keys and code paths, so switching models or providers means changing every app.
The outcomeApps call one base URL with a gateway key, and the model behind the name chat can be changed in the console.
What you need first
- Docker installed on the machine that will run the gateway
- An API key from OpenAI or Anthropic
- A web browser to open the console at http://localhost:8081/ui/
Steps
- Run
docker run -p 8080:8080 -p 8081:8081 -v antirion-data:/var/lib/antirion eliasbiondo/antirionand copy the admin token printed on the first start. - In the console at http://localhost:8081/ui/, open Providers, choose Add provider, paste your API key, run Test, then Add provider.
- Open Models, choose Add model, pick a model from the provider's list, name it chat, and click Add model.
- Open API keys, choose Create key, name it for your app, and copy the key, which is shown only once.
- Set your SDK base URL to http://localhost:8080/v1 and send a chat request with model chat.
Prompt for your agent
Using the eliasbiondo/antirion README, configure the OpenAI SDK in <project path> to use base URL http://localhost:8080/v1 and the gateway key in ANTIRION_API_KEY, then send a chat request with model chat. Expected output: a chat completion JSON response. Verify that the request appears in the Request log in the console.
Caveat. The README's getting-started path needs an OpenAI or Anthropic key, and other providers are set up the same way only where the console offers them.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for eliasbiondo/antirion and "Send every app's LLM calls through one endpoint"
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