{"library":"opencode-gemini-auth","title":"OAuth Plugin for Opencode with Gemini","description":"Opencode-gemini-auth is an open-source plugin (current stable v1.4.10, released 2025) that authenticates the Opencode CLI using your Google account, enabling access to Gemini models including the free tier. It spins up a local OAuth callback server, supports manual URL paste fallback, and provides a `/gquota` command. Actively maintained with frequent releases. Differentiators: eliminates the need for a separate Google AI API key, supports Gemini Code Assist subscriptions via `projectId`, and includes automatic token refresh. Written in TypeScript, ships with types, peer-depends on TypeScript ^5.9.3.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install opencode-gemini-auth"],"cli":{"name":"opencode","version":null}},"imports":["import plugin from 'opencode-gemini-auth'","import { login } from 'opencode-gemini-auth'","import { getQuota } from 'opencode-gemini-auth'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// Ensure Opencode CLI is installed\n// Add plugin to Opencode config (~/.config/opencode/opencode.json):\n// {\n//   \"$schema\": \"https://opencode.ai/config.json\",\n//   \"plugin\": [\"opencode-gemini-auth@latest\"]\n// }\n\n// Then run:\n// opencode auth login\n// Select \"Google\" then \"OAuth with Google (Gemini CLI)\"\n// Browser will open for OAuth consent","lang":"typescript","description":"Shows how to install and authenticate the plugin to use Gemini models with Opencode CLI.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}