[TARGETS: APP | IDE | CLI][STORAGE: AES-256-GCM][RUNTIME: FASTIFY + ELECTRON][LICENSE: MIT]

AUTONOMOUS CREDENTIAL POOLING & CONTEXT SWITCHER FOR GOOGLE ANTIGRAVITY

Desktop account switcher, multi-account manager, and context failover switcher for Google Antigravity and the agy CLI. Pools multi-account OAuth tokens with automated 429 failover, auto-switches accounts and auto-resumes in-flight prompts without turn loss, and keeps mobile switcher streams running uninterrupted across account changes.

Terminal Quick-Start: Zero-Friction Installation

Install dependencies and launch Electron switcher dev instance

sh - bash - 80x24
$ pnpm install && pnpm start

Desktop Application Architecture & Live Interface

Multi-account OAuth pooling, real-time context token compaction, and automated quota failover.

[X: 000 | Y: 000][VIEWPORT: 1920x1080]
Antigravity Switcher Desktop Application Account Management Interface
Antigravity Switcher Desktop Application Account Management Interface // AES-256-GCM Local Database

ECOSYSTEM INTEGRATION MATRIX

Purpose-built for the tripartite Google Antigravity developer ecosystem across Desktop App, IDE Language Server, and Headless CLI.

[TARGET: DESKTOP_COMMAND_CENTER]

Antigravity App

Standalone desktop GUI session controller. Manages multi-window Electron processes, coordinates background process restarts, and preserves active chat turns across credential switches.

Failover Recovery:

Hot process restart with local SQLite WAL journal preservation.

[SYNC: HOT ELECTRON RESTARTS]
[TARGET: LANGUAGE_SERVER_ENVIRONMENT]

Antigravity IDE

AI-first code editor integration. Streams active OAuth tokens directly into the Language Server environment, tracks context window token saturation, and warns before silent prompt compaction.

Failover Recovery:

Transparent auth header injection into local language server socket.

[SYNC: LSP HEADER INJECTION]
[TARGET: HEADLESS_AUTOMATION_AGY]

Antigravity CLI

Headless automation interface for terminal workflows (agy <command>). Executes unattended long-running agent cascades with automated 429 quota rotation across pooled Google accounts.

Failover Recovery:

Autonomous token rotation loop with zero shell process termination.

[SYNC: ZERO-RESTART ROTATION]
[01 // DOWNLOAD MATRIX]

MULTI-PLATFORM BINARY DISTRIBUTION

Native binaries compiled for Apple Silicon, Intel x86_64, Windows, and Linux. No Rosetta emulation or translation layer overhead.

ARCHITECTURE:
[TARGET: macOS 12+ (M1/M2/M3/M4)][RECOMMENDED FOR YOUR SYSTEM]

Apple Silicon DMG

Antigravity.Switcher_0.5.1_arm64.dmg • ~131 MB
[SECURITY NOTICE // GATEKEEPER QUARANTINE]

macOS Gatekeeper Quarantine Override

Because Antigravity Switcher is distributed outside the Apple App Store, macOS marks unsigned or ad-hoc builds as quarantined. Run this terminal command once after installation to remove the quarantine extended attribute:

$xattr -cr "/Applications/Antigravity Switcher.app"
* Strips the extended attribute recursively without modifying app contents or requiring sudo.
RELEASE: v0.5.1•MIT OPEN SOURCE•STORAGE: AES-256-GCM
VIEW ON GITHUB RELEASES ↗
[01.1 // CRYPTOGRAPHIC INTEGRITY]

CRYPTOGRAPHIC INTEGRITY VERIFICATION

Verify the authentic SHA-256 cryptographic checksum of each distribution binary prior to local execution.

Official SHA-256 cryptographic hashes for Antigravity Switcher v0.5.1binaries across macOS, Windows, and Linux
TARGET BINARYFORMATSHA-256 CHECKSUM (64-HEX)VERIFICATION
Antigravity.Switcher_0.5.1_arm64.dmg
macOS 12+ (M1/M2/M3/M4)
DMGea9e6c7e...bf94df56
Antigravity.Switcher_0.5.1_x64.dmg
macOS 12+ (Intel Core)
DMG963f47a4...c25602de
Antigravity.Switcher-0.5.1-win32-x64-setup.exe
Windows 10/11 (64-bit)
EXEc048ecf1...eb5e87e6
Antigravity.Switcher-0.5.1-win32-arm64-setup.exe
Windows 11 on ARM (Snapdragon / Dev Kit)
EXE39188463...0f8ac361
Antigravity.Switcher_0.5.1_amd64.deb
glibc 2.31+ / Ubuntu 20.04+
DEBbea4d1cb...0e312303
Antigravity.Switcher_0.5.1_arm64.deb
Ubuntu / Debian aarch64
DEB092d44b7...05a2406d
* Local verification: shasum -a 256 <file> (macOS/Linux) or certutil -hashfile <file> SHA256 (Windows)
Hashes truncated on mobile viewports. 1-click copy extracts full 64-character digest.
[02 // CAPABILITY ARCHITECTURE]

CORE CAPABILITIES ARCHITECTURE

Six concrete systems engineering subsystems designed for continuous AI development workflows.

[CAP-01][SYS_VERIFIED]

Multi-Account Manager & Automatic Account Switcher

// Independent Multi-Environment Account Pooling
FRAME: CAP-01[ACTIVE_PIPELINE]
Independent Multi-Environment Account Pooling
LOCAL ENGINE TELEMETRY • ZERO CLOUD EGRESS
LATENCY: <1msSTATUS: 0x00_OK

Connect multiple Google accounts with automated round-robin rotation, auto-switch on 429 quota exhaustion, and in-flight prompt auto-resume. Switch active accounts directly across Antigravity App, Antigravity IDE, and headless CLI without manual re-login or configuration.

[TARGETS: APP | IDE | CLI][PROTOCOL: OAUTH 2.0 LOOPBACK]
[CAP-02][SYS_VERIFIED]

Remote Mobile Tethering & Cross-Account Switcher

// Local Wi-Fi & Remote Account Control
FRAME: CAP-02[ACTIVE_PIPELINE]
Local Wi-Fi & Remote Account Control
LOCAL ENGINE TELEMETRY • ZERO CLOUD EGRESS
LATENCY: <1msSTATUS: 0x00_OK

Monitor active cascades and switch Google accounts remotely from your phone. Built-in Fastify v5 reverse proxy keeps the live WebSocket stream active through account changes, ensuring auto-switch and auto-resume continue running uninterrupted on mobile.

[SERVER: FASTIFY v5][TUNNEL: CLOUDFLARE][PAIRING: TOKENIZED QR]
[CAP-03][SYS_VERIFIED]

System Tray Quick Account Switcher

// Zero-Latency Menu Bar & Tray Account Switching
FRAME: CAP-03[ACTIVE_PIPELINE]
Zero-Latency Menu Bar & Tray Account Switching
LOCAL ENGINE TELEMETRY • ZERO CLOUD EGRESS
LATENCY: <1msSTATUS: 0x00_OK

Lives unobtrusively in macOS Menu Bar and Windows System Tray. Switch accounts with a single click, inspect quota pool fractions at a glance, trigger global rotation hotkeys, or switch individual targets without opening the full desktop dashboard.

[RESIDENCY: BACKGROUND][HOTKEY: GLOBAL][OVERHEAD: <25MB RSS]
[CAP-04][SYS_VERIFIED]

Active Chat Auto-Resume After Switch

// Zero Turn Loss In-Flight Prompt Recovery
FRAME: CAP-04[ACTIVE_PIPELINE]
Zero Turn Loss In-Flight Prompt Recovery
LOCAL ENGINE TELEMETRY • ZERO CLOUD EGRESS
LATENCY: <1msSTATUS: 0x00_OK

When auto-switching accounts on 429 quota exhaustion or manual rotation, Switcher automatically captures in-flight conversation turns and checkpoints database journals. Awaits language server process readiness before re-dispatching prompts; keeps running continuously across desktop and mobile switcher alike.

[RECOVERY: CHECKPOINTED][GATE: LANGUAGE SERVER READY][FIDELITY: STRICT]
[CAP-05][SYS_VERIFIED]

Chat Hub: Context Window Telemetry & Compaction Monitoring

// Two-Tab Chat Hub Real-Time Token Breakdown
FRAME: CAP-05[ACTIVE_PIPELINE]
Two-Tab Chat Hub Real-Time Token Breakdown
LOCAL ENGINE TELEMETRY • ZERO CLOUD EGRESS
LATENCY: <1msSTATUS: 0x00_OK

Inspect real-time token utilization, context window headroom, and compaction risk across active and concurrent cascade sessions within the unified Chat Hub. Dynamically decodes ContextWindowMetadata protobufs with multi-level compaction warnings.

[TAB: CONTEXT TELEMETRY][DECODER: PROTOBUF][ALERTS: 3-TIER]
[CAP-06][SYS_VERIFIED]

Chat Health, Auto-Backup & Recovery Cockpit

// Automated SQLite Auto-Snapshots & 1-Click Restore
FRAME: CAP-06[ACTIVE_PIPELINE]
Automated SQLite Auto-Snapshots & 1-Click Restore
LOCAL ENGINE TELEMETRY • ZERO CLOUD EGRESS
LATENCY: <1msSTATUS: 0x00_OK

Comprehensive session integrity auditing, automated multi-tier SQLite backups before switches, and instant disaster recovery across App, IDE, and CLI targets. Delivers granular 1-click restore with schema-drift protection and broken orphan pruning.

[TAB: CHAT HEALTH][BACKUP: TIERED SQLITE][RECOVERY: 1-CLICK]
[AUTHENTIC DESKTOP RUNTIME // 1080P DARK MODE // FULL-HEIGHT SIDEBAR]

Authentic Application Showcase & Systems Architecture

Real 1080p application screenshots captured directly from the official Electron desktop runtime. Inspect the live air-gapped local Wi-Fi tethering, Protobuf token decoder, and SQLite chat health and disaster recovery cockpit.

[MODULE: REMOTE_LAN_TETHER][RUNTIME: ELECTRON 1080P DARK MODE]1920x1080 FHD
Antigravity Switcher Remote Control & Mobile Tethering 1080p Dark Mode Screenshot
// Decoupled Fastify Switcher Server & Cloudflare Tunnel SupervisorLocal WebSocket Command Bridge (Port 4040 Active)
[FASTIFY V5 REVERSE PROXY]

Zero-Cloud Local Loopback

Binds directly to loopback port 4040, hosting the standalone mobile PWA companion and bidirectional WebSocket telemetry stream with sub-millisecond local latency.

[AIR-GAPPED QR PAIRING]

Ephemeral One-Time PIN

Connect smartphones over the same Wi-Fi subnet via encrypted single-use pairing keys; zero external telemetry or cloud dependencies required.

[CLOUDFLARE QUICK TUNNEL // SWITCHER INGRESS]

Optional Public Supervisor

Optional one-click HTTPS/WSS tunnel supervisor via trycloudflare.com enables remote monitoring when away from local network environments.

[04 // ARCHITECTURE DEEP DIVE]

TECHNICAL ARCHITECTURE DEEP-DIVES

Rigorous systems-level audit: Fastify v5 IPC loopback, SQLite AES-256-GCM envelope encryption, and zero-copy Protobuf stream decoding.

High-throughput internal loopback proxy running on 127.0.0.1 with strict CORS validation, context-isolated IPC channels, and bidirectional WebSocket multiplexing.

// TECHNICAL GUARANTEES:
  • •Binds exclusively to local loopback (127.0.0.1) with dynamic port discovery, preventing exposure to adjacent LAN interfaces.
  • •Enforces strict CORS validation rejecting all foreign browser origins while permitting authorized local loopback clients and paired mobile tether sessions.
  • •Electron main-to-renderer bridge strictly maintains contextIsolation: true and nodeIntegration: false, isolating Node.js primitives behind typed preload IPC invokers.
// TYPESCRIPT IMPLEMENTATION:
const app = fastify({
  logger: false,
  forceCloseConnections: true,
  bodyLimit: 10 * 1024 * 1024, // 10MB
});

await app.register(fastifyCors, {
  origin: ['http://127.0.0.1:*', 'http://localhost:*'],
  credentials: true,
});

Local database persistence using better-sqlite3 with application-layer AES-256-GCM envelope encryption. Master cryptographic key is safely anchored in native OS Keyrings.

// TECHNICAL GUARANTEES:
  • •Antigravity Switcher persists cloud accounts and session tokens in ~/.antigravity-switcher/cloud_accounts.db using better-sqlite3 with WAL journal mode.
  • •All OAuth refresh tokens and secrets are protected via application-level AES-256-GCM envelope encryption (format: ags_enc_v1:{iv}:{authTag}:{ciphertext}).
  • •The master cryptographic key is generated via CSPRNG and anchored into the native OS credential manager via keytar (macOS Keychain, Windows Credential Manager, Linux Secret Service).
  • •Zero plaintext credentials on disk, zero cloud-managed encryption keys, and zero third-party telemetry egress.
// TYPESCRIPT IMPLEMENTATION:
// Application-level AES-256-GCM envelope encryption
const cipher = crypto.createCipheriv('aes-256-gcm', masterKey, iv);
const ciphertext = Buffer.concat([cipher.update(token, 'utf8'), cipher.final()]);
const authTag = cipher.getAuthTag();
const payload = `ags_enc_v1:${iv.toString('hex')}:${authTag.toString('hex')}:${ciphertext.toString('hex')}`;

Zero-copy extraction of live ContextWindowMetadata directly from Antigravity SQLite trajectory BLOBs with automatic 500-session FIFO eviction pruning.

// TECHNICAL GUARANTEES:
  • •Extracts TokenAccounting varints directly from the gen_metadata table (data BLOB column) in ~/.gemini/antigravity/conversations/{cascadeId}.db without write contention.
  • •Computes accurate real-time token saturation across Prompt Cache, Fresh Input, Thinking Tokens, and Generation Output.
  • •Detects orphaned records in conversation_summaries.db whose underlying trajectory DBs were evicted by Google Antigravity 500-session FIFO limit, executing resilient atomic cleanup with SQLITE_BUSY retry loops.
// TYPESCRIPT IMPLEMENTATION:
// Zero-dependency binary Protobuf varint decoder
function readVarint(buf: Uint8Array, offset: number): [number, number] {
  let result = 0, shift = 0, pos = offset;
  while (pos < buf.length) {
    const byte = buf[pos++];
    result += (byte & 0x7f) * Math.pow(2, shift);
    if ((byte & 0x80) === 0) return [result, pos];
    shift += 7;
  }
  return [result, pos];
}
[04.5 // ARCHITECTURAL BENCHMARK]

DEVELOPER TOOLING COMPARISON MATRIX

Direct technical evaluation of Antigravity Switcher against manual session re-logging and third-party web proxies across 6 core architectural dimensions.

Architectural Dimension
Antigravity Switcher
[RECOMMENDED // NATIVE UTILITY]
Manual Account Switching
[MANUAL SCRIPTS // SHELL HACKS]
Third-Party Web Proxies
[CLOUD SERVICE // THIRD-PARTY]
[01]Credential Storage & Security

How OAuth refresh tokens and keys are encrypted on disk

[NATIVE KEYRING]

Native OS Keyring (macOS Keychain, WinCred, Secret Service) + AES-256-GCM local SQLite encryption.

[PLAINTEXT ENVS]

Plaintext browser cookies, export ENV vars, or unencrypted shell script configs prone to exposure.

[CLOUD EXPOSURE]

Tokens stored on remote third-party cloud servers with potential multi-tenant vulnerability.

[02]Multi-Account Switching & Ecosystem Sync

Simultaneous profile switching and synchronization across App, IDE, and agy CLI

[SIMULTANEOUS SYNC]

Independent tripartite synchronization across Antigravity App, IDE Language Server, and agy CLI.

[FRAGMENTED DRIFT]

Requires manual logout/login per client; desynchronized quotas between agy CLI and IDE sessions.

[BROWSER ONLY]

Limited to browser wrappers or bespoke API endpoints; zero integration with native Antigravity IDE/CLI.

[03]HTTP 429 Failover & Auto-Resume

Behavior upon hitting hard frontier model quota ceilings

[AUTOMATIC FAILOVER]

Sub-second 429 quota exhaustion detection with automated account auto-switch & in-flight prompt auto-resume across desktop and mobile switcher.

[CASCADE BREAKDOWN]

Hard cascade failure on 429 response; requires manual developer intervention and restart of lost context.

[GENERIC TIMEOUT]

HTTP 504 gateway timeouts on quota hit; zero state rollback or automatic credential rotation.

[04]Context Window & Compaction Alerts

Active token tracking and pre-summarization compaction warnings

[REAL-TIME PROTOBUF]

Direct SQLite gen_metadata Protobuf varint decoding (Tags 2, 5, 9, 10) with 3-tier visual risk alerts.

[BLIND EXHAUSTION]

Zero token visibility; silent context compaction unannouncedly purges instructions and reasoning state.

[ESTIMATED COUNTER]

Rudimentary character count approximations; no insight into actual upstream SQLite Protobuf allocations.

[05]Broken SQLite Conversation Cleaner

Handling corrupted conversation_summaries.db and FIFO crashes

[ATOMIC ACID PRUNE]

Project-isolated orphan detection in conversation_summaries.db with rollback guarantee against ~500 FIFO bugs.

[MANUAL DB WIPE]

Requires manual SQLite CLI debugging or wiping the entire conversations directory, destroying all history.

[NOT APPLICABLE]

No workstation filesystem access; completely incapable of fixing local Antigravity client database corruptions.

[06]Mobile Companion Remote Control

Tethering mobile devices without public cloud exposure

[AIR-GAPPED LAN TETHER]

Embedded Fastify v5 reverse proxy on port 4040, ephemeral 6-digit PIN, air-gapped QR pairing over local Wi-Fi. Auto-switch and auto-resume continue running uninterrupted on mobile when accounts change.

[UNSUPPORTED]

No remote functionality; workstation must be directly attended for all actions and quota resets.

[THIRD-PARTY TUNNELS]

Requires opening router ports or routing sensitive developer code through third-party hosted tunneling services.

[05 // KNOWLEDGE BASE]

TECHNICAL FREQUENTLY ASKED QUESTIONS

Uncompromising technical specifications addressing macOS Gatekeeper quarantine, SHA-256 verification, zero-cloud AES-256-GCM encryption, SQLite FIFO crash mechanics, and local loopback tethering.

Antigravity Switcher is an open-source developer utility distributed directly via GitHub Releases rather than the Apple App Store. Modern versions of macOS automatically attach an extended quarantine attribute (com.apple.quarantine) to unnotarized binaries downloaded via web browsers. To resolve this and launch the application normally, open Terminal and execute the xattr command below to recursively strip the quarantine flag.

// TERMINAL COMMAND:
$ xattr -cr "/Applications/Antigravity Switcher.app"

Every official release publishes cryptographic SHA-256 checksums alongside compiled platform artifacts. You can verify binary integrity directly in your terminal before launching. The resulting 64-character hexadecimal hash must match the published release checksum table exactly.

// TERMINAL COMMAND:
$ shasum -a 256 Antigravity.Switcher_0.5.1_arm64.dmg

No. Antigravity Switcher operates under an uncompromising zero-cloud-egress architecture. All Google OAuth refresh tokens and session metadata are stored locally in an AES-256-GCM encrypted SQLite database (~/.antigravity-switcher/cloud_accounts.db). Cryptographic encryption keys are derived through your operating system's native keyring (macOS Keychain, Windows Credential Manager, Linux Secret Service). Telemetry is stripped, and mobile remote control communicates strictly over local loopback via an ephemeral Fastify reverse proxy.

Google Antigravity enforces an internal ~500 conversation FIFO ceiling. When total sessions exceed this limit, older trajectory Protobuf files are silently evicted from disk while their summary index pointers remain in SQLite (conversation_summaries.db), triggering instant freeze crashes when clicked. Antigravity Switcher's atomic Broken Chat Cleaner scans the local database, reconciles orphaned summary rows against physical disk trajectories, and prunes them within an atomic ACID transaction protected by SQLITE_BUSY retry handling.

Antigravity Switcher binds a non-invasive, read-only file handle to Google Antigravity's local SQLite gen_metadata table. It decodes Protocol Buffer varints to extract exact token distributions across wire formats: Tag 2 (fresh input), Tag 5 (cached tokens), Tag 9 (thinking tokens), and Tag 10 (output tokens). By calculating total utilization against verified Antigravity client limits (160k for Claude, 256k for Gemini), it triggers multi-tier visual alerts (Normal <70%, High Pressure 70-89%, Critical Risk >=90%) before Antigravity automatically compacts history and degrades reasoning.

Antigravity Switcher runs an embedded Fastify v5 HTTP and WebSocket reverse proxy bound to local loopback (port 4040). It generates an air-gapped QR code containing a rotating, ephemeral 6-digit authentication PIN. When scanned by a mobile device on the same local Wi-Fi subnet, the companion browser establishes a secure WebSocket connection verified via constant-time token comparison (crypto.timingSafeEqual). Developers can monitor live cascades, check remaining quota pools, and switch active Google accounts directly from their phone. Crucially, the auto-switch and auto-resume engine keeps running continuously on the mobile switcher during account changes without session interruption. Zero code snippets, tokens, or chat logs are ever transmitted to third-party cloud servers.

Antigravity Switcher adheres strictly to standard Google OAuth 2.0 loopback authentication specifications identical to official Antigravity CLI and IDE workflows. When switching accounts or rotating profiles upon 429 quota exhaustion, it performs zero reverse engineering of private Google internal endpoints, zero token tampering, and zero payload alteration. The auto-switch and auto-resume architecture preserves in-flight prompt checkpoints and streams live status across desktop and mobile companion displays. Switcher simply manages and rotates valid OAuth tokens on your local workstation just as a human developer would.

Yes. All core subsystems (local SQLite credential storage, tray switching, Broken Chat Cleaner, context window telemetry decoding, and local Wi-Fi remote tethering) operate 100% offline without internet connectivity. Internet access is only utilized when your local Antigravity client communicates directly with Google upstream AI model endpoints.