Skip to content

feat: add xAI SuperGrok weekly quota#179

Merged
slkiser merged 2 commits into
slkiser:mainfrom
H-TTTTT:feat/xai-supergrok-quota-v4
Jul 22, 2026
Merged

feat: add xAI SuperGrok weekly quota#179
slkiser merged 2 commits into
slkiser:mainfrom
H-TTTTT:feat/xai-supergrok-quota-v4

Conversation

@H-TTTTT

@H-TTTTT H-TTTTT commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add a direct xAI provider for the shared SuperGrok weekly credit window
  • map direct xAI usage into the v4 accounting ledger while excluding Copilot-hosted Grok
  • read the refreshed OpenCode OAuth credential directly during quota queries to avoid stale post-refresh results
  • add CLI, TUI, MCP, status-command, documentation, and test coverage

Validation

  • pnpm run build:check
  • pnpm test
  • pnpm run test:four-surfaces
  • pnpm run typecheck
  • pnpm run format:check
  • git diff --check

H-TTTTT and others added 2 commits July 22, 2026 12:06
Preserve the contributor's fresh-auth fix while retaining the current provider security, parsing, and display behavior from main.

Co-authored-by: H-TTTTT <36735327+H-TTTTT@users.noreply.github.com>
@slkiser

slkiser commented Jul 22, 2026

Copy link
Copy Markdown
Owner

A bit messy, but I had already modified the original #165 implementation for v4....

In here I kept the important fresh OAuth-file read so quota requests use tokens refreshed by OpenCode.

@slkiser
slkiser merged commit 04ba935 into slkiser:main Jul 22, 2026
3 checks passed
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.

2 participants