Skip to content

Show daily and per-model Codex API cost estimates - #11121

Draft
Milofax wants to merge 2 commits into
omacom:quattrofrom
Milofax:feat/codex-api-costs-public
Draft

Show daily and per-model Codex API cost estimates#11121
Milofax wants to merge 2 commits into
omacom:quattrofrom
Milofax:feat/codex-api-costs-public

Conversation

@Milofax

@Milofax Milofax commented Sep 10, 2026

Copy link
Copy Markdown

Codex usage currently exposes token totals without a reliable matching daily cost breakdown. This adds a versioned native daily usage record and pairs tokens with USD API-equivalent estimates in the daily and model views, followed by today/7-day/30-day summaries. The model view covers 30 local calendar days; totals include models outside the four visible rows.

Rates use a dated bundled fallback and the existing manually editable ~/.config/omarchy/agents/pricing.json override file. Changes reload without restarting the shell. Unknown tariffs and missing token categories remain explicit; headings identify known costs, and a single visible note explains excluded usage and missing model prices. Detailed token coverage remains available on hover. These figures compare API usage costs and are not subscription invoices. There is no pricing scraper or paid-model call.

The collector also fixes a native-event case where last_token_usage changes while fully measured cumulative counters stay identical: those events no longer invalidate previously known categories. Cache revisioning rebuilds affected cached records, while genuine counter corrections and resets retain conservative handling.

Related prior proposal: #10845. This contribution focuses on native Codex usage. Cross-device pricing and additional Claude/legacy-source accounting remain outside this change. Personal plugin adaptations used for local testing are not included in the upstream diff.

Validation at 775700f7b0af5836825a2e448c3c1785666464a8:

  • Latest presentation follow-up: pricing (68 expectations), collector-to-formatter integration (32), panel bindings (19), model/window aggregation (19), and QML lint passed. Previously passed native collector (64) and scanner compatibility (21) remain unchanged.
  • Independent Claude Opus 5 Standards and Spec reviews cover the previous complete tree and the latest presentation delta; both are PASS for the final delta, with no blocking findings.
  • The user-plugin adaptation was installed and inspected on a real Omarchy desktop. The latest presentation removes cost asterisks, labels known API costs, and uses one visible explanation naming missing model prices where available. No VM/OCR test framework is included.
  • Tooltip formatting and Qt-style sequence inputs have focused regression coverage. A complete live tooltip capture remains unconfirmed. Private desktop screenshots and local authentication adaptations are not published.

Base: current upstream quattro (no prerequisite PR). Local tracker records correspond to native Codex portions of tasks 01/02; this PR does not close unrelated GitHub issue numbers.

@Milofax

Milofax commented Sep 10, 2026

Copy link
Copy Markdown
Author

reviewed-head: 775700f
standards: PASS
spec: PASS
blocking-findings: 0

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