RubyGems Navigation menu

llm_cost_tracker 0.1.1

Tracks token usage and estimated costs for OpenAI, Anthropic, and Google Gemini calls. Works as Faraday middleware for Ruby clients, with ActiveRecord storage, per-user/per-feature attribution, and budget alerts.

Gemfile:
=

install:
=

Versions:

  1. 0.1.1 April 17, 2026 (16.5 KB)
  2. 0.1.0 April 16, 2026 (14.5 KB)

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 285

For this version 19

Version Released:

License:

MIT

Required Ruby Version: >= 3.1.0

New versions require MFA: true

Version published with MFA: true

Links: