Feature: Auto-switch accounts when rate limited

Resolved 💬 3 comments Opened Feb 19, 2026 by federicodeponte Closed Feb 22, 2026

Problem

When using Claude Code with multiple accounts (personal, work, etc.), hitting a rate limit on one account requires manually:

  1. Running /logout
  2. Running claude again
  3. Logging in with a different account
  4. Losing conversation context

Proposed Solution

Automatic account rotation when rate limited:

  1. Store multiple account credentials (securely in keychain)
  2. On rate limit, automatically switch to next account with available quota
  3. Continue the conversation seamlessly

Configuration

{
  "accounts": ["personal", "work", "client"],
  "autoRotateOnRateLimit": true
}

Implementation Ideas

  • Use CLAUDE_CONFIG_DIR env var to isolate account configs
  • Store OAuth tokens per account in separate config directories
  • On rate limit response, try next account automatically

Prior Art

User Benefit

  • Uninterrupted workflow for heavy users with multiple accounts
  • Better utilization of available quota across accounts
  • No manual intervention needed when hitting limits

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗