⌨️CLAUDE_CONFIG_DIR
Also known as CLAUDE_CODE_PROJECT_DIR_NAME, ~/.claude
It moves Claude Code's own folder, ~/.claude by default.
Think of it like
It is like you give each child their own toy box.
Example
Emma has a home account and a work account. She makes a claude-work alias with its own folder, and the two never mix.
Why it matters
One folder holds one login and one history. A second folder keeps two lives apart.
Definition
Example code
bash
alias claude-work='CLAUDE_CONFIG_DIR=~/.claude-work claude'
claude-workCommon mistake
Key takeaways
- 1Default ~/.claude. Settings, chats, plugins.
- 2Two accounts. Two folders.
- 3Not project settings. Shell or user.