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

How to cap LLM spend per team, project or key with Antirion

Set dollar or token budgets and get alerts before a budget runs out.

Short answer: Start the gateway with docker run -p 8080:8080 -p 8081:8081 -v antirion-data:/var/lib/antirion eliasbiondo/antirion; then in the console, open API keys and choose Create key once for each project, naming each key after its project; in the console, open the budget settings for the key, team or project and set a limit in dollars or tokens. All steps.

Who it is forA team lead or finance-minded engineer who shares LLM access across teams and needs spend limits before the bill arrives.

The problemShared provider keys let one project spend far more than planned, and the cost is only visible after the invoice.

The outcomeEach project uses its own key with a budget, and the cost ledger shows what each model call cost.

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.
  2. In the console, open API keys and choose Create key once for each project, naming each key after its project.
  3. In the console, open the budget settings for the key, team or project and set a limit in dollars or tokens. (inferred, check the README)
  4. Check that the Model price fields match your provider prices, since the list price applies when they are left blank.
  5. Open Request log, select a request, and review its cost in the cost ledger.

Prompt for your agent

Using the eliasbiondo/antirion README, create one gateway key per project and set a dollar budget on each key in the console. Expected output: a list of keys with their budgets. Verify that a test request from one key shows its cost in the cost ledger.

Caveat. The README names where budgets apply but not the exact console menu, so the budget step needs to be checked in the running console.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for eliasbiondo/antirion and "Cap LLM spend per team, project or key"

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