Google Antigravity IDE OAuth auth plugin for Opencode, providing access to Gemini 3 Pro and Claude 4.6 using Google credentials. Current stable version is 1.6.2, released with fixes for proper-lockfile interop and Node.js 25 compatibility. The plugin is updated frequently with beta releases introducing new features like TUI v2 and opt-in Claude 1M beta head. Key differentiators: offers access to latest AI models via Google Antigravity IDE, includes account rotation and quota management, and ships TypeScript types.
npm install opencode-antigravity-auth-updatedVerified import paths — ran on the pinned version, not inferred.
Shows how to import and instantiate the AntigravityAuth class with OAuth credentials, then trigger authentication.
Upgrade Node.js to version 20 or later (e.g., via nvm).
Switch to ESM (type: 'module' in package.json or .mjs extension) and use import syntax.
Replace quotaCheck with interactiveQuotaCheck in configuration.
Clear cache with 'rm -rf ~/.cache/opencode/node_modules ~/.cache/opencode/bun.lock' after updating.
Install typescript@^5 as a devDependency.
Use import syntax or rename file to .mjs.
Change import to: import { AntigravityAuthProvider } from 'opencode-antigravity-auth-updated'Run 'npm install opencode-antigravity-auth-updated' and clear cache: rm -rf ~/.cache/opencode/node_modules