opencode icon indicating copy to clipboard operation
opencode copied to clipboard

feat: integrate gemini through the same login flow as gemini cli

Open mgpai22 opened this issue 2 weeks ago • 5 comments

Summary

  • Adds Gemini CLI OAuth login flow integration
  • Implements PKCE-based OAuth for secure browser authentication
  • Handles token exchange, refresh, and caching automatically
  • Supports both interactive and headless authentication modes

Fixes #8035

Test plan

  • [ ] Test OAuth flow opens browser and completes authentication
  • [ ] Verify token refresh works after expiry
  • [ ] Confirm API requests succeed with obtained credentials
  • [ ] Test headless mode fallback

mgpai22 avatar Jan 12 '26 17:01 mgpai22

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

github-actions[bot] avatar Jan 12 '26 17:01 github-actions[bot]

@codex review

mgpai22 avatar Jan 12 '26 18:01 mgpai22

Is this not a 1:1 copy of my plugin?

https://github.com/jenslys/opencode-gemini-auth

jenslys avatar Jan 12 '26 18:01 jenslys

这不是我插件的1:1复制品吗?

https://github.com/jenslys/opencode-gemini-auth

A very nice plugin — already using it and loving it.

YaKun9 avatar Jan 13 '26 03:01 YaKun9

Is this planned to be merged soon?

bengabay1994 avatar Jan 14 '26 20:01 bengabay1994