# Running multiple claude code accounts on Linux

> Source: <https://dev.to/sakibullah2006/running-multiple-claude-code-accounts-on-linux-opj>
> Published: 2026-08-29 20:56:49+00:00

If you use [Claude Code](https://docs.claude.com/en/docs/claude-code/overview) for both work and personal projects, you've probably hit this: switching accounts means logging out, logging back in, and losing whatever session state you had. It's a small friction that adds up fast if you're context-switching several times a day.

The fix is one environment variable: [CLAUDE_CONFIG_DIR](https://code.claude.com/docs/en/overview) for both work and personal projects, you've probably hit this: switching accounts means logging out, logging back in, and losing whatever session state you had. It's a small friction that adds up fast if you're context-switching several times a day.
