Never Hit a 429 Quota Wall on Antigravity CLI Again.
agyr rotates multiple Google accounts for official agy automatically. Pure Bash swapper with no proxy servers, real-time quota inspection, and conversation resume.
curl -fsSL https://agyr.pages.dev/install.sh | bashOpen source · MIT · Pure Bash · Linux & Windows
- No background daemon
- Pure Bash CLI script. No persistent background daemons, listening ports, or Node/Go containers.
- Runs official agy binary
- Direct execution of the official Antigravity CLI binary with zero binary modifications or MITM proxies.
- Tokens stay local (chmod 600)
- OAuth tokens stored on local disk with chmod 600 permissions or native OS Credential Manager.
Built for Serious Antigravity Power Users
Switch between the live multi-account quota monitor and autonomous 429 auto-failover engine.
| ACCOUNT | GEMINI 5H | GEMINI WEEK | STATUS |
|---|---|---|---|
work-1 | 100%09/11/2026 05:00 PM | 96%16/11/2026 09:30 AM | ready |
work-2 | 28%09/11/2026 02:15 PM | 84%15/11/2026 10:00 PM | ready |
personal-1 | 4%09/11/2026 01:45 PM | 12%14/11/2026 06:20 PM | low |
personal-2 | 0%09/11/2026 04:30 PM | 75%16/11/2026 11:00 AM | cooldown, 3h42m left |
backup | 100%09/11/2026 05:00 PM | 100%16/11/2026 12:00 PM | ready |
Zero context loss: When a 429 occurs, agy-run extracts the reset countdown, switches slots, and passes --conversation <id> so the replacement account continues immediately without reprocessing earlier tokens. How to fix 429 quota errors.
Why agyr
Engineered specifically for the official Google Antigravity CLI. Direct process invocation, local credentials, and bottleneck-aware scheduling.
100% Local & Privacy-First
Your OAuth tokens stay strictly on your local filesystem under strict permissions (chmod 600) or native Windows Credential Manager. Zero third-party telemetry, zero external servers.
- Tokens stored in
~/.gemini/antigravity-cli/accounts/ - Atomic file writes & cross-platform file locking
- Windows Credential Manager (
gemini:antigravity) support
Official Binary, No Proxy
Unlike proxy-based tools that route requests through another server, agyr directly invokes the official agy binary from your machine and only swaps which account it signs in with.
- Authentic Google CLI binary & TLS/HTTP2 fingerprints
- Clean D-Bus keyring isolation without binary modification
- Zero proxy daemons listening on local network ports
Smart Scheduling & 429 Failover
agyr tracks Google quota windows dynamically, selecting ready replacement accounts whose weekly limit resets soonest while respecting slot locks.
- Weekly-reset-first selection (soonest weekly reset)
- Per-slot rotation locks (
agyr lock) for shared accounts - Automatic
--conversationcontext handover
Native CLI swapper vs proxy routers
How proxy architectures (like 9router or MITM daemons) differ from a local swapper like agyr, which rotates accounts at the process level. Read the detailed comparison.
| Criteria | agyr (native CLI swapper) | Proxy routers (e.g. 9router) |
|---|---|---|
Execution Architecture How requests are transmitted to Google | Direct local CLI execution via official agy binary. No proxy middleman. | Local or remote reverse HTTP/SOCKS proxy daemon intercepting HTTP traffic. |
Request Origin What Google sees | Requests come from the official agy binary with its normal TLS fingerprint, from your own machine and network. | Requests can carry a proxy-generated TLS signature and may come from shared or datacenter IPs, depending on deployment. |
Credential Privacy Token storage and handling | OAuth tokens remain chmod 600 on disk or OS Credential Manager. Never read or sent anywhere. | Tokens must be decrypted or stored in proxy daemon memory, vulnerable to leakage. |
Antigravity CLI Updates Google upstream compatibility | Compatible with latest agy releases immediately upon updating. | Can break when Google updates backend protobufs, SSE protocols, or header signatures. |
429 Failover & Session Resume Context retention during long tasks | Transfers --conversation <id> immediately to next account. Zero prompt token waste. | May drop the connection abruptly or require a full prompt replay. |
System Resource Overhead RAM & background CPU footprint | Lightweight Bash script with no background process when idle. | Runs as a Node.js, Go, or Docker process in the background. |
Operating System Support Cross-platform integration | Linux (D-Bus keyring isolation) & Windows (Credential Manager + .cmd wrappers). | Often requires loopback adapters, certificates, or Docker networking. |
Get started in four steps
Add accounts once through browser OAuth. agyr manages stored credentials across sessions. Full multi-account guide.
- 1.
Sign in and save Account #1
Launch
agyrto trigger Google OAuth login in your browser, then save the active session into slotacc1.bash# Opens browser for account 1agyr# Save credentials into slot 'acc1'agyr save acc1 - 2.
Add Account #2 (and more)
Use
agyr forgetto clear local active tokens without revoking stored slots, then sign in with your next Google account.bash# Clears active login (acc1 is safe)agyr forget# Sign in to account 2 in browseragyragyr save acc2 - 3.
Inspect quota status
Query all configured accounts in parallel to inspect 5-hour and weekly percentages with status indicators.
bash# Multi-account status dashboardagyr list# Or read cached valuesagyr list -c - 4.
Run automated tasks with 429 failover
Use
agy-runfor automated coding tasks. If an account hits a rate limit, it switches slots and continues.bash# Automated execution with 429 failoveragy-run --add-dir . \--prompt "Refactor database queries and add indexes"
Save Claude and Gemini tokens
agyr includes a sub-agent orchestration skill (skills/agy/) built for Claude Code, Antigravity, and Gemini agents.
Claude/Gemini (architect & reviewer)agy-task (dedicated coder)agyr auto (429 rotation)
Isolated Git worktrees
Every task runs in a dedicated git worktree with scope boundary verification.
Reviewer & sub-agent coder pattern
Claude or Gemini acts as architect and reviewer while local agy writes code, saving primary session tokens.
# Role split: Orchestrator delegates to agy sub-agentRole: Main session = Reviewer & ArchitectSub-agent: agy = Dedicated Coder# Run implementation task in isolated worktreeagy-task run \ --name "jwt-auth" \ --task .agy-sessions/auth.task.txt \ --scope "backend/internal/auth" \ --model gemini-4-hydrogen-high# agy-run handles 429 rotation automatically:# - Switches accounts if quota hits limit# - Resumes exact same conversation# - Main session reviews git diff afterwardsCommand Reference
Commands and switches supported by agyr, agy-run, and agy-task.
Account Management
agyr list- Inspect real-time quota across all accounts in parallel. Colors indicate percentage health: green (>40%), yellow (11–40%), red (≤10%).
agyr use <name>- Switch the active interactive account to
<name>. Swaps tokens atomically with backup safeguards. agyr save <name>- Saves the current active interactive login into a named slot in
~/.gemini/antigravity-cli/accounts/. agyr swapui <n1> <n2>- Swaps the display row order of two accounts in
agyr listwithout affecting rotation heuristics. Use--resetto revert. agyr forget [-f]- Drops the local active login to sign in to another account. Refuses if unsaved unless
-fis passed. agyr del <name>- Permanently deletes a saved slot token and associated quota/cooldown state. (Alias:
agyr rm). agyr lock <name>- Excludes a slot from automatic rotation (
agyr next,rotate, andagy-run). Remains usable manually viaagyr use. agyr unlock <name>- Re-enables automatic rotation for a previously locked slot.
agyr locked [<name>]- Lists all locked slots, or exits 0/1 to test whether
<name>is locked without taking state locks.
Quota & Utilities
agyr list --claude- Includes shared Claude 5-hour and Claude weekly quota columns (plus GPT if supported) alongside Gemini quotas when width permits.
agyr list -c- Reads cached quota from local state without invoking the
agybinary. agyr list -w- Wide mode: includes Claude and GPT quotas and adapts across responsive layout tiers to fit the terminal width.
agyr test [name...]- Sends probe requests to accounts to initialize rolling 5-hour quota windows concurrently.
Automation & AI
agyr rotate [cooldown]- When interactive
agyruns out of quota, marks current account in cooldown and switches to the next ready account. agy-run --prompt "..."- Runs headless
agytasks with automated 429 failover. Terminates process on 429 errors, rotates accounts, and resumes session. agy-task run --name ...- Orchestrates sub-agent coding tasks inside dedicated git worktrees with strict scope enforcement and compact exit summaries.
Native support on Linux and Windows
Platform layers handle credential isolation directly on your machine.
Linux backend
- D-Bus Session Bus Bypass: Disables GNOME Keyring fallback with
DBUS_SESSION_BUS_ADDRESS=unix:path=/nonexistentsoagyreads swapped tokens cleanly. - Parallel Quota Measurement: Spawns parallel probe environments in temporary home dirs via
setsidwithout modifying live session tokens. - Process Group Termination: Terminates orphaned sub-agent processes and task groups without leaving zombie processes.
Windows backend
- Windows Credential Manager: Directly swaps credentials in
gemini:antigravityusing native PowerShell API wrappers. - All Shells Supported: Generates both Git Bash scripts and native Windows
.cmdwrappers for PowerShell and Command Prompt (CMD). - Argument Conversion Guard: Bypasses MSYS path rewrites via
MSYS2_ARG_CONV_EXCLand terminates Windows process trees viataskkill //T //F.
Frequently asked questions
Can Google ban my accounts for using agyr?
We cannot promise that. Unlike proxy routers (which send traffic through another server), agyr is a local authentication swapper. It runs Google's official agy binary directly on your machine and only changes which saved account's token agy uses, the same as signing out and back in by hand. Whether Google allows several accounts depends on its terms for your plan, so read them before you rely on rotation.
How does agy-run maintain conversation context after hitting a 429?
When a 429 quota exhaustion is detected, agy-run terminates the session, marks that slot on cooldown, switches the active token file to the best available account, and launches agy --conversation <existing-conversation-id>. Because Antigravity's conversation history is stored on disk or server session, the new account resumes the same context without re-reading files.
What happens if all my saved accounts run out of quota simultaneously?
If the entire account pool is on cooldown, agyr and agy-run exit with code 5 (or code 3 for interactive rotate) and display the earliest reset time in your local timezone (e.g. "all accounts on cooldown, earliest reset in 48m at 05:15 PM"). It does not loop or burn tokens.
Does agyr work with Claude Code or Gemini CLI agents?
Yes. The repository ships with skills/agy/, which lets Claude Code, Antigravity, and Gemini act as orchestrators and reviewers while delegating repetitive coding tasks to agy-task in isolated git worktrees.
Is agyr completely free? How can I support independent development?
Install agyr in one command
Run the installer script to configure automatic account rotation for the Antigravity CLI.
curl -fsSL https://agyr.pages.dev/install.sh | bashSupport the project
agyr is free software licensed under MIT, with zero telemetry and no tracking. If it saves you time avoiding quota lockouts in your coding sessions, donations help maintain continuous updates and testing.
Crafted by Trần Lượng (@luongtrz)