Skip to content

Repository files navigation

agym (Antigravity Manager)

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.


πŸ“Έ Visual Showcase

⚑ Interactive Account & Model Quota Dashboard

Live multi-window quota tracking (weekly & 5-hour rolling limits) for Gemini and Claude models with instant account switching.

Interactive TUI Dashboard


⚑ Features

  • πŸ–₯️ 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, and fish.
  • πŸ“¦ Single Standalone Binary: Zero runtime dependencies.
  • 🍎 Native macOS Support: Uses the macOS Keychain and ships Apple Silicon and Intel builds.

πŸ“₯ Installation

Quick One-Liner (Pre-compiled Binary)

curl -sSL -H "Accept: application/vnd.github.v3.raw" https://api.github.com/repos/Praveensenpai/agym/contents/install.sh | bash

Build from Source

git clone https://github.com/Praveensenpai/agym.git
cd agym
chmod +x install.sh
./install.sh

The 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.


⚑ Shell Autocompletions Setup

install.sh automatically installs completions for bash, zsh, and fish.

If installing manually from source or via cargo install, generate completions for your shell:

Bash

mkdir -p ~/.local/share/bash-completion/completions
agym completions bash > ~/.local/share/bash-completion/completions/agym

Zsh

mkdir -p ~/.zsh/completion
agym completions zsh > ~/.zsh/completion/_agym

Fish

mkdir -p ~/.config/fish/completions
agym completions fish > ~/.config/fish/completions/agym.fish

πŸš€ Usage

1. Interactive Ratatui TUI (Default)

Run agym with no arguments to launch the full-screen Ratatui TUI dashboard:

agym

TUI Dashboard Keybindings:

  • j / k or ↓ / ↑: Navigate through accounts/sessions
  • Enter: Switch account / Resume session
  • s / Tab: Switch between Accounts View and Sessions Explorer
  • Space / v: Toggle session detail preview panel
  • n: Log into a new account
  • d: Delete selected account
  • r: Refresh live quota metrics (background thread, 15s debouncing)
  • /: Live search & filter
  • q or Esc: Quit TUI

2. Direct Account Switch

Switch to a saved account directly by name or email:

agym user@gmail.com

3. Save Current Account Session

Save your currently active Antigravity login session:

agym save

πŸ‘₯ Contributors

Special thanks to the open-source contributors helping improve agym:

  • @whereareiam β€” Native macOS Keychain backend & multi-architecture release builds.

πŸ“œ License

MIT Β© Praveensenpai

About

Instant multi-account switcher for Antigravity CLI (agy)

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages