claude-account - Switch Claude Code profiles on Linux without re-login

Show HN: Claude-account – switch Claude Code accounts without logging in again

claude-account - Switch Claude Code profiles on Linux without re-login

claude-account is a powerful Linux utility designed to streamline workflow for developers using Claude Code. It enables seamless switching between multiple isolated accounts, such as work and personal profiles, without requiring repeated logins. By creating distinct configuration directories for each profile, this tool ensures complete separation of sessions while transparently forwarding commands to the official Claude executable. Built with security in mind, it never accesses or stores sensitive credentials, relying entirely on Claude Code's native authentication. This open-source solution eliminates the friction of managing multiple identities, allowing users to jump between contexts instantly and maintain organized, secure development environments.

It gives Claude Code an isolated CLAUDE_CONFIG_DIR for each account and transparently forwards normal commands to the official Claude executable.
  1. carloslfu

    appreciate you building this! I have two Claude max accounts. The way I do it is that I have two app launchers (claude desktop). I use the desktop app and a different data directory for each launcher like `open -n -a /Applications/Claude.app --args --user-data-dir="<its profile directory>"`. I got my first Claude to make me two different launchers for the two apps, and it's been working perfectly. wdyt?

    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?

  2. pandoro

    I use this: https://gist.github.com/KMJ-007/0979814968722051620461ab2aa0...

    Simple and works great but requires one alias per account

  3. hassanmehdi98

    Is it even safe to switch accounts frequently? worried about them imposing a ban

More from this day

2026-07-30