Claude Code uses ~/.claude/ as its config directory by default, which includes your login credentials in .claude.json. You can override this with the CLAUDE_CONFIG_DIR environment variable to point at a different config directory, enabling automatic account switching based on where you run claude.
1. Create a separate config directory for your second account:
mkdir ~/.claude-personal