claude-duo
v2.2.1
Published
Open two Claude Code sessions in one Windows Terminal window, with per-pane account isolation, email titles, and sticky login after exit.
Maintainers
Readme
Claude Duo
Open-source Windows tool that opens two Claude Code sessions in one window.
Optional: left pane = your current account, right pane = a second Claude account (separate login).
Requirements
- Windows 10 or 11
- Windows Terminal
- Claude Code (
npm install -g @anthropic-ai/claude-code)
Install (npm)
npm install -g claude-duo
claude-duoOne-shot, no install:
npx claude-duoNeeds Windows 10/11, Windows Terminal, and Claude Code.
GitHub Packages
Shows on the profile Packages tab:
npm install -g @mferasatali/claude-duo --registry=https://npm.pkg.github.comMost people should still use npx claude-duo from npmjs.
From GitHub (source, no registry)
git clone https://github.com/mferasatali/claude-duo.gitDouble-click ClaudeDuo.bat, or Pin to Desktop in the app.
Use
- Pick the project folder(s).
- Choose Left pane account and Right pane account (must be different).
- Click Open 2 Claude Code.
- Left pane uses
~/.claude(Personal). Right pane uses its own folder (e.g.~/.claude-account-2for Work). - Each pane tab title shows the logged-in Claude email (after
/login). - First time per account: in that pane type
/loginonce. Logins stay saved in that account's config folder. - If you
/exitClaude, the pane keeps the same account. PressRto restart, orcdto another project and typeclaudeagain. - Use Open left/right account only to switch to a single account in a new window.
Do not type claude in a blank Command Prompt. The tool starts it for you.
Command line
powershell -ExecutionPolicy Bypass -File .\ClaudeDuo.ps1 -NoGui -Left "C:\projA" -Right "C:\projB" -Split vertical -Maximized-Split is vertical (side by side) or horizontal (stacked).
How it works
- Uses Windows Terminal split panes (
wt.exe). - Each pane sets
CLAUDE_CONFIG_DIRto an isolated folder so logins, history, and settings never mix. - Pane titles show the account email from
oauthAccount.emailAddress. - After Claude exits,
CLAUDE_CONFIG_DIRstays in that pane soclaudedoes not fall back to the global login. - Settings (folders, accounts, layout) auto-save to
%APPDATA%\ClaudeDuo\config.json.
