Skip to content

feat: add per-user model cost dashboard - #174

Merged
QueryPlanner merged 1 commit into
mainfrom
codex/llm-cost-dashboard
Aug 20, 2026
Merged

feat: add per-user model cost dashboard#174
QueryPlanner merged 1 commit into
mainfrom
codex/llm-cost-dashboard

Conversation

@QueryPlanner

Copy link
Copy Markdown
Owner

What

Add provider-aware model cost tracking and dashboard visibility by user, session, and trace.

Why

OpenRouter BYOK responses can still expose usage cost, but Blacki previously retained token counts without monetary cost fields. This adds exact/provider and clearly labeled estimated cost reporting without storing prompts, responses, or tool arguments.

How

Tests

  • uv run ruff format
  • uv run ruff check
  • uv run mypy .
  • uv run pytest --cov=src --cov-report=term-missing (1,633 passed, 1 skipped, 100.00% coverage)
  • npm run build
  • node --check src/blacki/dashboard/static/dashboard.js

Related Issues

  • No issue was supplied for this feature.

- Capture exact, upstream, and estimated LiteLLM costs
- Aggregate idempotent cumulative and UTC-month ledger totals
- Add dashboard cost metrics and regression coverage
@QueryPlanner
QueryPlanner merged commit c1b5b73 into main Aug 20, 2026
3 checks passed
@QueryPlanner
QueryPlanner deleted the codex/llm-cost-dashboard branch August 20, 2026 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant