claude-account is a Linux-only profile switcher for Claude Code that provides isolated configuration directories per account while transparently forwarding commands to the official Claude executable.

Stars

38

7-day growth

No data

Forks

3

Open issues

1

License

MIT

Last updated

2026-07-30

AI repository intelligence
FR-AI / ANALYSIS

Why it is worth attention

It solves a real pain point for Claude Code users who need multiple accounts (e.g., work and personal) on the same Linux machine, without duplicating the entire Claude installation or handling credentials directly.

Who it is for

  • Linux users of Claude Code who need separate work and personal profiles
  • Developers and teams sharing a Linux system with multiple Claude Code accounts
  • Power users who want to script or automate account switching
  • Anyone who uses Claude Code for both personal projects and a company subscription

Use cases

  • Switch between work and personal Claude Code accounts without re-login complexity
  • Run Claude Code in CI or automated tasks using a dedicated account profile
  • Test Claude Code behavior with different subscription tiers on the same machine
  • Safely remove unused credentials and profile data while keeping settings for later reuse

Strengths

  • Leaves credential storage entirely to Claude Code; never reads or copies tokens
  • Respects XDG base directory specifications and offers an override via CLAUDE_ACCOUNT_HOME
  • Transparent forwarding: all non-account commands and flags pass unchanged to the real claude executable
  • Comes with a simple installer and a shim that does not replace the official binary

Considerations

  • Linux-only; no support for macOS or Windows
  • Requires Rust 1.85+ to build from source if not using the prebuilt release
  • Only works with Claude Code; does not help with other Anthropic tools or APIs

README quick start

claude-account

A Linux-only profile switcher for Claude Code. It gives Claude Code an isolated CLAUDE_CONFIG_DIR for each account and transparently forwards normal commands to the official Claude executable.

claude account add work
claude account add personal
claude account use work
claude account list
claude account current
claude account remove personal

claude
claude "fix this bug in main.py"

Claude Code itself performs login, logout, credential storage, and token refresh. claude-account never reads or copies credential contents.

[!IMPORTANT] This is an independent community project. It is not made, endorsed, or supported by Anthropic. Claude and Claude Code are products of Anthropic.

Requirements

  • Linux
  • A working Claude Code installation
  • Rust 1.85 or later to build from source

Install a release

Download claude-account-v0.1.1-x86_64-unknown-linux-gnu.tar.gz and its .sha256 file from the [latest release][releases], then verify and install it:

sha256sum --check claude-account-v0.1.1-x86_64-unknown-linux-gnu.tar.gz.sha256
tar -xzf claude-account-v0.1.1-x86_64-unknown-linux-gnu.tar.gz
./claude-account install

The installer prints one export PATH=... line. Add that line to ~/.bashrc and open a new terminal. The shim lives in its own directory; it does not replace the official Claude executable.

Confirm the installation:

type -a claude
claude account list

The claude-account shim should appear before the official Claude executable.

Build from source

git clone https://github.com/hamzarehmandeveloper/claude-account.git
cd claude-account
cargo build --locked --release
./target/release/claude-account install

Commands

Add an account

claude account add work
claude account add personal --email you@example.com
claude account add company --sso
claude account add api-billing --console

This opens Claude Code's official login flow. The first profile becomes active. Adding another profile does not switch the active profile. The command also completes Claude Code's local onboarding state, so the next claude launch uses the saved login without asking you to authenticate again.

Switch accoun

Description

Switch between isolated Claude Code accounts on Linux without logging in again.

Related repositories

Similar projects matched by category, topics, and programming language.

programmersd21
Featured
programmersd21 GitHub avatar

flow

flow is a minimalist terminal dashboard that displays real-time network throughput with smooth animations, multiple responsive modes, and zero configuration.

Developer ToolsCLI & Terminal
277
S40911120
Featured
S40911120 GitHub avatar

recensa

Recensa is a self-hosted web viewer that indexes Claude Code session transcripts into a local SQLite database, enabling full-text search, replay, and audit of all past agent conversations without uploading data anywhere.

AI & Machine LearningLarge Language Models
67
l0ng-ai
Featured
l0ng-ai GitHub avatar

tty7

tty7 is a fast, GPU-accelerated terminal workbench with persistent sessions, built-in input tools, SSH support, and coding agent awareness.

Developer ToolsCLI & Terminal
359