agy-switch
Monitors and refreshes AI model quota usage from Google Cloud, providing live quota status and reset countdowns for connected accounts.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
โก agy-switch
The modern multi-account controller, live AI quota monitor, and MCP server for Google Antigravity.
โจ 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-9to 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
--jsonsupport for piping into shell scripts.
Related MCP server: gmail-multi-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-switchThen run anytime:
agy-switch2. Run Directly with NPX (Zero install)
npx github:jack101a/agy-switch3. 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 |
| Instant 1-key switch to account |
| Navigate between accounts |
Click / Tap | Select and activate account directly with mouse or touch |
| Activate highlighted account |
| Add new Google account (in-terminal OAuth prompt) |
| Disconnect / remove highlighted account |
| Live refresh quotas from Google Cloud |
| Launch local web dashboard on |
| Exit |
๐ป CLI Commands
Command | Usage | Description |
|
| Launch full interactive TUI dashboard |
|
| List connected accounts & active status |
|
| Switch active account instantly |
|
| Detailed model quota table with reset countdowns |
|
| Connect a new Google account via OAuth |
|
| Disconnect an account |
|
| Start local web dashboard on port |
|
| 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.
Loading tool schema changelogโฆ
Related MCP Connectors
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Connect an AI assistant to your Google Sheets, Drive, Docs, PDFs, BigQuery and Gmail.
Manage tasks, Focus Zone, notes, projects, and task history from compatible AI assistants.
Google NotebookLM via natural language: create notebooks, add sources (PDF, URL, YouTube) and ask gr
Related MCP Servers
- AlicenseCqualityDmaintenanceEnables AI assistants to interact with Google Cloud Platform resources through natural language queries. Supports querying and managing GCP services like Compute Engine, Cloud Storage, BigQuery, and more across multiple projects and regions.9MIT
- AlicenseAqualityCmaintenanceEnables an AI assistant to connect to multiple Google accounts at once, searching and acting across Gmail, Drive, Calendar, and Contacts from a single interface.2917 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables Antigravity IDE to directly interact with Google Docs, Sheets, Drive, Gmail, and Calendar, with token-optimized operations to reduce context usage by 70-90%.1MIT
- AlicenseNot gradedqualityBmaintenanceEnables STDIO-compatible AI assistants to queue coding work onto the official Google Antigravity CLI and track status, read reports or patches, query capabilities, or cancel running tasks without blocking. Supports trusted direct execution plus optional isolated or read-only modes depending on the platform.MIT