← Plugins

Antigravity Switch

Lightweight manual Antigravity (agy) account switcher and sidebar quota bar for Paseo.

$ clisbot plugin add yantaolu/agy-switch
Report a bug
Lu YantaoSidebar0installsbe49842b7151Source
Antigravity Switch screenshot 1

Antigravity Switch is a lightweight Paseo plugin for manually switching local Antigravity (agy) accounts and viewing the active account's 5-hour and weekly quota in the sidebar status bar.

The plugin mounts a single compact quota bar in Paseo's sidebar footer styled to match the built-in usage summary. Clicking the bar opens a popover to inspect reset countdowns, refresh quota on demand, save the current login, add another Google account, or switch manually between saved account snapshots. When either the 5-hour or weekly quota reaches 0% and multiple accounts are saved, the footer bar switches in place to a one-click button to manually switch to the next saved account and refresh its quota. It also registers a Paseo usage source so the active account appears in the built-in Usage modal without duplicating the bottom summary row.

Setup

  • Requires Paseo 0.18.2 or later and the official Antigravity (agy) CLI installed on the daemon host.
  • Supported on macOS and Linux (including SSH sessions).
  • Sign in to Antigravity in your terminal with agy, or click the Antigravity quota bar in Paseo's sidebar footer and choose "Add account" to sign in through the official agy acp --disable-telemetry --login OAuth flow.
  • To switch accounts, end any running agy sessions first, select a saved account in the popover, confirm the switch, and open a new session.

Data access, permissions, and limitations

  • Local commands: executes agy usage --json to read quota for the active login only, agy acp --disable-telemetry --login when the user explicitly starts adding an account, ps to detect running agy sessions before switching, and macOS /usr/bin/security (via stdin) to read and update the service="gemini", account="antigravity" login keychain entry.
  • Network requests: the plugin makes no direct network calls of its own. All authentication and quota requests are performed by the local agy CLI with Google's official endpoints.
  • Local storage: saves account metadata, credential snapshots, and the latest quota cache under ~/.paseo/agy-switch/ with directory permissions 0700 and file permissions 0600. Temporary login directories created during "Add account" are removed immediately after completion, cancellation, or timeout.
  • Shared session directory: all accounts share the existing ~/.gemini/antigravity-cli directory; the plugin does not isolate HOME, modify Paseo's built-in provider, poll idle accounts in the background, or auto-switch accounts.
  • Quota cache: quota is fetched on demand with a 5-minute cache and manual refresh button. Switching accounts clears the cache immediately.