Show HN: Claude-account – switch Claude Code accounts without logging in again
Posted by hamza_rehman 2 days ago
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
Comments
Comment by carloslfu 2 days ago
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?
Comment by pandoro 2 days ago
Simple and works great but requires one alias per account
Comment by cowlby 2 days ago
Another benefit was if no .claude-profile file exists, claude refuses to launch.
Comment by orliesaurus 2 days ago
Comment by mlitwiniuk 13 hours ago
Comment by hassanmehdi98 2 days ago
Comment by lukasco 1 day ago
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.
Comment by hamza_rehman 1 day ago
Comment by spk_ 1 day ago
alias claude-personal='CLAUDE_CONFIG_DIR=~/.claude-personal claude'
Comment by dotancohen 2 days ago
Comment by cute_boi 2 days ago
Comment by dotancohen 2 days ago
> Do you expect vibe-coded slop to care about such things?
I'm divorced - I no longer have any expectations. I ask.Comment by carloslfu 2 days ago
Comment by pdimitar 1 day ago
Is that supported?
Comment by hamza_rehman 1 day ago
Comment by hmokiguess 2 days ago
Comment by bdemirkir 2 days ago
Comment by kn9 7 hours ago
Comment by AlexErrant 2 days ago
Comment by bdemirkir 2 days ago
Comment by AlexErrant 2 days ago
Comment by baron3dl 2 days ago
Comment by rew0rk 2 days ago
Comment by ttoinou 2 days ago
So what’s the differenve ?
Comment by dpoloncsak 2 days ago
Comment by baron3dl 2 days ago
Comment by kingzabbu 22 hours ago
Comment by pwython 2 days ago
Comment by brentmitchell25 2 days ago
~/development/account1/mise.toml:
[env]
CLAUDE_CONFIG_DIR = "{{ env.HOME }}/.claude-account1"
Comment by acuteaura 2 days ago
i do this: https://github.com/acuteaura/universe/blob/main/overlays/cla...
Comment by swyx 2 days ago
Comment by hamza_rehman 1 day ago
Comment by DobarDabar 1 day ago
Comment by noobmax 2 days ago