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

@intisy-ai/antigravity-auth

v1.17.2

Published

Google Antigravity provider for OpenCode and Claude Code, built on core-auth (multi-account rotation, quota management, proxy support)

Downloads

1,833

Readme

@intisy-ai/antigravity-auth

npm version npm downloads CI

Google Antigravity provider for OpenCode and Claude Code, built as a thin driver on top of core-auth. core-auth owns all the generic work (multi-account storage, selection/rotation, token refresh, and rate-limit/cooldown state) while this package supplies only the antigravity specifics: the request/response transform, the Cloud Code Assist endpoints, and the Google OAuth login. The same account pool is shared by both OpenCode and Claude Code.

Under-the-Hood Architecture

flowchart TD
    subgraph Apps
        OC[OpenCode] -->|auth hook loader.fetch| HANDLE
        CC[Claude Code] -->|claude-code-loader proxy| HANDLE
    end

    subgraph Driver [antigravity-auth driver]
        HANDLE["handleIr(ir, ctx) - delegates to the Java orchestrator"]
        LOGIN["login - CLI: antigravity login"]
        HANDLE -->|POST + endpoint fallback| GOOGLE[(Cloud Code Assist API)]
        LOGIN -->|Google PKCE OAuth| GOOGLE
    end

    subgraph Core [core-auth library bundled in]
        MGR[AccountManager]
        STORE[(accounts.json)]
        MGR <--> STORE
    end

    HANDLE -->|acquire / reportRateLimit / reportSuccess| MGR
    LOGIN -->|addAccount| MGR

Driver Detail

handleIr delegates every decision (model/lane resolve, the account/endpoint retry+rotation loop, IR<->Gemini request/response translation, and rate-limit classification) to the Java orchestrator (java/antigravity-provider, TeaVM-compiled, called via driver/javaHandle.ts/javaStream.ts). The provider is IR-native: the front-door owns app<->IR translation, so no app-wire (Anthropic) format code lives here. This TS layer owns only host I/O: the fetch + proxy transport, AccountManager acquisition/reporting, project-context discovery, OAuth login, device fingerprinting, and the version pool.

Structure

  • src/
    • index.ts: OpenCode entry (the core-auth provider plugin)
    • handler.ts: Claude Code entry (handleIr() for the claude-code-loader proxy front-door)
    • cli.ts: antigravity login | list | remove
    • driver/: index.ts (driver + handleIr), config.ts, models.ts, login.ts, accounts-controller.ts, javaHandle.ts/javaStream.ts (the Java orchestrator seam)
    • antigravity/oauth.ts, plugin/{request,project,fingerprint,versions,models-fetch,...}.ts: the host I/O this driver owns (fetch-interception, OAuth, device fingerprint, version pool, model discovery); the request/response transform and decision logic lives in java/antigravity-provider (TeaVM-compiled, called via driver/javaHandle.ts)
    • commands.ts: cross-app slash-command definitions and their CLI actions
    • core-auth/: the core-auth library (git submodule, bundled into the output)
    • core/: shared intisy-ai/core submodule (config + logging + command framework), bundled in
  • dist/
    • bundled index.js, handler.js, cli.js (generated; not committed)

Installation

Via plugin-updater (recommended)

npx plugin-updater@latest init https://github.com/intisy-ai/antigravity-auth

Via npm

npm install @intisy-ai/antigravity-auth

Configuration

Config file: <configDir>/config/antigravity.json (edit via the loader or /antigravity-config set).

{
  "debug": false,
  "debug_tui": false,
  "keep_thinking": false,
  "claude_tool_hardening": true,
  "claude_prompt_auto_caching": false,
  "cli_first": false,
  "account_selection_strategy": "hybrid",
  "default_retry_after_seconds": 60,
  "max_backoff_seconds": 60,
  "request_jitter_max_ms": 0,
  "signature_cache": {
    "enabled": true,
    "memory_ttl_seconds": 3600,
    "disk_ttl_seconds": 172800,
    "write_interval_seconds": 60
  },
  "logging": true
}

| Key | Default | | --- | --- | | debug | false | | debug_tui | false | | keep_thinking | false | | claude_tool_hardening | true | | claude_prompt_auto_caching | false | | cli_first | false | | account_selection_strategy | "hybrid" | | default_retry_after_seconds | 60 | | max_backoff_seconds | 60 | | request_jitter_max_ms | 0 | | signature_cache | {"enabled":true,"memory_ttl_seconds":3600,"disk_ttl_seconds":172800,"write_interval_seconds":60} | | logging | true |

Commands

| Command | Description | Arguments | | --- | --- | --- | | /antigravity-config | View and change antigravity configuration | list | get <key> | set <key> <value> | | /antigravity-accounts | List signed-in Antigravity accounts | |

Dependencies

  • core
  • core-auth
  • sync-bridge

Logging

Logs are written to <configDir>/logs/YYYY-MM-DD/@intisy-ai/antigravity-auth-HH-MM-SS.log and are toggled by this plugin's logging config (default on). Console mirroring is global, off by default, and controlled by the shared config/settings.json logConsole flag.

License

MIT.