Skip to content

feat(ai): track approximate lifetime spend per backend service with open source pricing #290

Closed

Description

@dan-petty

Summary

Track approximate financial spend and token metrics for all AI/LLM requests per backend service/server for the lifetime of DevOps CLI use:

  • Open-source industrial average pricing catalog with offline defaults and regular remote update capability (devops ai cost update-pricing).
  • SQLite-backed persistent lifetime ledger (spend.db) recording request tokens, backend server, model, duration, and approximate USD cost.
  • Comprehensive CLI commands (devops ai cost, devops ai spend, report, list-pricing, set-price, reset).
  • OpenTelemetry metrics (devops_cli_ai_estimated_cost_usd, devops_cli_ai_tokens_total) and span attributes.
  • FastMCP tool ai_spend_report and resource resource://ai/spend.

Activity

  1. added this to the v0.2.21 milestone on Sep 19, 2026
  2. added
    type/feature
    scope/ai
    scope/telemetry
    priority/p1-high
    on Sep 19, 2026
  3. added a commit that references this issue on Sep 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/p1-highscope/aiscope/telemetrytype/feature

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions