Developer Trick Lets You Run Two Claude Code Accounts on One Machine
A developer sharing on DEV Community documented a method to run two separate Claude Code subscriptions on a single machine without losing settings or workflow continuity. The approach exploits Claude Code's CLAUDE_CONFIG_DIR environment variable, which redirects all account state to a specified directory, allowing two accounts to coexist independently. Shell aliases are used to launch each account in its own config directory, while symlinks ensure both accounts share the same skills, memory, settings, and MCP server configurations. A small routing script in the system PATH ensures session resume commands automatically target the correct account based on where the session file is stored. The author estimates the full setup takes around 20 minutes and is fully reversible, with only billing differing between the two accounts.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in