LL

LLM-spend – Audit your OpenAI/Anthropic API spend locally

Hacker News

LLM-spend – Audit your OpenAI/Anthropic API spend locally

I build spend-pacing systems for ad auctions for a living, and my side-project agent workloads still kept surprising me with API bills I couldn't explain. When I asked around how people attribute LLM spend, the answers were the provider dashboard or a spreadsheet. llm-spend is a local CLI that pulls usage from the OpenAI/Anthropic reporting APIs, breaks spend down by key, model and project, projects end-of-month, and flags days that look abnormal against the same weekday's history. It also does a second, independent read of the provider's cost API and warns if the totals disagree by more than 1%. That check exists because I don't want to ship you a wrong report: it catches unit, pagination and grouping bugs in my own pipeline. It checks against the provider's cost API, not your invoice — credits, tax and non-API charges live elsewhere. Keys are the ugly part. OpenAI admin keys can be scoped down to read-only usage/cost access, but admin keys require a Team plan. Anthropic admin keys can't be scoped down at all. That's why there's a CSV path: export your usage data, reshape it once into the tool's documented schema, and run the report fully offline with no key. The CSV path skips the 1% cross-check though, since it can't fetch anything to check against. There's also a demo with synthetic data in the README if you just want to see what the report looks like. Non-goals: no cross-model "you could have saved 40%" estimates from aggregate data (different tokenizers make that dishonest), no proxy in your request path, nothing hosted. Apache-2.0, Python 3.12+. If you're on LiteLLM: not a replacement. The next version is planned as a LiteLLM guardrail plugin for budget pacing — audit shipped first because you can't enforce budgets on numbers you can't verify. If you run agent swarms on API-key billing, I'd like to hear two things: how do you attribute spend to a specific run or agent today, and what happens when a run blows past what you expected?

Share card

Actual performance

1points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: agent, model, openai · Missing: mac, agents, macos
93%93% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Hacker NewsStrong engagement from HN community · Strong signals: exist, ide, pipe · Missing: https docs, excited, just released
58%58% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
51%51% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Strong signals: month, answers · Missing: mobile apps, ios, personal
43%43% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Strong signals: host · Missing: plus, platform, intuitive
23%23% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
22%22% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

Wh
What you are supporting when you spend?44%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

What you are supporting when you spend?

Hacker News17
CoinConsume
CoinConsume25%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Find out where to spend your cryptocurrencies!

Indie Hackers3content
Ru
Rubberduck – Open Source Tool to Emulate OpenAI/Anthropic APIs Locally66%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Rubberduck – Open Source Tool to Emulate OpenAI/Anthropic APIs Locally

Hacker News6
La
LangSpend – Track LLM costs by feature and customer (OpenAI/Anthropic)66%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

LangSpend – Track LLM costs by feature and customer (OpenAI/Anthropic)

Hacker News2
Fusebox
Fusebox17%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Spend-ceiling alerts for solo OpenAI API users

Indie Hackerscommitment-side-project
Taskora
Taskora20%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

API spend circuit breaker for AI agents.

Indie Hackerscommitment-full-time
Li
LiteLLM -Open-Source Library for Anthropic,Azure,OpenAI, etc. API Calls44%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

LiteLLM -Open-Source Library for Anthropic,Azure,OpenAI, etc. API Calls

Hacker News5
Is
Is Anthropic Down?53%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Is Anthropic Down?

Hacker News8
Cu
Cumbersome – iOS/macOS API client for OpenAI, Anthropic, Z.ai37%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Cumbersome – iOS/macOS API client for OpenAI, Anthropic, Z.ai

Hacker News2
Ch
Chronos - Track where you spend your time and who you spend it with46%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Chronos - Track where you spend your time and who you spend it with

Hacker News8