Skip to content

Show API-equivalent agent usage cost - #10845

Open
andrewDoing wants to merge 1 commit into
omacom:quattrofrom
andrewDoing:agents-api-cost
Open

andrewDoing wants to merge 1 commit into
omacom:quattrofrom
andrewDoing:agents-api-cost

Conversation

@andrewDoing

@andrewDoing andrewDoing commented Sep 8, 2026 •

Copy link
Copy Markdown

Even though I use a subscription for agents, I think its interesting to see how much my usage would've cost if I was paying API prices for tokens. So that's the spirit of this PR.

The Agents panel now shows the API-equivalent total beside a compact Tokens/Dollars toggle. Dollar mode reuses the existing per-model rows, so the panel keeps its current size and layout. Published standard rates cover the currently supported OpenAI, Anthropic, and named Fireworks serverless models; unknown and private model IDs remain visibly unpriced.

Screenshot

Agents widget showing API-equivalent dollars

Validation

  • bash test/shell.d/agents-api-cost-test.sh
  • bash test/shell.d/agents-panel-test.sh
  • bash test/shell.d/qml-text-format-test.sh
  • git diff --check
  • Restarted the linked development shell and visually checked both token and dollar views

@jandrusk

Copy link
Copy Markdown

Fun optional view — product call on whether core Agents panel should show API-equivalent dollars (rate drift / private models). CONFLICTING; rebase against current agents panel and the other usage PRs (#10911 orphans, #13198 freshness).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants