Skip to content

Feature: Add Grok Build usage quota endpoint support #2989

Description

@NYTEMODEONLY

Problem

Grok Build (the coding agent on xAI's platform) shows usage quotas in the console dashboard (weekly usage %, voice usage %, reset available), but there is no public API endpoint for these metrics that third-party tools like CodexBar can query.

Current State

CodexBar's xAI plugin tracks:

  • Prepaid balance via management-api.x.ai/v1/billing/teams/{team}/prepaid/balance
  • 30-day spend history via the Management API's /usage endpoint

What's missing:

  • Grok Build weekly usage quota (% used)
  • Voice usage (% used)
  • Reset-available date/time info
  • Free-tier vs. paid-tier breakdown
  • Any subscription-based quota data

Request

Can xAI expose dedicated usage/quota endpoints for:

  1. Grok Build — weekly token/agent usage against plan limits
  2. Grok Voice — voice minutes/usage against plan limits
  3. Account-level quota summary — similar to how the console dashboard works

These would complement the existing Management API (which is built for team pay-as-you-go billing) and cover the subscription/plan-based usage tracking that Grok Build uses.

Why This Matters

Tools like CodexBar aggregate usage across providers in one place. Without Grok Build endpoints, users have to check console.x.ai manually for their plan limits, breaking the unified dashboard experience that works for OpenAI, DeepSeek, etc.

References

  • CodexBar xAI plugin: Sources/CodexBarCore/Resources/Plugins/xai.js
  • xAI Management API docs: https://console.x.ai
  • Current Management API base: management-api.x.ai

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low-risk cleanup, docs, polish, ergonomics, or speculative feature.blocked-upstreamLikely blocked or constrained by upstream provider behaviorclawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.enhancementNew feature or requestissue-rating: 🌊 off-meta tidepoolIssue quality rating does not apply to this item.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions