Repository navigation
Conversation
Device-code sign-in in the system browser against auth.x.ai, on the shared public client id. The id is a setting in oauth-sign-in.json. A 403 says the account has no API access and offers the API key. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…laude/sleepy-spence-07168f
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Not up to standards ⛔🔴 Issues
|
| Category | Results |
|---|---|
| Security | 10 critical 1 high |
🟢 Metrics 152 complexity · 10 duplication
Metric Results Complexity 152 Duplication 10
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The sign-in token lists the models, so the row said Ready with no key. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A reopened picker holds only saved rows, so it called xai/grok-4.7 removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tuckcode
marked this pull request as ready for review
November 2, 2026 02:19
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds xAI browser sign-in as a preview (ADR-0186, decision 3), with the API key as the fallback. Base is the PR 286 branch.
Real sign-in and chat passed in a native dev build and in a probe.
What was implemented
provider_oauth/xai.rsruns the device-code grant atauth.x.ai. The system browser opens the approval page.client_ids.xaiinoauth-sign-in.jsonreplaces it.https://api.x.ai/v1, on thexaiSettings row.Decision: device code, not loopback PKCE
ADR-0186 allows either. Device code is the only flow confirmed live. OpenCode and Hermes also use it.
curlto/oauth2/authorizereturned 403, and the built-in browser blocksauth.x.ai, so the loopback flow is unverified.Real sign-in result (2026-11-01)
Atticus approved a live code on a real account. The probe held tokens in memory and revoked them.
api:access/oauth2/userinfoGET /v1/modelsPOST /v1/chat/completions,grok-4.3POST /v1/responses,grok-4.3Native QA
grok-4.7chat replied, with no xAI key in the keychain.Not verified
Completion
pnpm test:coveragepassed, 88.88% lines.cargo testpassed. The pre-push hook passed. Mock OAuth server only. Live probe and native QA passed.codacy-clireported that no configuration file exists. The PR check still runs.account_sign_in_finishedwithproviderandoutcome.install_usable_sign_intests now take a lock, because they share one override.docs/ARCHITECTURE.md, handoff file.🤖 Generated with Claude Code