Who it is forA developer on call when an AI feature returns errors or an unexpected bill.
The problemWithout per-request records, it is hard to tell which model, key or route handled a failing or expensive call.
The outcomeThe developer finds the exact request, the route taken and the cost, and can reproduce it in the Playground.
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
- Start the gateway with
docker run -p 8080:8080 -p 8081:8081 -v antirion-data:/var/lib/antirion eliasbiondo/antirionif it is not already running. - Open Request log in the console and filter or scan for the failing request by status, Model or key.
- Select the request and read its route taken, tokens, latency and cost in the details view.
- Open the Playground and resend a similar request to check whether the problem repeats.
Prompt for your agent
Using the eliasbiondo/antirion README, find the request in the Request log that matches <request description> and report its status, Model, key, tokens, latency and cost. Expected output: a short summary of that request. Verify that the reported values match the request details in the console.
Caveat. The request log only holds requests the gateway has handled, so calls that bypass the gateway will not appear.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for eliasbiondo/antirion and "Find out why an LLM call failed or cost too much"
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