# Switching Claude Pro Accounts Without Logout
Claude Code stores authentication credentials in `~/.claude/`. The `CLAUDE_CONFIG_DIR` environment variable overrides this default location, allowing multiple credential sets to coexist in separate directories. Each directory maintains its own login state, so switching between accounts requires no logout or reauthentication.
## Setup
Copy the existing configuration directory to create two independent credential stores:
```bash
cp -r ~/.claude ~/.claude-account-a
cp -r ~/.claude ~/.claude-account-b
```
Log in to each account once:
```bash
CLAUDE_CONFIG_DIR=~/.claude-account-a claude /login
CLAUDE_CONFIG_DIR=~/.claude-account-b claude /login
```
## Usage
Add shell aliases to make switching seamless:
```bash
alias ca='CLAUDE_CONFIG_DIR=~/.claude-account-a claude'
alias cb='CLAUDE_CONFIG_DIR=~/.claude-account-b claude'
```
Invoking `ca` or `cb` launches Claude Code under the corresponding account with no logout step required.