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-tweaked

v1.9.7

Published

Google Antigravity IDE OAuth auth plugin for Opencode

Readme

Gemini CLI + Antigravity OAuth Plugin for Opencode

npm version npm beta npm downloads License: MIT

Enable Opencode to authenticate against Gemini CLI (Google's AI CLI Utility) via OAuth so you can use CLI rate limits and access models like gemini-3.1-pro and gemini-3-flash with your Google credentials.

What You Get

  • ~~Claude Opus 4.6, Sonnet 4.6~~ and Gemini 3.1 Pro/Flash via Google OAuth.
  • Multi-account support — add multiple Google accounts, auto-rotates intelligently when rate-limited.
  • Dual quota system — access both Antigravity and Gemini CLI quotas from one plugin.
  • Thinking models — extended thinking for ~~Claude~~ and Gemini 3/3.1 with configurable budgets
  • Google Search grounding — enable web search for Gemini models (auto or always-on)
  • Auto-recovery — handles session errors and tool failures automatically
  • Plugin compatible — (kinda) works alongside other OpenCode plugins (oh-my-opencode, dcp, etc.)
    • Important: I have no control over what 3rd party plugins modify. If they break the plugin, report it as an issue, but I likely can't do much about it.

[!CAUTION] Using this plugin (and any proxy for Google OAuth products) violate Google's Terms of Service. A number of users have reported their Google accounts being banned or shadow-banned (restricted access without explicit notification).

By using this plugin, you acknowledge:

  • This is an unofficial tool not endorsed by Google
  • Google has become hyper-aggressive about catching 3rd party OAuth piggybacking
  • Your account may be suspended or permanently banned
  • You assume all risks associated with using this plugin

Quick Start

  1. Install the plugin by adding it to your ~/.config/opencode/opencode.json:

    {
      "plugin": ["opencode-antigravity-auth-tweaked@latest"]
    }
  2. Authenticate with your Google account:

    opencode auth login
  3. Configure models by selecting "Configure models in opencode.json" during the login flow. This automatically adds all supported model definitions to your configuration.

  4. Verify the installation:

    opencode run "Hello" --model=google/antigravity-claude-opus-4-6-thinking --variant=high

Models

The plugin provides access to two distinct quota pools: Antigravity (IDE) and Gemini CLI.

| Model | Quota Pool | Variants | |--------------------------------------------| ----------- |-----------------| | antigravity-gemini-3-pro | Antigravity | low, high | | antigravity-gemini-3-flash | Antigravity | minimal, low, medium, high | | ~~antigravity-claude-sonnet-4-6~~ | Antigravity | (not supported) | | ~~antigravity-claude-opus-4-6-thinking~~ | Antigravity | (not supported) | | gemini-3-pro-preview | Gemini CLI | — | | gemini-3-flash-preview | Gemini CLI | — |

Note: For the full list of models and detailed variant configuration, see docs/MODEL-VARIANTS.md. It is highly recommended to use opencode auth login to automatically manage these definitions.


Advanced Setup

  • Multi-Account: Add multiple Google accounts to increase your combined quota and enable automatic rotation. See docs/MULTI-ACCOUNT.md.
  • Configuration: Customize behavior such as session recovery, quota thresholds, and account rotation strategies in antigravity.json. See docs/CONFIGURATION.md.
  • Plugin Compatibility: For details on using this plugin with oh-my-opencode, opencode-dcp, and others, see docs/TROUBLESHOOTING.md.

Troubleshooting

Quick Reset: Most issues can be resolved by deleting ~/.config/opencode/antigravity-accounts.json and running opencode auth login again.

For solutions to common issues (auth problems, 403 errors, MCP server conflicts, etc.), please refer to the Troubleshooting Guide.


Documentation


Credits

License

MIT License. See LICENSE for details.

Intended Use

  • Personal / internal development only
  • Respect internal quotas and data handling policies
  • Not for production services or bypassing intended limits
  • Do not adapt my code or use it as a reference for the OpenClaw project or any of its forks/related code
    • All algorithms and implementations in this repository that are not defined by a 3rd party library are NoeFabris and I's intellectual property and are protected accordingly by the MIT license and applicable laws
    • NoeFabris has no involvement in this project besides the base forked code

Warning

By using this plugin, you acknowledge:

  • Terms of Service risk — This approach may violate ToS of AI model providers
  • Account risk — Providers may suspend or ban accounts
  • No guarantees — APIs may change without notice
  • Assumption of risk — You assume all legal, financial, and technical risks
  • How licenses work - You agree to abide by the restrictions outlined in this document and the MIT license

Disclaimer

  • Not affiliated with Google. This is an independent open-source project.
  • "Antigravity", "Gemini", "Google Cloud", and "Google" are trademarks of Google LLC.