agy~swap
Automation

Shell Prompt Statusline (Starship, tmux, zsh), Watch Alerts & Scripted Rotation

Display your active Google Antigravity account and remaining quota in Starship, tmux, or zsh, export Prometheus metrics, and automate account rotation.

Add Active Account and Quota to Your Prompt

agy-swap statusline renders a compact single-line summary of your active Google account and tighter pool quota without blocking interactive shells.

# Auto-configure Starship, tmux, or zsh
agy-swap statusline install

# Print once for custom scripts or status bars
agy-swap statusline

Scripted Rotation, Threshold Watchers & Prometheus Metrics

Every check and switch action emits machine-readable JSON with --json so build scripts, agent loops, and monitoring tools can react cleanly before hitting hard 429 walls.

# Poll and notify when quota crosses thresholds
agy-swap watch

# Inspect JSON output for CI or local wrappers
agy-swap recommend --json
agy-swap next --family claude --json

# Export Prometheus text exposition format
agy-swap metrics prometheus

# Install shell tab-completion
agy-swap completion zsh

Scheduling & Non-Interactive Safety Notes

Frequently Asked Questions

Does agy-swap statusline wait for standard input if run directly in a terminal?

No. statusline reads piped JSON only when stdin is non-interactive, returning immediately when invoked from a terminal prompt.

Which shells and multiplexers are supported?

Statusline integration supports Starship, tmux, and zsh; shell completion supports bash, zsh, fish, and PowerShell.

Does agy-swap metrics prometheus expose a network listener?

No background HTTP server runs by default. The command prints metrics directly to standard output for local collectors.

Try agy-swap in your terminal

Install with Homebrew, shell, PowerShell, or Go source, then save your accounts and inspect live quotas locally.

brew install aklkbqx/agy-swap/agy-swap
curl -fsSL --proto '=https' --tlsv1.2 https://agy-swap.aklkbqx.com/install.sh | bash