llm_cost_tracker 0.1.0
Automatically tracks token usage and costs for LLM API calls (OpenAI, Anthropic, Google Gemini, and more). Works as Faraday middleware — plugs into any Ruby HTTP client. Provides ActiveRecord storage, per-user/per-feature attribution, and budget alerts.
Gemfile:
=
install:
=
Runtime Dependencies (2):
activesupport
>= 7.0, < 9.0
faraday
>= 1.0, < 3.0