You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature request: SuperGrok / xAI account login (subscription auth, not API key) #641
Please add SuperGrok (xAI) account login so SuperCmd AI features can use an existing SuperGrok / X Premium+ subscription via auth login, without requiring a separate xAI API key.
This is the same class of workflow as ChatGPT account login (OAuth / session-backed usage of the consumer product), and related to the flat-subscription idea in #1 (Claude / Codex).
Motivation
Many users already pay for SuperGrok (or X Premium+) for Grok access, but SuperCmd currently steers AI toward API keys (OpenAI / Anthropic / Gemini / OpenAI-compatible, etc.).
ChatGPT subscription auth is already documented/implemented on the chat-model branch (CHATGPT_LOGIN_FEATURE.md, chatgpt-auth.ts, chatgpt-upstream.ts). Supporting SuperGrok the same way would let users reuse one subscription across the launcher AI prompt and AI chat.
API keys are a different product/billing surface from the consumer Grok subscription; forcing API keys means double pay or no access for subscription-only users.
Proposed behavior
Settings → AI: “Sign in with SuperGrok / xAI account” (browser OAuth or equivalent official auth handoff).
Persist tokens securely (same storage model as ChatGPT account tokens if possible).
Route launcher AI + AI chat through the account-backed Grok path when that provider is selected.
Model picker for account-available Grok models (whatever the subscription unlocks).
Clear login status, logout, and error states (expired session, rate limit, plan not eligible).
Out of scope (for this request)
Using xAI API keys only (that can stay as a separate optional provider if desired).
This request is specifically about subscription / consumer auth, not paid API usage.
Activity