npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

opencode-antigravity-auth

v2.1.2

Published

Google Antigravity OAuth for OpenCode, with account rotation, live models, and quota management

Readme

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.

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.