Multiple Claude Code Accounts
I can't be the only person to use Claude Code for both work and home who wants to keep them separate from each other - if only to keep on top of context windows and 5hr limits...
Well there's no official way to do it, and it doesn't look promising...
I've seen some people make complicated scripts to do this and I've tried a few, but all of them caused me drama in one way or another. This is the really simple workaround I've landed on.
Add this to your .zshrc:
# claude
alias claude-home="CLAUDE_CONFIG_DIR=~/.claude-home claude"
alias claude-work="CLAUDE_CONFIG_DIR=~/.claude-work claude"
and reload source .zshrc
then launch Claude with either claude-work or claude-home and log in to your account.
The caveat here, because there is always a caveat, is that these no longer work with the JetBrains plugin, which is annoying af. If you only used JetBrains for work I guess you could just create a home alias or something, but I use it for both, so I've decided to just change my workflow to not rely on the plugin any more.