Configure Multi-Account Load Balancing
mainThe plugin can automatically rotate between multiple Google accounts to bypass rate limits (429 errors) or server errors (5xx).
Setup:
During the opencode auth login process, you will be prompted to add additional accounts. You can configure up to 10 accounts.
Storage:
Account metadata is stored in $XDG_DATA_HOME/opencode/antigravity-accounts.json (e.g., ~/.local/share/opencode/antigravity-accounts.json).
Behavior:
- Sticky Selection: The plugin uses the same account for all requests until an error occurs.
- Automatic Rotation: Upon hitting a rate limit or server error, it switches to the next configured account.
- Smart Recovery: Accounts are automatically re-enabled once the rate limit timeout expires.
- Monitoring: The plugin logs switches to the console (e.g.,
[INFO] Using account 1/3 (user@gmail.com)) and shows toast notifications.