Repository navigation
Closed
Description
Summary
This issue combines three related OAuth/authentication enhancements for power users with Claude Max subscriptions:
1. Multi-Account OAuth Rotation
Problem: Users with multiple Claude Max accounts have no way to use them together or switch between them in the UI.
Solution:
- Add Providers tab to Settings dialog with full account management
- Support multiple OAuth accounts per provider with automatic rotation on rate limits
- Display Anthropic rate limits (5-hour, 7-day, 7-day Sonnet) with real-time updates
- Click to switch accounts with instant rate limit refresh
- Auto-rotation when one account hits rate limits
CLI:
opencode auth usage- View rate limits and account status
2. YOLO Mode
Problem: Power users who fully trust the AI's actions want to skip repetitive permission prompts.
Solution:
- Skip ALL permission prompts automatically (explicit deny rules still respected)
- Two modes:
- Session Only - Resets on restart
- Always Enabled - Persisted to config.json
- Warning UI with clear danger indicators
Usage:
- Settings > General > YOLO Mode section
- CLI:
opencode --yoloorOPENCODE_YOLO=true
3. Auto-Relogin Browser Sessions
Problem: OAuth tokens expire and require manual re-authentication through the browser.
Solution:
- Puppeteer-based browser session management with stealth plugin (bypasses Cloudflare)
- Store isolated browser profiles per account
- Setup: Opens visible browser for user to log in once
- Refresh: Headless token refresh triggered automatically on 401 errors
CLI:
opencode auth browser setup- Open browser for initial loginopencode auth browser status- Check session statusopencode auth browser refresh- Manually refresh tokensopencode auth browser remove- Remove browser session
Screenshots
Providers Tab
Shows connected providers, account list with request counts, rate limit bars, and account switching.
YOLO Mode
Settings > General section with session-only and persistent options, warning box, and CLI usage info.
Related Issues
- Supersedes feat: Multi-Account OAuth Rotation with Settings UI #9068 (Multi-Account)
- Supersedes feat: YOLO Mode - Skip Permission Prompts #9070 (YOLO Mode)
- Supersedes feat: Auto-Relogin for Anthropic OAuth via Persistent Browser Sessions #9360 (Auto-Relogin)
Reacted by NAOE Kenichi, Manuel Guttmann, Marco Pérez Donoso, Eric Schmid, Chindriș Mihai - Alexandru and drfgszrx
Metadata
Metadata
Assignees
Labels
No labels
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.