Instant multi-account switcher for Antigravity CLI (agy)
agym allows you to switch between multiple Antigravity accounts instantly without logging out, track real-time Gemini & Claude model quotas across all accounts, and jump directly into previous chat sessions.
Live multi-window quota tracking (weekly & 5-hour rolling limits) for Gemini and Claude models with instant account switching.
- π₯οΈ Interactive Ratatui TUI Dashboard: High-performance full-screen TUI dashboard.
- π Instant Account Switching: Switch Antigravity accounts in <10ms without logging out.
- π¬ Embedded Session Explorer: Press
[s]or[Tab]inside the TUI dashboard to browse and jump directly into previous Antigravity sessions (agy --conversation <CID>). - π Dual Model Quota Display: Tracks both Gemini and Claude model quota pools (
[Gemini: X% | Claude: Y%]). - β‘ Non-Blocking Background Refresh: Press
[r]inside TUI to fetch fresh live quota metrics asynchronously with 15s debouncing. - β Seamless New Session Flow: Press
[n]inside TUI to back up your active session and log into a new account. - ποΈ In-Menu Account Deletion: Safely delete unused account profiles directly from the interactive TUI menu (
[d]). - π οΈ CLI Subcommands: Streamlined CLI support for direct account switching (
agym <email>) and saving sessions (agym save). - π Shell Autocompletions: Native autocompletion support for
bash,zsh, andfish. - π¦ Single Standalone Binary: Zero runtime dependencies.
- π Native macOS Support: Uses the macOS Keychain and ships Apple Silicon and Intel builds.
curl -sSL -H "Accept: application/vnd.github.v3.raw" https://api.github.com/repos/Praveensenpai/agym/contents/install.sh | bashgit clone https://github.com/Praveensenpai/agym.git
cd agym
chmod +x install.sh
./install.shThe installer selects the matching Linux x86_64, macOS Apple Silicon, or macOS Intel release asset. If a compatible asset is unavailable, it falls back to a local source build.
install.sh automatically installs completions for bash, zsh, and fish.
If installing manually from source or via cargo install, generate completions for your shell:
mkdir -p ~/.local/share/bash-completion/completions
agym completions bash > ~/.local/share/bash-completion/completions/agymmkdir -p ~/.zsh/completion
agym completions zsh > ~/.zsh/completion/_agymmkdir -p ~/.config/fish/completions
agym completions fish > ~/.config/fish/completions/agym.fishRun agym with no arguments to launch the full-screen Ratatui TUI dashboard:
agymj/korβ/β: Navigate through accounts/sessionsEnter: Switch account / Resume sessions/Tab: Switch between Accounts View and Sessions ExplorerSpace/v: Toggle session detail preview paneln: Log into a new accountd: Delete selected accountr: Refresh live quota metrics (background thread, 15s debouncing)/: Live search & filterqorEsc: Quit TUI
Switch to a saved account directly by name or email:
agym user@gmail.comSave your currently active Antigravity login session:
agym saveSpecial thanks to the open-source contributors helping improve agym:
- @whereareiam β Native macOS Keychain backend & multi-architecture release builds.
MIT Β© Praveensenpai
