Skip to content

Add xAI/Grok OAuth support#477

Open
rluisr wants to merge 1 commit into
automazeio:mainfrom
rluisr:feat/xai-grok-oauth
Open

Add xAI/Grok OAuth support#477
rluisr wants to merge 1 commit into
automazeio:mainfrom
rluisr:feat/xai-grok-oauth

Conversation

@rluisr

@rluisr rluisr commented Jul 18, 2026

Copy link
Copy Markdown

Add xAI/Grok OAuth support

Summary

Add first-class xAI/Grok OAuth authentication to VibeProxy using the bundled CLIProxyAPI --xai-login flow.

Changes

  • Register xAI as an OAuth service and expose its accounts in Settings
  • Launch the bundled CLIProxyAPI xAI login flow and clean up stale login processes
  • Add provider enable/disable support while preserving existing OpenAI-compatible providers named xai
  • Add the xAI/Grok service row, account controls, authentication messaging, and a template-compatible icon
  • Keep the expanded Services list reachable by allowing the Settings form to scroll
  • Document xAI/Grok support and add provider wiring coverage
  • Add a pull request description template because the repository did not contain one

Testing

  • swift test (9 tests passed)
  • swift build
  • git diff --check
  • Confirmed the bundled CLIProxyAPI v7.2.86 exposes --xai-login
  • Confirmed Grok models are listed through GET /v1/models on port 8317
  • Confirmed grok-4.3 Chat Completions returns HTTP 200 with grok-ok
  • Confirmed grok-4.3 Responses API returns HTTP 200 with grok-responses-ok
  • Confirmed streaming Chat Completions returns HTTP 200, the expected content, and [DONE]

Checklist

  • Tests pass locally
  • Documentation is updated where needed
  • No unrelated changes are included

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b1e79d548a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

onConnect: { connectService(.xai) },
onDisconnect: { account in disconnectAccount(account) },
onToggleDisabled: { account in toggleAccountDisabled(account) },
onToggleEnabled: { enabled in serverManager.setProviderEnabled("xai", enabled: enabled) }

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Decouple OAuth xAI from custom xai providers

When an existing config defines an openai-compatibility provider named xai, this toggle writes enabledProviders["xai"], the same key used by the Custom Providers row (provider.id) and by resolveConfigPath when it builds disabledCustomProviderIDs; turning off the new OAuth row therefore removes that API-key provider from the generated config. Please keep the OAuth provider state under a distinct key or otherwise avoid coupling it to preserved custom xai providers.

Useful? React with 👍 / 👎.

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.

1 participant