Show HN: Claude-account – switch Claude Code accounts without logging in again (github.com)
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
21 comments
[ 3.0 ms ] story [ 42.2 ms ] threadSimple and works great but requires one alias per account
~/development/account1/mise.toml:
[env]
CLAUDE_CONFIG_DIR = "{{ env.HOME }}/.claude-account1"
i do this: https://github.com/acuteaura/universe/blob/main/overlays/cla...
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?
Is that supported?
As some have said, easy enough to build yourself, but I think it' nice not to have to test it and make sure it works.