Repository navigation
feat(providers): add xAI Grok OAuth with capability-gated X Search - #5035
Merged
Merged
Conversation
Add PKCE-based xAI account authentication, a Grok Responses provider with hosted X Search, and matching CLI, WebUI, configuration, documentation, and test coverage.
Expose provider-scoped proxy settings for xAI OAuth and OpenAI Codex while keeping OAuth credentials read-only.
Return Bad Gateway for xAI OAuth transport and upstream errors so WebUI authentication failures remain distinguishable from gateway token rejection.
chengyongru
force-pushed
the
feat/xai-premium-oauth
branch
from
July 23, 2026 03:21
d927fe3 to
e985007
Compare
okwillbe
pushed a commit
to okwillbe/nanobot
that referenced
this pull request
Aug 15, 2026
StefanoParadisi
pushed a commit
to StefanoHernandez/nanobot
that referenced
this pull request
Oct 16, 2026
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.
Summary
grok-4.5; hostedx_searchis sent only when/v1/modelsadvertisessupportsBackendSearchreasoning.effortwhenreasoningEffortis"none", preventing xAI from rejecting background requests such as chat-title generationUsage
The default model is
xai-grok/grok-4.5with a 500,000-token context window.xai-grokxai_grokxaiGrokxAI GrokSecurity and failure behavior
config.json; this integration does not use an xAI API key or X Developer OAuthVerification
xAI Groknaming, provider controls, and reload persistence; old public names were absentUpstream references