Feature Request
Add multi-account support similar to how opencode-antigravity-auth handles multiple Google accounts.
Use Case
I have multiple ChatGPT accounts (Pro + Plus) and would like to:
- Add multiple accounts to a pool
- Automatic load balancing when one account hits rate limits
- Automatic failover to the next available account
How Antigravity Does It
The opencode-antigravity-auth plugin has excellent multi-account support:
- Stores accounts in
~/.config/opencode/antigravity-accounts.json
- Supports up to 10 accounts
- Sticky account selection - sticks to the same account until rate limited (preserves prompt cache)
- Automatic failover - on HTTP 429, switches to next available account
- Smart cooldown - rate-limited accounts become available again after cooldown expires
- When running
opencode auth login, prompts: "(a)dd new account(s) or (f)resh start?"
Current Behavior
Currently, running opencode auth login for OpenAI overwrites the existing account in ~/.local/share/opencode/auth.json. There's no way to maintain multiple accounts.
Proposed Solution
Similar to Antigravity:
- Store multiple accounts in a separate JSON file (e.g.,
~/.config/opencode/openai-accounts.json)
- Prompt to add or replace when an account already exists
- Implement automatic switching on 429 errors
- Track rate limit cooldowns per account
Environment
- OpenCode version: 1.0.207
- Plugin version: Using hotfix branch via oh-my-opencode
- OS: macOS
Thank you for the great plugin!
Feature Request
Add multi-account support similar to how
opencode-antigravity-authhandles multiple Google accounts.Use Case
I have multiple ChatGPT accounts (Pro + Plus) and would like to:
How Antigravity Does It
The
opencode-antigravity-authplugin has excellent multi-account support:~/.config/opencode/antigravity-accounts.jsonopencode auth login, prompts: "(a)dd new account(s) or (f)resh start?"Current Behavior
Currently, running
opencode auth loginfor OpenAI overwrites the existing account in~/.local/share/opencode/auth.json. There's no way to maintain multiple accounts.Proposed Solution
Similar to Antigravity:
~/.config/opencode/openai-accounts.json)Environment
Thank you for the great plugin!