Skip to main content
Glama

⚔ agy-switch

The modern multi-account controller, live AI quota monitor, and MCP server for Google Antigravity.

License: MIT Node.js MCP Compatible


✨ Features

  • šŸ“± Mobile & Desktop Responsive TUI: Automatically adapts to narrow mobile viewports (< 55 cols) on Termux, SSH, and web terminals with zero distortion.

  • šŸ‘† Mouse & Touch Tap Support: Click or tap directly on any account card in terminal to switch instantly.

  • ⚔ Single-Key Quick Switch: Press 1-9 to switch active profiles in a single keypress.

  • ā±ļø Live Relative Reset Countdowns: View exact time remaining until quota refresh (e.g. ↳ Resets in 4h 38m (Sat 05:03 AM)).

  • šŸ”Œ Native Antigravity MCP Server: Ask Antigravity in chat to switch accounts or check remaining quota.

  • 🌐 Mobile-Friendly Web Dashboard: Optional browser dashboard (http://0.0.0.0:7823) with remote QR/browser sign-in.

  • šŸ› ļø Scriptable CLI: Full command-line interface with --json support for piping into shell scripts.


Related MCP server: google-connections-mcp

šŸ“ø TUI Preview

╭────────────────────────────────────────────────────────╮
│ ⚔ AG SWITCHBOARD — Multi-Account AI Quota Controller   │
│ Select account to activate • Press [a] to add, [d] to remove
╰────────────────────────────────────────────────────────╯
╭━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╮
│ ā˜… ACTIVE ACCOUNT ā˜…  [1] Zero One (user@gmail.com) [Google AI Pro]
ā”œā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”¤
│   Claude Sonnet 4.6    ā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–‘ā–‘  54%   Resets: in 4h 38m (Sat 05:03 AM)
│   Gemini 3.7 Flash     ā–ˆā–‘ā–‘ā–‘ā–‘ā–‘ā–‘ā–‘ā–‘ā–‘   6%   Resets: in 4h 22m (Sat 04:47 AM)
╰━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╯
╭────────────────────────────────────────────────────────╮
│ ā–¶ SELECTED  [2] Work Account (work@domain.com) [Google AI Pro] [Press 2/ENTER to Switch]
ā”œā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”„ā”¤
│   Claude Sonnet 4.6    ā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆ 100% ⚠ Resets: in 18h 59m (Sat 07:26 PM)
│   Gemini 3.7 Flash     ā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–‘  92%   Resets: in 4d 11h (Wed 11:58 AM)
╰────────────────────────────────────────────────────────╯
╭────────────────────────────────────────────────────────╮
│  [1-9] Quick Switch   [a] Add Account   [d] Remove Account   [r] Refresh   [w] Web Dashboard   [q] Exit
╰────────────────────────────────────────────────────────╯

šŸš€ Installation & Usage

1. Install Globally (Direct from GitHub)

npm install -g jack101a/agy-switch

Then run anytime:

agy-switch

2. Run Directly with NPX (Zero install)

npx github:jack101a/agy-switch

3. Install from Source

git clone https://github.com/jack101a/agy-switch.git
cd agy-switch
npm install
npm run build
./bin/agy-auth.js

šŸŽ® Interactive TUI Controls

Hotkey

Action

1 - 9

Instant 1-key switch to account 1, 2...

↑ / ↓

Navigate between accounts

Click / Tap

Select and activate account directly with mouse or touch

Enter / Space

Activate highlighted account

a

Add new Google account (in-terminal OAuth prompt)

d or x

Disconnect / remove highlighted account

r

Live refresh quotas from Google Cloud

w

Launch local web dashboard on http://0.0.0.0:7823

q / Esc

Exit


šŸ’» CLI Commands

Command

Usage

Description

agy-switch

agy-switch

Launch full interactive TUI dashboard

agy-switch list

agy-switch list [--json]

List connected accounts & active status

agy-switch switch

agy-switch switch <name|#>

Switch active account instantly

agy-switch quota

agy-switch quota [name|#]

Detailed model quota table with reset countdowns

agy-switch add

agy-switch add

Connect a new Google account via OAuth

agy-switch remove

agy-switch remove <name|#>

Disconnect an account

agy-switch dashboard

agy-switch dashboard

Start local web dashboard on port 7823

agy-switch help

agy-switch help

Display CLI help menu


šŸ”Œ Antigravity 2.0 MCP Integration

Add agy-switch to your ~/.gemini/config/mcp_config.json (or Claude Desktop / Cursor):

{
  "mcpServers": {
    "agy-switch": {
      "command": "node",
      "args": ["/path/to/agy-switch/dist/mcp-server.js"]
    }
  }
}

Now you can control accounts directly in your AI chat:

  • "What is my remaining quota on Claude and Gemini?"

  • "Switch active account to Zero One"

  • "List all connected accounts"


šŸ“„ License

MIT Ā© 2026 Antigravity Community

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

No tool schema history has been recorded yet.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jack101a/agy-switch'

If you have feedback or need assistance with the MCP directory API, please join our Discord server