July 30, 2026
Login drama, now with extra aliases
Show HN: Claude-account – switch Claude Code accounts without logging in again
A handy Claude account switcher drops — and the comments instantly become a shell-script showdown
TLDR: A new Linux tool helps people switch between Claude accounts without repeatedly logging in, while still leaving the official app in charge of sign-in details. The comments quickly turned into a brag fest: some loved the convenience, others mocked it as something they already solved with tiny homemade scripts.
A new community-made tool called claude-account promises a very relatable convenience: switching between different Claude Code logins on Linux without having to sign in over and over again. The pitch is simple enough for non-experts — keep your work and personal accounts separate, flip between them with a command, and let the official Claude app still handle the actual sign-in and saved credentials. It’s basically a wardrobe rack for your AI accounts, and the creator goes out of their way to say it doesn’t peek at your secret login tokens.
But on Hacker News, the real action wasn’t “wow, useful tool,” it was “I already do this with a tiny hack.” One commenter breezily declared this “revolutionary” in the most sarcastic way possible, saying you can do the same thing with two lines of shell code. Another rolled in with a gist, another with omp.sh, and yet another offered a directory-based auto-switch trick using mise. Translation for civilians: the crowd immediately turned this launch into a competitive flex-off over whose homemade shortcut is more elegant.
There was also a quieter but very real concern underneath the snark: what exactly gets shared between accounts? One commenter asked whether a global Claude instructions file gets reused, noting that this could be either helpful or awkward depending on the situation. So the mood was a cocktail of “nice idea,” “I built this already,” and “wait, could this get messy?” In classic HN fashion, even a convenience app became a public contest in minimalism, paranoia, and nerd one-upmanship.
Key Points
- •claude-account is a Linux-only tool that switches between multiple Claude Code accounts by isolating each profile’s `CLAUDE_CONFIG_DIR`.
- •The project forwards normal commands to the official Claude executable and states that Claude Code itself handles authentication and credential storage.
- •It is an independent community project and explicitly says it is not made, endorsed, or supported by Anthropic.
- •Users can install it from a release tarball or build it from source with Rust 1.85+ and Cargo, and the installer adds a shim without replacing the official Claude executable.
- •The wrapper stores profile metadata without tokens and strips selected authentication environment variables unless `CLAUDE_ACCOUNT_PRESERVE_AUTH_ENV=1` is set.