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

How to find out why an LLM call failed or cost too much with Antirion

Read the route, status, tokens and cost of any request in the request log.

Short answer: Start the gateway with docker run -p 8080:8080 -p 8081:8081 -v antirion-data:/var/lib/antirion eliasbiondo/antirion if it is not already running; then 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. All steps.

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

  1. Start the gateway with docker run -p 8080:8080 -p 8081:8081 -v antirion-data:/var/lib/antirion eliasbiondo/antirion if it is not already running.
  2. Open Request log in the console and filter or scan for the failing request by status, Model or key.
  3. Select the request and read its route taken, tokens, latency and cost in the details view.
  4. 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

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