RubyGems Navigation menu

llm_cost_tracker 0.7.0

Tracks token usage, latency, and estimated costs for RubyLLM, OpenAI, Anthropic, Google Gemini, OpenRouter, DeepSeek, and OpenAI-compatible APIs. Works through Rails SDK integrations, Faraday middleware, or explicit track/track_stream helpers, with ActiveRecord storage, tag-based attribution, price sync tasks, and budget guardrails.

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)
Show all versions (25 total)

Runtime Dependencies (5):

activerecord >= 7.1, < 9.0
activesupport >= 7.1, < 9.0
csv ~> 3.0
faraday >= 2.0, < 3.0
railties >= 7.1, < 9.0

Development Dependencies (8):

nokogiri ~> 1.16
pg ~> 1.6
rake ~> 13.0
rspec ~> 3.0
rubocop ~> 1.0
simplecov ~> 0.22
webmock ~> 3.0

Owners:

Pushed by:

GitHub

Authors:

  • Sergii Khomenko

SHA 256 checksum:

=

Provenance:

Total downloads 4,454

For this version 206

Version Released:

License:

MIT

Required Ruby Version: >= 3.3.0

New versions require MFA: true

Version published with MFA: true

Links: