feat(gemini): add Gemini provider plugin (oauth-personal, pro/flash usage)#189
Merged
validatedev merged 3 commits intorobinebers:mainfrom Feb 17, 2026
Merged
Conversation
Contributor
Author
Update: Homebrew path fix + real API smoke testBug found & fixedToken refresh was failing for Homebrew-installed Gemini CLI because the plugin only searched Added Smoke test results (real Gemini API)Ran a standalone smoke test against real Gemini credentials: Validation
|
Owner
|
Thank you! @cubic-dev-ai review |
Contributor
@robinebers I have started the AI code review. It will take a few minutes to complete. |
…iscovery Token refresh was failing for users who installed Gemini CLI via Homebrew because the oauth2.js file is located under /opt/homebrew/opt/ (Apple Silicon) or /usr/local/opt/ (Intel), not in ~/.bun or ~/.npm-global. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
6bf90ba to
1507fde
Compare
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.
Closes #13.
Summary
Add Gemini provider plugin with minimal first-merge scope:
plugins/gemini/plugin.jsplugins/gemini/plugin.jsonplugins/gemini/plugin.test.jsplugins/gemini/icon.svgdocs/providers/gemini.mdREADME.mdprovider list updateBehavior:
oauth-personalapi-key,vertex-ai)~/.gemini/oauth_creds.jsonPro/FlashlinesAccountline fromid_tokenemailValidation (local)
Environment:
v20.20.0(via/opt/homebrew/opt/node@20/bin)Commands run:
npm run build✅npm run test -- --run✅Result:
Summary by cubic
Adds a Gemini provider plugin using personal OAuth to show Pro/Flash usage, plan tier, and account email. Fixes token refresh for Homebrew installs by discovering OAuth client credentials in Homebrew paths.
New Features
Bug Fixes
Written for commit fdc0d64. Summary will update on new commits.