LLM Cost Tracker v0.10.0
https://github.com/sergey-homenko/llm_cost_tracker
Rails engine that ledgers every LLM call — OpenAI, Anthropic, Gemini, Azure OpenAI, RubyLLM — with tokens, cost, latency, attribution tags, and a built-in dashboard. v0.10.0 highlights:
-
Pre-send budget guard.
budget_exceeded_behavior = :block_requestsnow also estimates the call’s input cost and blocks before send when prior spend plus the estimate would cross a daily / monthly / per-call limit. -
Azure OpenAI Foundry zero-config. Capture works out of the box on
*.services.ai.azure.comand the/openai/v1/...path, in addition to the classic*.openai.azure.com+ deployments URL. -
Chat Completions web-search fee capture. Calls to
gpt-4o-search-preview,gpt-4o-mini-search-preview, andgpt-5-search-apinow record the per-call web-search line item at OpenAI’s “Web search preview” rate ($25/1k non-reasoning, $10/1k reasoning) — previously dropped. -
Multi-currency pricing. A
prices_filewithmetadata.currency: "EUR"flows through the pricing snapshot, rollups, line items, and the dashboard total instead of being hardcoded to USD.
CHANGELOG: https://github.com/sergey-homenko/llm_cost_tracker/blob/main/CHANGELOG.md
Post a comment