RubyGems Navigation menu

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:
=

Versions:

  1. 0.8.0 May 07, 2026 (104 KB)
  2. 0.7.3 May 01, 2026 (91.5 KB)
  3. 0.7.2 May 01, 2026 (91.5 KB)
  4. 0.7.1 April 30, 2026 (88.5 KB)
  5. 0.7.0 April 29, 2026 (92 KB)
  6. 0.1.0 April 16, 2026 (14.5 KB)
Show all versions (25 total)

Runtime Dependencies (2):

activesupport >= 7.0, < 9.0
faraday >= 1.0, < 3.0

Development Dependencies (6):

activerecord >= 7.0, < 9.0
rake ~> 13.0
rspec ~> 3.0
rubocop ~> 1.0
sqlite3 ~> 2.0
webmock ~> 3.0

Owners:

Pushed by:

Authors:

  • Sergii Khomenko

SHA 256 checksum:

=

Total downloads 4,556

For this version 333

Version Released:

License:

MIT

Required Ruby Version: >= 3.1.0

New versions require MFA: true

Links: