aswap: multi-account switching for the Antigravity CLI, with failover when quota runs out
Description and use
aswap automates Google account switching for the Antigravity CLI, preventing task interruption due to quota exhaustion and displaying all accounts’ quota status in a table.
Problem
Using the Antigravity CLI (agy) with multiple Google accounts, switching required signing out and back in, and tasks stopped abruptly when an account ran out of quota.
Outcome
aswap enables seamless multi‑account usage of agy, preventing task interruption due to quota limits and providing a unified view of all accounts’ quota status.
Workflow
- Add accounts with
aswap addafter signing in to agy with each account. - List accounts and quota with
aswap list. - Switch accounts manually with
aswap switchor automatically withaswap auto. - Run long tasks with
aswap runoraswap exec -- -p "..."to enable automatic failover when quota is exhausted. - aswap monitors agy logs, holds the exhausted account until reset, selects the next account with most quota, and restarts agy with the same conversation and a prompt to continue.
Evidence
Switch between Google accounts without signing out, let aswap switch for you before an account runs out, see every account's quota in one table, and run long print-mode tasks that carry on to the next account when one hits its limit.
aswap run starts agy in your terminal and watches its log. When the account hits its quota, aswap: holds that account out until the reset time agy reports, picks the next account with the most quota left, restarts agy on that account with the same conversation and a short "please continue" prompt.
After a switch, aswap runs agy models to prove the login works. That call lists models and spends no quota.
- Record date: 2026-10-02T07:40:54.606Z