jenslys/opencode-gemini-auth

Gemini auth plugin for opencode

What it solves

This plugin allows users to authenticate the Opencode CLI with their Google account, enabling them to use their existing Gemini plans and quotas (including the free tier) without needing a manual API key.

How it works

It mirrors the official Gemini CLI OAuth flow and Code Assist endpoints. When a user runs the authentication command, the plugin initiates an OAuth process via a browser window and uses a temporary local server to capture the authorization callback. It can also handle manual callback URL pasting for headless environments.

Who it’s for

Developers using the Opencode CLI who want to integrate Gemini models via their Google account authentication rather than using API keys.

Highlights

  • OAuth Integration: Simplifies access to Gemini by using Google account login.
  • Quota Management: Supports checking Gemini Code Assist quota buckets via the /gquota command.
  • Customizable Model Lists: Allows users to whitelist or blacklist specific Gemini models to clean up the model picker.
  • Thinking Model Support: Provides configuration for Gemini "thinking" features, including thinkingBudget for Gemini 2.5 and thinkingLevel for Gemini 3 models.
  • Proxy Support: Includes built-in support for HTTP proxies for network-restricted environments.

Related

  • Project
  • Project
  • Project
  • Project