HeadlinesBriefing favicon HeadlinesBriefing.com

Claude Account Switcher for Linux

Hacker News •
×

A new Linux-only CLI tool, claude-account, allows users to switch between isolated Claude Code accounts without repeated logins. Developed by hamzarehmandeveloper, the tool creates separate configuration directories for each Claude account, enabling seamless switching between work and personal profiles.

Commands like `claude account add work` and `claude account use myworkaccount` manage these profiles. After switching, Claude Code functions normally with the selected account. The tool ensures that Claude Code handles its own login, credential storage, and token refresh, as claude-account does not interact with sensitive credentials.

This independent community project is not affiliated with or endorsed by Anthropic. It requires a working Claude Code installation on Linux and can be built from source using Rust 1.85 or later. Installation involves downloading a release, verifying it, and adding an export line to the shell's configuration file.