Multiple profile directories (~/.claude-a, ~/.claude-b) require independent re-logins despite sharing the same account
Problem
When running multiple Claude Code instances with separate config directories (e.g. ~/.claude, ~/.claude-a, ~/.claude-b), each instance maintains its own OAuth session that expires independently. This forces users to re-login in every instance separately, causing session discontinuity.
All these instances share the same ~/.claude.json auth file and the same Anthropic account — there is no reason they should require independent authentication.
Expected behavior
OAuth session state should be shared across all profile directories on the same machine for the same account. One login should be sufficient regardless of how many profile directories are in use.
Current behavior
Each ~/.claude-* directory spawns an independent OAuth session. When a token expires in one instance, the user must /login in every affected instance individually.
Impact
- Session discontinuity across profile instances
- Repeated forced re-logins interrupt active work
- Users on Max plan cannot use API key as a workaround without incurring separate per-token charges
Environment
- macOS (darwin)
- Multiple profile dirs:
~/.claude,~/.claude-a,~/.claude-b,~/.claude-account-b,~/.claudeb
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗