Skip to content

Grok: SuperGrok Business / team principal fails with "No personal team" #2129

Description

@vesc-baek

Summary

Grok provider auth succeeds for a SuperGrok Business team member, but usage fetch fails with:

Grok web billing RPC failed with status 9: No personal team.

CLI path also cannot supply usage right now (x.ai/billing returns Method not found on current Grok Build CLI), so there is no working fallback.

This looks distinct from #1805 (weekly vs monthly calculation) and #1712 (xAI Platform prepaid API credits).

Environment

  • macOS 26.x (arm64)
  • CodexBar CLI 0.42.1 (steipete/tap/codexbar)
  • Grok Build CLI installed via Homebrew cask (grok 0.2.99)
  • Authenticated with grok login --device-auth as a team member (not personal SuperGrok only)

Steps to Reproduce

  1. Use an xAI account that is a member of SuperGrok Business / team, not (or not only) a personal SuperGrok principal.
  2. Install Grok Build CLI and run grok login (device/OAuth). Consent as Team.
  3. Confirm ~/.grok/auth.json exists and includes team identity fields (principal_type=Team, team_id, team_role, etc.).
  4. Enable provider and fetch usage:
codexbar config enable --provider grok
codexbar usage --provider grok -v --pretty

Actual Behavior

Verbose output shows both strategies fail:

[grok] fetch strategies:
  - grok.cli (cli) available error=Grok request failed: Method not found
  - grok.web (web) available error=Grok web billing RPC failed with status 9: No personal team.
Error: Grok web billing RPC failed with status 9: No personal team.

Direct probe of the documented web billing endpoint with the same OIDC bearer also returns:

HTTP 200
grpc-status: 9
grpc-message: No%20personal%20team.

against:

POST https://grok.com/grok_api_v2.GrokBuildBilling/GetGrokCreditsConfig

So this is not just a missing login: identity/auth is present, but the billing surface appears personal-team-only.

Expected Behavior

For SuperGrok Business / team principals, CodexBar should either:

  1. Read team/business Grok Build credit usage (preferred), or
  2. Clearly report that team billing is unsupported (instead of failing only with No personal team), and ideally still show identity/plan if available.

Notes / evidence (redacted)

  • grok login succeeds and writes official ~/.grok/auth.json with:
    • auth_mode: oidc
    • principal_type: Team
    • team_role: MEMBER
    • team name/email present
  • Token principal is team-scoped (not personal).
  • Grok CLI ACP path: initialize works; x.ai/billing returns -32601 Method not found (known limitation in recent Grok CLI versions; docs already mention this class of issue).
  • Related but different open issues:

Why this matters

Business/team SuperGrok seats are increasingly common. Today CodexBar can already track OpenAI Codex Team quotas well, but Grok Business members cannot get any usage percentage, which breaks multi-provider quota dashboards.

Happy to test a fix / provide additional redacted payload samples if useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal priority bug or improvement with limited blast radius.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:auth-providerThis issue is about auth, provider routing, model choice, or SecretRef resolution.impact:ux-frictionUser-facing flow adds avoidable confusion or support burden without fully blocking progress.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.no-staleExempts this issue from stale automation.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions