{"library":"opencode-antigravity-auth","title":"opencode-antigravity-auth","description":"opencode-antigravity-auth v1.6.0 is an OAuth authentication plugin for the OpenCode IDE, providing access to Google Antigravity services including Gemini 3 Pro and Claude 4.6 models. It handles credential management, token refresh, and request signing. Released in 2025, it follows a monthly release cadence with beta releases for testing. Key differentiators are its deep integration with OpenCode's plugin system and support for the latest Google Antigravity API features. Requires Node >=20 and TypeScript ^5 as a peer dependency. Ships bundled TypeScript definitions.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install opencode-antigravity-auth"],"cli":null},"imports":["import antigravityAuth from 'opencode-antigravity-auth'","import { configureAuth } from 'opencode-antigravity-auth'","import type { AuthProvider } from 'opencode-antigravity-auth'","import { createMiddleware } from 'opencode-antigravity-auth'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import antigravityAuth from 'opencode-antigravity-auth';\n\n// Initialize the auth plugin with required configuration\nconst auth = antigravityAuth({\n  clientId: process.env.GOOGLE_CLIENT_ID ?? '',\n  clientSecret: process.env.GOOGLE_CLIENT_SECRET ?? '',\n  redirectUri: 'http://localhost:3000/callback',\n  scopes: ['openid', 'email', 'profile'],\n});\n\n// Generate the authorization URL\nconst authUrl = auth.generateAuthUrl();\nconsole.log('Open the following URL in your browser:', authUrl);\n\n// After redirect, exchange the code for tokens\nconst tokens = await auth.exchangeCode('authorization-code-from-query');\nconsole.log('Access token:', tokens.accessToken);\n\n// Use the tokens to make authenticated requests\nconst response = await auth.request('/api/gemini', {\n  method: 'POST',\n  body: JSON.stringify({ prompt: 'Hello' }),\n});\nconsole.log('API response:', await response.json());\n","lang":"typescript","description":"Shows standard OAuth flow: initialize plugin, generate auth URL, exchange code, and make authenticated API request.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}