DE version is available. Content is displayed in original English for accuracy.
I use separate Claude Code accounts for work and personal projects. Having to log out and go through the login flow every time I switched accounts became annoying, so I built a small CLI to solve it.
The commands are intentionally simple:
claude account add myworkaccount claude account add mypersonalaccount claude account use myworkaccount claude account current
After switching, Claude Code works normally:
claude claude "fix this bug in main.py" Repository: https://github.com/hamzarehmandeveloper/claude-account
Give it a try

Discussion (12 Comments)Read Original on HackerNews
The only problem I've noticed is with Claude in Chrome. It seems to not work well in the second account. And this makes sense because it was designed just for one app. Do you find yourself having the same problem with this setup? have you tried the second one with the Claude in Chrome ext?
Simple and works great but requires one alias per account
Another benefit was if no .claude-profile file exists, claude refuses to launch.
i do this: https://github.com/acuteaura/universe/blob/main/overlays/cla...
~/development/account1/mise.toml:
[env]
CLAUDE_CONFIG_DIR = "{{ env.HOME }}/.claude-account1"