← Catalog

pi-antigravity-multi-account

Standalone Antigravity / Google Cloud Code provider with multi-account support for Pi Coding Agent

Extension

Install

Install with PiG

pig install npm:pi-antigravity-multi-account

Install with Pi

pi install npm:pi-antigravity-multi-account
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./src/index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.2.0 (README.md). PiG does not review it.

pi-antigravity-multi-account

Standalone Antigravity and Google Cloud Code provider extension for Pi Coding Agent with interactive multi-account switching and simultaneous quota monitoring.

npm version Pi Coding Agent Node Version License: MIT

pi-antigravity banner


Overview

pi-antigravity-multi-account is a native provider extension for the Pi Coding Agent that enables direct access to Google Cloud Code and Antigravity models (Gemini Flash, Claude 3.7/Sonnet, Opus, and GPT-OSS).

It features native OAuth authentication, seamless switching across multiple Google accounts, real-time quota pool monitoring, and automatic token refresh without requiring external CLI dependencies.

Features

  • Standalone Native Provider: Direct streamSimple implementation with zero external binaries or CLI dependencies.
  • Interactive Account Switcher: Select and switch accounts dynamically via a terminal picker (/antigravity.account).
  • Single-Step Alias Authentication: Link multiple Google accounts under custom named aliases (/antigravity.account login <alias>).
  • Simultaneous Quota Dashboard: Inspect remaining hourly and weekly quota pools across all stored accounts simultaneously.
  • Zero-Downtime Session Reloading: Switching accounts purges model/project caches and invokes live session reloading immediately.
  • Resilient Request Handling: Exponential backoff retry with jitter on 429 (Too Many Requests) and 503 (Service Unavailable).
  • Connection Prewarming: Pre-establishes TLS handshakes with persistent keep-alive pools to eliminate cold-start latency.
  • Secure Local Storage: Credentials are saved to ~/.pi/agent/antigravity-accounts.json with strict POSIX 0o600 permissions.

Compatibility

  • Requires Pi 1.3.0 or newer; development and regression tests target 1.3.0.
  • This remains a native Cloud Code provider, not a wrapper around agy. Existing Pi OAuth and account aliases stay independent of Google's shared OS-keyring login.
  • Google's official CLI installer resolved to 1.4.2 when checked on October 20, 2026. Its release version does not establish compatibility with this unofficial wire protocol.
  • The native User-Agent uses CLI 1.4.2 and build changelist 1001591392 extracted from the installed official binary. This is static verification, not a captured runtime request; enterprise/ADC authentication, shared keyring credentials, and full CLI parity are not claimed.
  • Pi request payload, response-header, and provider-stream observation hooks are supported.

Installation

pi install npm:pi-antigravity-multi-account

To upgrade:

pi update npm:pi-antigravity-multi-account

Via Git

pi install git:andrraa/pi-antigravity

To upgrade:

pi update git:andrraa/pi-antigravity

Multi-Account Guide

Manage accounts and quotas using the /antigravity.account command:

SubcommandSyntaxDescription
(none)/antigravity.accountOpen interactive terminal account picker
login/antigravity.account login <alias>Authenticate a new Google account via OAuth and assign an alias
use / switch/antigravity.account use <alias>Switch active account and trigger live session reload
list / ls/antigravity.account listList all saved accounts with active account indicator (● [active])
usage / quota/antigravity.account usageCheck real-time quota status across all saved accounts
save/antigravity.account save <alias>Save current active session credentials under a new alias
rename/antigravity.account rename <old> <new>Rename an existing account alias
delete / rm/antigravity.account delete <alias>Remove an account from storage

Common Workflows

# 1. Authenticate multiple Google accounts
/antigravity.account login work
/antigravity.account login personal

# 2. Check quota pools across all accounts
/antigravity.account usage

# 3. Switch active account
/antigravity.account use work

# 4. Open interactive account picker
/antigravity.account

Provider Commands

CommandDescription
/antigravity.account [subcommand]Manage multi-account profiles, switch accounts, and monitor quotas
/antigravity.usageShow active account quota pools (Gemini / Claude + GPT, 5h reset & weekly)

Supported Models
Model IDThinking SupportMax OutputDescription
antigravity/gemini-3.8-flashOff, Minimal, Low, Medium, High, XHigh64k tokensLatest generation multimodal agent model
antigravity/gemini-3.7-flashOff, Minimal, Low, Medium, High, XHigh64k tokensHigh-performance multimodal reasoning model
antigravity/gemini-3.6-flashLow, Medium, High64k tokensFast agentic Flash model
antigravity/gemini-3.5-flashMinimal, Low, Medium, High64k tokensEfficient Flash model
antigravity/gemini-3.1-proLow, High~64k tokensAdvanced reasoning model
antigravity/claude-sonnet-4-6Thinking (Minimal to XHigh)64k tokensAnthropic Claude Sonnet with extended reasoning
antigravity/claude-opus-4-6Thinking (Minimal to High)64k tokensAnthropic Claude Opus with deep reasoning
antigravity/gpt-oss-120bMedium32k tokensOpen-source large parameter model
Configuration & Environment Variables
VariableDescriptionDefault
ANTIGRAVITY_BASE_URLOverride the Google Cloud Code endpoint URLhttps://cloudcode-pa.googleapis.com
ANTIGRAVITY_PROJECT_IDOverride Google Cloud Project ID explicitlyAuto-discovered or derived from user email
ANTIGRAVITY_NO_PREWARMDisable TLS prewarming on extension load (1 or true)Disabled (prewarming enabled)
ANTIGRAVITY_USER_AGENTCustom User-Agent header stringStandard Google Cloud Code client user agent
Publishing & Releases
# Bump version
npm version patch # or minor / major

# Publish to npm registry
npm publish --access public
Disclaimer & Terms of Use
  • This project is an independent, community-maintained, and unofficial extension. It is not affiliated with, endorsed by, sponsored by, or associated with Google LLC, Alphabet Inc., or Anthropic.
  • Use at your own risk. Users are solely responsible for compliance with the Terms of Service of Google Cloud, Google Accounts, and applicable third-party API agreements.
  • The authors assume no liability or responsibility for account restrictions, suspensions, data loss, quota depletion, or billing impact resulting from the use of this software.

License

This project is licensed under the MIT License.