-
Notifications
You must be signed in to change notification settings - Fork 2k
Feature: Add Grok Build usage quota endpoint support #2989
Copy link
Copy link
Open
Labels
P3Low-risk cleanup, docs, polish, ergonomics, or speculative feature.Low-risk cleanup, docs, polish, ergonomics, or speculative feature.blocked-upstreamLikely blocked or constrained by upstream provider behaviorLikely blocked or constrained by upstream provider behaviorclawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper 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.ClawSweeper does not recommend queueing a new automated fix PR for this issue.enhancementNew feature or requestNew feature or requestissue-rating: 🌊 off-meta tidepoolIssue quality rating does not apply to this item.Issue quality rating does not apply to this item.
Description
Activity
Metadata
Metadata
Assignees
Labels
P3Low-risk cleanup, docs, polish, ergonomics, or speculative feature.Low-risk cleanup, docs, polish, ergonomics, or speculative feature.blocked-upstreamLikely blocked or constrained by upstream provider behaviorLikely blocked or constrained by upstream provider behaviorclawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper 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.ClawSweeper does not recommend queueing a new automated fix PR for this issue.enhancementNew feature or requestNew feature or requestissue-rating: 🌊 off-meta tidepoolIssue quality rating does not apply to this item.Issue quality rating does not apply to this item.
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:
management-api.x.ai/v1/billing/teams/{team}/prepaid/balance/usageendpointWhat's missing:
Request
Can xAI expose dedicated usage/quota endpoints for:
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.aimanually for their plan limits, breaking the unified dashboard experience that works for OpenAI, DeepSeek, etc.References
Sources/CodexBarCore/Resources/Plugins/xai.jshttps://console.x.aimanagement-api.x.ai