Claude Code Multiplexer — manage multiple Claude Code instances in TUI split panes.
A lightweight terminal multiplexer built specifically for running multiple Claude Code sessions side-by-side.

npm install -g ccmux-cli
Download the latest binary from Releases:
| Platform | File |
|---|---|
| Windows (x64) | ccmux-windows-x64.exe |
| macOS (Apple Silicon) | ccmux-macos-arm64 |
| macOS (Intel) | ccmux-macos-x64 |
| Linux (x64) | ccmux-linux-x64 |
Windows: Microsoft Defender SmartScreen may show a warning because the binary is not code-signed. Click "More info" → "Run anyway" to proceed. This is normal for unsigned open-source software.
macOS/Linux: After downloading, make the binary executable:
chmod +x ccmux-*
git clone https://github.com/Shin-sibainu/ccmux.git
cd ccmux
cargo build --release
# Binary at target/release/ccmux (or ccmux.exe on Windows)
Requires Rust toolchain.
ccmux
Launch from any directory. The file tree shows the current working directory.
| Key | Action |
|---|---|
Ctrl+D |
Split vertically |
Ctrl+E |
Split horizontally |
Ctrl+W |
Close pane / tab |
Alt+T / Ctrl+T |
New tab |
Alt+1..9 |
Jump to tab N |
Alt+Left/Right |
Previous / next tab |
Alt+R |
Rename tab (session only) |
Alt+S |
Toggle status bar |
Ctrl+F |
Toggle file tree |
Ctrl+P |
Swap preview/terminal layout |
Ctrl+Right/Left |
Cycle focus (sidebar, preview, panes) |
Ctrl+Q |
Quit |
Ctrl+F)| Key | Action |
|---|---|
j / k |
Move selection |
Enter |
Open file / expand directory |
. |
Toggle hidden files |
Esc |
Return to pane |
| Key | Action |
|---|---|
j / k |
Scroll vertically |
h / l |
Scroll horizontally |
Ctrl+W |
Close preview |
Esc |
Return to pane |
| Action | Effect |
|---|---|
| Click pane | Focus pane |
| Click tab | Switch tab |
| Double-click tab | Rename tab |
Click + |
New tab |
| Drag border | Resize panels |
| Scroll wheel | Scroll file tree / preview / terminal history |
src/
├── main.rs # Entry point, event loop, panic hook
├── app.rs # Workspace/tab state, layout tree, key/mouse handling
├── pane.rs # PTY management, vt100 emulation, shell detection
├── ui.rs # ratatui rendering, theme, layout
├── filetree.rs # File tree scanning, navigation
└── preview.rs # File preview with syntax highlighting
Key design decisions:
- vt100 crate for terminal emulation (not ANSI stripping) — needed for Claude Code's interactive UI
- Binary tree layout for recursive pane splitting with variable ratios
- Per-PTY reader threads with mpsc channel to main event loop
- OSC 7 detection for automatic cd tracking
- Dirty-flag rendering for minimal CPU usage when idle
New to Claude Code? Check out Claude Code Academy for tutorials and guides.
MIT
$ claude mcp add ccmux \
-- python -m otcore.mcp_server <graph>