Skip to content

fix(pricing): alias grok-proxy to Grok Build - #1123

Merged
robinebers merged 1 commit into
mainfrom
fix/grok-proxy-pricing
Aug 19, 2026
Merged

fix(pricing): alias grok-proxy to Grok Build#1123
robinebers merged 1 commit into
mainfrom
fix/grok-proxy-pricing

Conversation

@robinebers

Copy link
Copy Markdown
Owner

TL;DR

Alias the Grok CLI log slug grok-proxy to grok-build-0.1 so recent Grok Build usage shows up in spend tiles and Total Spend.

What was happening

  • GrokLogUsageScanner attributes inference_done rows via the last model id seen for that PID.
  • Unpriced models are dropped from every spend total (warning triangle only).
  • grok-build and grok-code-fast-1 already alias to grok-build-0.1. Recent Grok Build CLI sessions log grok-proxy instead, so Today/Yesterday (and Total Spend for those days) went empty while Weekly quota still worked. Older grok-build days still filled Last 30 Days.

What this changes

  • Add supplement alias grok-proxygrok-build-0.1 (same rates as grok-build: $1 input / $2 output per million).
  • Extend testGrokCLIModelAliases so grok-proxy resolves to the same rates as grok-build-0.1.
  • Bump updated_at so installed apps pick the feed up within about an hour. No app release needed.

Heads-up

  • Grok 4.5/4.6 sessions still log those ids, not grok-proxy. This only affects Grok Build CLI users whose logs switched slugs.
  • If grok-proxy ever becomes a generic proxy id for other models, this alias would underprice those rows.

Tests

  • Supplement JSON/alias validation
  • PricingBundledResourceTests/testGrokCLIModelAliases

Fixes #1119

Made with Cursor

Recent Grok Build CLI logs emit grok-proxy instead of grok-build, so those rows were dropped from spend tiles.

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions github-actions Bot added the tests label Aug 19, 2026
@robinebers
robinebers merged commit 70acd4f into main Aug 19, 2026
3 checks passed
@robinebers
robinebers deleted the fix/grok-proxy-pricing branch August 19, 2026 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Grok Today/Yesterday spend missing from Total Spend when log uses grok-proxy

1 participant