[PR #8039] feat: integrate gemini through the same login flow as gemini cli #12599

Open
opened 2026-02-16 18:17:29 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/8039

State: open
Merged: No


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
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/8039 **State:** open **Merged:** No --- ## 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
yindo added the pull-request label 2026-02-16 18:17:29 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12599