feat(auth): multi-account OAuth support with auto-relogin#11832
feat(auth): multi-account OAuth support with auto-relogin#11832mguttmann wants to merge 1 commit intoanomalyco:devfrom
Conversation
|
The following comment was made by an LLM, it may be inaccurate: Potential Duplicate PRs Found
I'd recommend reviewing #8590 most closely as it appears to address the same multi-account credential rotation feature set. |
|
Thanks for the duplicate analysis! Here's how this PR compares to the flagged ones:
Key differentiators of this PR:
This is a clean split from the closed #9972 — focused solely on multi-account + auto-relogin (YOLO mode is in separate PR #11833). |
|
YO I NEED THIS |
|
Thanks! 🙌 If you want to try it now, you can build from the branch — it's fully working and all CI checks pass. |
bd271d0 to
050f2c4
Compare
|
i need this too |
050f2c4 to
a02099f
Compare
|
any change to have this merged in the main branch? |
|
Hey @NotFiliberto — I'd love to see it merged too! It's up to the OpenCode maintainers at this point. CI is green, the feature is complete, and it's been working well in my daily builds. Currently waiting on developer feedback / review. Fingers crossed! 🤞 |
|
That'd be extremely helpful |
82b0f3c to
a0c9ca0
Compare
|
Thank you for implementing this! Really appreciate having legitimate multi-account OAuth rotation without needing workarounds. |
b2d82c0 to
484e508
Compare
|
Oh i need this |
484e508 to
5f1e987
Compare
Add support for multiple OAuth accounts per provider with automatic credential rotation and browser-based session management. - Multi-account store: track multiple OAuth records per provider - Credential rotation: automatically failover to next account on rate limits or auth failures (rotating-fetch) - Browser sessions: Puppeteer-based auto-relogin for expired tokens - Credential manager: event-driven failover notifications - AsyncLocalStorage auth context for per-request credential tracking - Provider settings UI: manage accounts, set active, view usage - Session context tab: show which account is active per session - Config: oauth rotation settings (cooldowns, retries, max attempts) - CLI: browser session management commands - Server routes: account CRUD, usage, browser session endpoints - SDK: regenerated with all new multi-account endpoints
5f1e987 to
677c90d
Compare


Summary
Closes #11830
Changes
Backend
auth/index.tsauth/rotating-fetch.tsauth/browser.tsauth/credential-manager.tsauth/context.tsconfig/config.tsoauthconfig block (cooldowns, retries, max attempts)cli/cmd/auth.tsserver/routes/provider.tsserver/server.tsprovider/provider.tsFrontend
settings-providers.tsxsession-context-tab.tsxdialog-settings.tsxSDK