Claude Code stores account data in ~/.claude, making it impossible to use two Anthropic accounts simultaneously without logging out. The CLAUDE_CONFIG_DIR environment variable lets you point the CLI to a different config directory. By creating a second directory and adding two bash aliases — each setting CLAUDE_CONFIG_DIR to a

3m read timeFrom blog.codeminer42.com
Post cover image
Table of contents
The Solution: CLAUDE_CONFIG_DIRSetupUsing ItWhy It Works

Sort: