
How I solved Claude Code's biggest missing feature
If you use Claude Code with more than one account, you know the pain. Switch from work to personal? /logout, /login, lose your session state, watch your MCP servers vanish. Do it again tomorrow. And the day after. 195+ developers https://github.com/anthropics/claude-code/issues/18435 . It's been months. No native solution. So I built one. The problem Claude Code stores everything in two places: ~/.claude.json — your OAuth token and session ~/.claude/settings.json — your preferences One set of files. One account. Want to switch? Destroy the first session, create a new one. Every time. For developers working with a corporate account during the day and a personal account at night, this is a daily annoyance. The discovery Buried in Claude Code's https://code.claude.com/docs/en/env-vars , there's a variable called CLAUDE_CONFIG_DIR. It redirects where Claude Code reads and writes its config files. An Anthropic team member https://github.com/anthropics/claude-code/issues/261: ▎ "As an immedi
Continue reading on Dev.to
Opens in a new tab



