claude-code - 💡(How to fix) Fix Multiple profile directories (~/.claude-a, ~/.claude-b) require independent re-logins despite sharing the same account

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Fix Action

Fix / Workaround

  • 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
RAW_BUFFERClick to expand / collapse

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

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

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.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Multiple profile directories (~/.claude-a, ~/.claude-b) require independent re-logins despite sharing the same account