Claude Code stores authentication, settings, conversation history, and project metadata in ~/.claude. If you use two accounts — say, a personal Max subscription and a work team account — both compete for the same config directory. You need a way to keep them separate.
The solution has two parts: