Skip to content

Feature request: SuperGrok / xAI account login (subscription auth, not API key) #641

Open

Description

@cicae

Summary

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

  1. Settings → AI: “Sign in with SuperGrok / xAI account” (browser OAuth or equivalent official auth handoff).
  2. Persist tokens securely (same storage model as ChatGPT account tokens if possible).
  3. Route launcher AI + AI chat through the account-backed Grok path when that provider is selected.
  4. Model picker for account-available Grok models (whatever the subscription unlocks).
  5. 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.

References in this repo

Acceptance criteria (suggested)

  • User can sign in with SuperGrok / xAI account without pasting an API key
  • Authenticated session works for AI chat and launcher AI prompt
  • Models available under the subscription are selectable
  • Logout clears credentials; re-login works after expiry

Happy to refine auth details or test builds if helpful.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions