How I Run Multiple Claude Code Accounts From One Terminal
📰 Medium · Programming
Learn to manage multiple Claude Code accounts from one terminal using direnv and environment variables
Action Steps
- Install direnv using the official installation instructions
- Set up a new directory for each Claude Code account and create a .env file
- Configure the CLAUDE_CONFIG_DIR environment variable using direnv to switch between accounts
- Test the setup by running Claude Code commands in each directory
- Use the direnv allow command to approve the environment changes
Who Needs to Know This
Developers and DevOps teams can benefit from this tutorial to streamline their workflow and manage multiple Claude Code accounts efficiently
Key Insight
💡 Use direnv and environment variables to isolate MCP credentials and switch between Claude Code profiles
Share This
🚀 Manage multiple Claude Code accounts from one terminal with direnv and env vars!
Key Takeaways
Learn to manage multiple Claude Code accounts from one terminal using direnv and environment variables
Full Article
Use direnv and CLAUDE_CONFIG_DIR to switch Claude Code profiles by folder, isolate MCP credentials, and keep personal, work, and client… Continue reading on Medium »
DeepCamp AI