Skip to content

Instantly share code, notes, and snippets.

@thamam
thamam / dual-claude-setup.md
Created April 5, 2026 16:07
Dual Claude Code setup (work + personal) with direnv

Dual Claude Code Setup: Work + Personal Accounts with direnv


Section 1: The Problem and The Solution

Claude Code stores authentication, settings, conversation history, and project metadata in ~/.claude. If you use two accounts — say, a personal Max subscription and a work team account — both compete for the same config directory. You need a way to keep them separate.

The solution has two parts: