Repository navigation
Add Grok Build OAuth device sign-in (continues #514) - #538
unstatusthequo wants to merge 7 commits into
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@ranaroussi, any chance you can review this for merging? |
|
I stopped using vibeproxy and switched to cliproxyapi because there was no response from the maintainer and it seemed like no maintenance was being done. Since cliproxyapi has a proper Web UI as well, there is no longer any reason to use VibeProxy. You can also use xAI OAuth with it. |
|
Reviewed in full, and thank you for the care that went into this. It is the strongest PR in the current queue. I verified the core premise directly against the bundled backend on What I checked in the Swift side and liked:
Three things I want to settle before merging:
Also note this touches |
Summary
Add Grok Build (OAuth) to Settings, with a device-code sign-in sheet, account controls, and independent OAuth/provider toggles. Users can open the verification link, copy the code, cancel, and retry. A connection is confirmed only after CLIProxyAPI reports saving a recognizable xAI credential file.
Continues #514
This branch directly cherry-picks @rluisr's three commits from #514, retaining their authorship and recording the original commit IDs. It adapts that work to current
mainand adds the missing device-code lifecycle handling.The binary conflict was resolved by retaining
main's stock CLIProxyAPI 7.2.151. No backend binary changes are included. The current upstream catalog already includesgrok-4.6andgrok-build-0.1, so the custom7.2.130-grok46binary from #514 is unnecessary.Behavior and compatibility
xai-oauthpreference → upstreamxaiexclusion mapping. Customopenai-compatibilityproviders namedxai, their stored/inline API keys, and their enabled state remain independent.Validation
Final CI run passed on Apple Silicon (
macos-15) and Intel (macos-15-intel) at commitebca1e8:swift buildandswift test: 22 tests passed on each architecture.--xai-loginand reports 7.2.151.grok-4.6andgrok-build-0.1model registration, including the checked-in ARM backend.git diff --check origin/main HEADpassed. The tracked backend binary is unchanged.Live-account checks still require an eligible Grok Build account and an interactive Mac. These have not been performed:
The automated account fixtures contain synthetic tokens only; offline model discovery is not proof of account entitlement or successful inference.