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 days 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