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

intermediate Published 10 May 2026
Action Steps
  1. Install direnv using the official installation instructions
  2. Set up a new directory for each Claude Code account and create a .env file
  3. Configure the CLAUDE_CONFIG_DIR environment variable using direnv to switch between accounts
  4. Test the setup by running Claude Code commands in each directory
  5. 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 »
Read full article → ← Back to Reads

Related Videos

GPT 5.6 Sol + Claude Code = Absolutely INSANE (TRY THIS NOW)
GPT 5.6 Sol + Claude Code = Absolutely INSANE (TRY THIS NOW)
Income stream surfers
Build WordPress eCommerce Website in Minutes | Claude AI + Elementor + WooCommerce
Build WordPress eCommerce Website in Minutes | Claude AI + Elementor + WooCommerce
Quick Tips - Web Desiign & Ai Tools
I Created An AI Auto-Coder That ACTUALLY Makes Working Code!
I Created An AI Auto-Coder That ACTUALLY Makes Working Code!
Making Made Easy
2 Ways to ACTUALLY Clone Websites Using AI (Figma + Cursor + Lovable)
2 Ways to ACTUALLY Clone Websites Using AI (Figma + Cursor + Lovable)
Silism
Kimi K3 vs Claude Fable 5: The Winner? 👀
Kimi K3 vs Claude Fable 5: The Winner? 👀
Silism
Kimi K3 Just Took #1
Kimi K3 Just Took #1
Silism