RubyGems Navigation menu

llm_cost_tracker 0.2.0.alpha2

Tracks token usage and estimated costs for OpenAI, Anthropic, Google Gemini, OpenRouter, DeepSeek, and OpenAI-compatible calls. Works as Faraday middleware for Ruby clients, with ActiveRecord storage, arbitrary tag-based attribution, and budget guardrails.

Gemfile:
=

install:
=

Versions:

  1. 0.11.0 May 21, 2026 (153 KB)
  2. 0.10.0 May 17, 2026 (146 KB)
  3. 0.9.0 May 12, 2026 (139 KB)
  4. 0.8.0 May 07, 2026 (104 KB)
  5. 0.7.3 May 01, 2026 (91.5 KB)
  6. 0.2.0.alpha2 April 20, 2026 (45.5 KB)
Show all versions (28 total)

Runtime Dependencies (3):

activesupport >= 7.1, < 9.0
csv >= 3.0
faraday >= 2.0, < 3.0

Development Dependencies (7):

activerecord >= 7.1, < 9.0
railties >= 7.1, < 9.0
rake ~> 13.0
rspec ~> 3.0
rubocop ~> 1.0
sqlite3 >= 1.4, < 3.0
webmock ~> 3.0

Owners:

Pushed by:

Authors:

  • Sergii Khomenko

SHA 256 checksum:

=

Total downloads 5,476

For this version 148

Version Released:

License:

MIT

Required Ruby Version: >= 3.3.0

New versions require MFA: true

Version published with MFA: true

Links: