Adding Accounts
There are three methods to add Google accounts to the proxy:Web Dashboard
Visual interface with OAuth popup (Recommended)
CLI
Terminal-based account management
Automatic
Auto-detect from Antigravity app
Web Dashboard
The easiest way to add accounts is through the web interface:CLI Method
For terminal users or headless servers:- Desktop
- Headless
Opens browser automatically for OAuth flow:
Automatic Detection
If you have the Antigravity desktop app installed and logged in, the proxy automatically detects your local session. No additional setup required.The proxy will use the OAuth token from Antigravity’s local database at
~/.config/Antigravity/Local Storage/leveldb.Managing Accounts
CLI Commands
The proxy provides a full suite of account management commands:Interactive Menu
Run the accounts command without arguments for an interactive menu:- (a)dd new - Add another account
- (r)emove existing - Remove specific accounts
- (f)resh start - Clear all and start over
- (e)xit - Cancel and exit
Account Configuration File
Accounts are stored in:Account Data Structure
Each account contains:Field Descriptions
Field Descriptions
- email: Account identifier
- source:
oauth,manual, ordatabase - refreshToken: OAuth refresh token (auto-renewed)
- projectId: Google Cloud project (auto-detected)
- enabled: Enable/disable account without removing
- subscription.tier:
free,pro, orultra - quota.models: Per-model quota cache (0-1 fraction)
- quotaThreshold: Account-level minimum quota before switching (0-0.99)
- modelQuotaThresholds: Per-model threshold overrides
- modelRateLimits: Temporary rate limit state (runtime only)
Subscription Tiers
Subscription Tiers
Automatically detected from the Cloud Code API:
Tier detection happens on first API request or when checking account limits.
| Tier | Badge Color | Features |
|---|---|---|
| Ultra | Purple | Highest quota limits, priority access |
| Pro | Blue | Standard quota limits |
| Free | Gray | Basic quota limits |
Account Status
Web Console
The Accounts tab shows:- Subscription tier badge (Ultra/Pro/Free)
- Quota progress bars per model
- Rate limit status (with reset countdown)
- Enable/disable toggle
- Last used timestamp
- Health inspector (when Developer Mode enabled)
Check Limits via API
Quota Protection
Set minimum quota thresholds to switch accounts before quota runs out:- Global Threshold
- Per-Account Threshold
- Per-Model Threshold
Server-wide default for all accounts:Web Console: Settings → Quota Protection → Global ThresholdConfig File:
Priority Order: Per-model threshold > Per-account threshold > Global threshold > Default (0)Thresholds are stored as fractions (0-0.99) and displayed as percentages (0-99%) in the UI.
Troubleshooting
Account shows as invalid
Account shows as invalid
The refresh token may have expired. Re-authenticate:
- In the web console, click Fix Account on the invalid account
- Or remove and re-add via CLI:
OAuth callback fails on headless server
OAuth callback fails on headless server
Use the Then copy the OAuth URL to a device with a browser.
--no-browser flag for manual authorization:Server doesn't recognize new accounts
Server doesn't recognize new accounts
Make sure you stopped the server before adding accounts:
Account stuck in rate-limited state
Account stuck in rate-limited state
Wait for the reset time to expire (shown in web console), or verify tokens:
Security Notes
Optional Web Console PasswordSet a password to protect the web interface: