You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also note that this issue supersedes and consolidates the closed issues #9068, #9070, and #9360. Feel free to cross-reference if any of these address related aspects.
# Clone and build
git clone -b feat/oauth-enhancements https://github.com/mguttmann/opencode.git
cd opencode
bun install
cd packages/opencode && bun run script/build.ts
# Binary will be in dist/opencode-<platform>/bin/opencode
Features included
Multi-Account OAuth - Add multiple Claude Max accounts, auto-rotation on rate limits
YOLO Mode - Skip permission prompts (session-only or persistent)
@cvrt-jh Great question! Here are the CLI commands for multi-account management:
Add accounts
# Add first account
opencode auth login
# Add additional accounts (each login creates a new account)
opencode auth login
List accounts
opencode auth list
Rename accounts
# Get record IDs from 'auth list', then rename
opencode auth rename <recordId>"Work Account"
opencode auth rename <recordId>"Personal"
Check usage/rate limits
opencode auth usage
Browser session management (for auto-relogin)
# List browser sessions
opencode auth browser list
# Setup browser session for an account
opencode auth browser setup <recordId># Manually refresh token
opencode auth browser refresh <recordId># Remove browser session
opencode auth browser remove <recordId>
How rotation works
The CLI automatically rotates to the next account when hitting rate limits. No manual intervention needed - just add multiple accounts and it handles the rest.
Just pushed a fix for browser session refresh that now works regardless of the Claude.ai language setting.
Problem: The auto-relogin feature was looking for the "Authorize" button by text, which didn't work when Claude.ai was set to German ("Autorisieren"), French, or other languages.
Solution: The button is now found by visual style (background color = primary button) instead of text. This works with any language.
Changes:
Auto-dismiss cookie banners before clicking authorize
Find authorize button by checking for solid background color (primary button style)
Skip deny/cancel buttons by checking common patterns across languages
Closing this issue — splitting into two separate issues: one for Multi-Account + Auto-Relogin, and one for YOLO Mode. New issues will be linked here once created.
Activity
github-actions commentedon Jan 22, 2026
This issue might be related to existing feature requests. Please check:
--dangerously-skip-permissions(aka YOLO mode) #8463: Add--dangerously-skip-permissions(aka YOLO mode) (covers similar YOLO mode feature)Also note that this issue supersedes and consolidates the closed issues #9068, #9070, and #9360. Feel free to cross-reference if any of these address related aspects.
mguttmann commentedon Jan 22, 2026
Yolo -
mguttmann commentedon Jan 22, 2026
Multi-Account with stats:
mguttmann commentedon Jan 22, 2026
Auto-ReLogin
mguttmann commentedon Jan 22, 2026
Thanks for finding the related issues! Here's how this implementation relates to them:
Relationship to existing issues
feat: OAuth Marathon - multi-account credential rotation #8591 (OAuth Marathon) - This issue provides the UI layer on top of that work. The backend rotation logic exists, but users had no way to:
Feature Request: Yolo and non-Yolo mode (auto-accept) #1813, [FEATURE]: Add
--dangerously-skip-permissions(aka YOLO mode) #8463 (YOLO mode requests) - This is the implementation of those feature requests! Includes:[Feature]: Runtime Permission Mode Toggle (like Claude Code's Shift+Tab) #7928 (Runtime Permission Toggle) - YOLO mode addresses this by allowing users to toggle permission skipping at runtime via Settings > General.
What's new in this implementation
The screenshots above show the working implementation. Happy to coordinate with maintainers on merging with any in-progress work!
mguttmann commentedon Jan 24, 2026
Test Branch Available
For anyone interested in testing, here's my fork with all features:
Fork: https://github.com/mguttmann/opencode
Branch:
feat/oauth-enhancementsQuick Start
Features included
Desktop App
To build the desktop app with these features:
Branch is synced with latest
devas of today. Happy to receive feedback!cc @cvrt-jh - saw your interest in multi-account workflow, this should work for you!
cvrt-jh commentedon Jan 25, 2026
nice. working in terminal. how do you manage multi auth without desktop?
mguttmann commentedon Jan 25, 2026
@cvrt-jh Great question! Here are the CLI commands for multi-account management:
Add accounts
List accounts
Rename accounts
Check usage/rate limits
Browser session management (for auto-relogin)
How rotation works
The CLI automatically rotates to the next account when hitting rate limits. No manual intervention needed - just add multiple accounts and it handles the rest.
Let me know if you need anything else!
mguttmann commentedon Jan 25, 2026
Update: Multi-Language Fix (2026-01-25)
Just pushed a fix for browser session refresh that now works regardless of the Claude.ai language setting.
Problem: The auto-relogin feature was looking for the "Authorize" button by text, which didn't work when Claude.ai was set to German ("Autorisieren"), French, or other languages.
Solution: The button is now found by visual style (background color = primary button) instead of text. This works with any language.
Changes:
@cvrt-jh The fork has been updated with this fix. You can test with the latest from:
https://github.com/mguttmann/opencode/tree/feat/oauth-enhancements
Or grab the new release:
https://github.com/mguttmann/opencode/releases/tag/v0.0.0-custom-features-20260125
mguttmann commentedon Feb 2, 2026
Closing this issue — splitting into two separate issues: one for Multi-Account + Auto-Relogin, and one for YOLO Mode. New issues will be linked here once created.