Discover and explore top open-source AI tools and projects—updated daily.
jenslysCLI authentication for Google Gemini AI
Top 65.4% on SourcePulse
A plugin for the Opencode CLI that enables authentication with Google Gemini accounts. It allows users to leverage their existing Gemini plans and quotas, including the free tier, directly within Opencode, avoiding separate API billing and streamlining AI-powered development workflows.
How It Works
This plugin integrates with the Opencode CLI by adding a new authentication provider. It utilizes Google OAuth for user authentication, initiating a browser-based flow. A temporary local server is spun up to capture the OAuth callback, simplifying the authentication process. Users can optionally configure specific Google Cloud projects and fine-tune Gemini model parameters like thinkingLevel, thinkingBudget, and includeThoughts via the Opencode configuration file.
Quick Start & Requirements
"opencode-gemini-auth@latest" to your Opencode configuration file (~/.config/opencode/config.json).opencode auth login, select Google, and follow the OAuth prompts. A browser window will open for approval.projectId and thinkingConfig settings can be added to config.json.Highlighted Details
thinkingLevel, thinkingBudget, and includeThoughts.OPENCODE_GEMINI_DEBUG=1).Maintenance & Community
The repository is hosted on GitHub (jenslys/opencode-gemini-auth). No specific details regarding maintainers, community channels (like Discord/Slack), or roadmaps are provided in the README.
Licensing & Compatibility
Limitations & Caveats
The temporary local server used for OAuth callbacks may fail in headless environments or if the port is in use, requiring manual copy-pasting of the callback URL. Automatic Google Cloud project provisioning can also fail, necessitating manual setup via the Google Cloud Console. Updating the plugin requires manually clearing its cache.
5 days ago
Inactive