Add xAI/Grok OAuth support#477
Conversation
There was a problem hiding this comment.
💡 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) } |
There was a problem hiding this comment.
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 👍 / 👎.
Add xAI/Grok OAuth support
Summary
Add first-class xAI/Grok OAuth authentication to VibeProxy using the bundled CLIProxyAPI
--xai-loginflow.Changes
xaiTesting
swift test(9 tests passed)swift buildgit diff --checkv7.2.86exposes--xai-loginGET /v1/modelson port 8317grok-4.3Chat Completions returns HTTP 200 withgrok-okgrok-4.3Responses API returns HTTP 200 withgrok-responses-ok[DONE]Checklist