Developer hrmasss has released antigravity-swap, a command-line tool named aswap that solves a persistent pain point for users of the Antigravity CLI (agy): managing multiple Google accounts and surviving quota limits without interrupting long-running tasks. The tool provides automatic rotation and quota-aware failover, allowing developers to switch between accounts without the tedious sign-out and sign-in process that previously halted workflows.

Why It Matters for Builders

The core value proposition is continuity. When an account hits its quota mid-task, aswap detects the failure, holds that account until its reset time, selects the next account with the most available quota, and restarts agy with the same conversation context. This is particularly useful for print-mode tasks and unattended scripts where manual intervention isn't an option. The tool explicitly distinguishes between Gemini and Claude/GPT model pools, tracking separate 5-hour and weekly windows for each.

Technical Implementation Details

Unlike claude-swap, which can swap credentials under a live Claude Code session, aswap must restart the agy process because agy keeps login state in memory. The tool leverages agy's ability to resume conversations via local files and the --conversation flag. It also handles edge cases like agy's internal retry logic for quota errors, ensuring only final failures trigger a switch, and manages first-run setup flags to avoid theme picker interruptions during restarts.

Installation and Platform Support

aswap is available via uv tool install antigravity-swap, pipx, or standalone binaries for Linux (x86_64, aarch64), macOS (Apple silicon), and Windows. On Linux, each account gets its own agy directory for side-by-side operation, while Windows uses Credential Manager with token renewal swaps to maintain quota visibility. The tool offers multiple switching strategies, including 'most-quota' (default), 'rotate', 'next-available', and 'consume-first'.

Key Takeaways

  • aswap provides quota-aware failover for Antigravity CLI, preventing task interruption when accounts hit limits.
  • It tracks separate quota pools for Gemini and Claude/GPT models across 5-hour and weekly windows.
  • The tool requires process restarts on failover due to agy's in-memory login state, unlike Claude Code's file-based credentials.
  • Inspired by claude-swap, it offers multiple switching strategies and cross-platform installation options.

The Bottom Line

If you're juggling multiple Google accounts with Antigravity CLI, aswap eliminates the manual overhead and prevents quota-induced workflow breaks, making it a practical addition to any agy-heavy development setup.