Add OAuth-backed CLI providers#127
Open
futouyiba wants to merge 1 commit intonashsu:mainfrom
Open
Conversation
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
Adds OAuth-backed local CLI providers for users who want to reuse existing vendor login flows instead of entering API keys:
Codex CLI (GPT OAuth)via the officialcodex login/ ChatGPT OAuth flowGemini CLI (Antigravity OAuth)via the official localgeminiCLI Google OAuth flowThis keeps LLM Wiki out of the token handling path: it opens or spawns the official CLIs and does not read or persist OAuth credentials.
Notes
The new Codex/Gemini CLI transports are intentionally non-streaming for the first slice: the app receives the final CLI output and emits it as one assistant response. This keeps the OAuth-backed path simple and avoids depending on private web/IDE tokens.
Validation
npm run buildcargo check --manifest-path src-tauri/Cargo.tomlnpm run test:mocks(62files,988tests)