Skip to content
프로젝트

NoeFabris/opencode-antigravity-auth

GitHub에서 보기

소개

OAuth를 통해 Opencode가 Antigravity(Google의 IDE)에 인증하도록 하여, Google 자격 증명으로 Antigravity의 속도 제한을 사용하고 gemini-3-pro 및 claude-opus-4-5-thinking과 같은 모델에 액세스할 수 있습니다.

기타 프로젝트

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
+8
in 7 days
+44
in 15 days
+69
in 1 month
+152

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Antigravity + Gemini CLI OAuth Plugin for Opencode

npm version npm beta npm downloads License: MIT X (Twitter)

Enable Opencode to authenticate against Antigravity (Google's IDE) via OAuth so you can use Antigravity rate limits and access models like gemini-3.1-pro and claude-opus-4-6-thinking with your Google credentials.

Unofficial plugin. Google may restrict accounts using third-party clients.

Special Thanks

Infistar.cc, leading AI models with one API key

Claude, GPT, Gemini and more with one API key at Infistar.cc. Sign up through the link to get CNY 5 in free credit.

Setup

Requires OpenCode 2.1.2+ and Node.js 20+.

Add to ~/.config/opencode/opencode.json:

{
  "$schema": "https://opencode.ai/config.json",
  "plugins": ["[email protected]"]
}

Then run:

opencode auth login google

Choose Google OAuth (Antigravity). Existing accounts are reused.

To use a local checkout, run npm ci && npm run build and replace the package name above with the checkout's absolute path.

Use

opencode models
opencode run --model=google/antigravity-gemini-3.8-flash-high "Hello"
opencode run --model=google/antigravity-claude-opus-4-6-thinking#max "Hello"

Models are discovered from your enabled accounts and cached for an hour. Availability depends on your Google plan. Select an antigravity-* model for Google OAuth. Native Google API-key models are hidden while Antigravity OAuth is selected and return when you switch to an API-key connection.

Inside OpenCode, open /antigravity (or /ag) to:

  • See logged-in accounts, the current selection, and cached quota percentages and reset times.
  • Switch to an enabled account by selecting its row.
  • Check Antigravity and Gemini CLI quotas and reset times.
  • Add an account, or use Manage account… to verify, enable, disable, re-authenticate, or delete one.
  • Refresh the model list.

The account list shows the lowest cached quota across Claude, Gemini Pro, and Gemini Flash. Choose Check quotas / verify enabled accounts to refresh the saved quota data. Refresh quotas if an older cache shows a percentage without a reset time.

Accounts are stored in ~/.config/opencode/antigravity-accounts.json. Back up this file before moving machines; it contains credentials. Disabling an account excludes it from rotation and routine quota checks.

Development

npm ci
npm run typecheck
npm test
npm run build
OPENCODE_BIN=/path/to/opencode npm run test:e2e:v2

The runtime test uses synthetic credentials. Authenticated model and menu checks require a logged-in Google account.

V2 migration and verification · Configuration · Troubleshooting

OpenCode 1.18.29+ remains supported through the legacy entrypoint; its account menu opens from opencode auth login.

관련 프로젝트 살펴보기

불러오는 중…