<< Home | Work
Run multiple Claude accounts simultaneously on one machine
| Area | Work |
| AI used | Claude Code |
| Source | r/BuildWithClaude |
| Posted | 2026-11-15 |
The move
Create separate configuration directories for each Claude account to bypass single-login limitations.Steps
- Create a new directory for the second account using mkdir -p $HOME/.claude-b
- Add a function to your shell config file that sets CLAUDE_CONFIG_DIR to the new path
- Restart your terminal and run the auth login command for the new alias
- Use the new alias command to run Claude sessions independently
Prompt for your AI
CLAUDE_CONFIG_DIR="[path/to/new/config/folder]" command claude [command]
What happened
The user needed to manage separate personal and work Claude accounts without constantly logging in and out. By creating unique configuration folders for each account and defining shell aliases, they successfully kept multiple sessions active simultaneously. This allows the user to run different accounts side-by-side in the terminal and desktop app.Watch out
Ensure you are logged into the correct browser account before authenticating to avoid mixing session data. Manually managing config folders requires keeping track of which alias corresponds to which account.Give it to your agent
Read https://howtheyuse.ai/p/run-multiple-claude-accounts-simultaneously-on-one-machine.md and help me do this.