A desktop session manager for Claude Code.
All your sessions in one window, and they come back after a restart.
⚠️ Note: Codemux is a personal tool. I build it for my own daily use, so it follows my own needs and habits. I do not plan to support other setups or take feature requests. If you want to use it, please fork it and change it to fit your needs with your own AI coding agent (such as Claude Code).
One window: a sidebar with all your Claude Code sessions on the left, and the session's terminal on the right.
Claude Code saves every session in ~/.claude/projects/, and you can reopen one with claude --resume <id>.
But after a restart, your terminal tabs are gone, and it is hard to remember which sessions were open.
Codemux keeps that list for you:
- Shows every session in a sidebar, grouped by time, and in workspaces you create.
- Shows which sessions are working, which are waiting for input, and which are old.
- Runs Claude Code in a real terminal inside the app.
- After a restart, the sessions that were open come back, and you can resume each with one click.
- Works with several Claude accounts. When one account hits its limit, continue the same session with another.
Codemux never sends your session files anywhere and never calls the Claude API.
- Pin sessions. Press Pin on a session (or in a tab's header, or at the right end of any session's row in the sidebar while the mouse is on it) to keep it in a PINNED block at the very top of the sidebar, above the open tabs. It stays there while it is open in a tab, and ⌘1–9 counts pinned tabs first. Pins are remembered after a restart. Plain terminal tabs can be pinned too: a pinned terminal stays in PINNED after its tab closes, and a click opens a new shell in the same folder with the same name. Its ✕ unpins it.
- Open tabs on top. Every open tab, from every workspace, is in one OPEN block at the top of the sidebar, with its workspace name. It does not scroll away, so you can switch tabs without scrolling.
- Sidebar with every session. Sessions are grouped into Previously open, Today, Yesterday, Last 7 days, Last 30 days and Older. Each row shows the title, project folder, branch and last activity time.
- Search by title, folder, branch or anything said in the conversation (your prompts and Claude's replies). Press ⌘⇧F to jump to the search box. The words you typed are marked in yellow. When a session matches by its conversation (or its folder or branch), a small gray line under its name shows the part that matched. When nothing matches, the sidebar says so. The ✕ in the box clears it.
- Status at a glance: ● working, ◐ waiting for your input, ▸ plain shell, ○ not running.
- Notification when Claude waits. When Claude finishes or asks you something in a tab you are not looking at, or while the window is in the background, you get a system notification. On macOS, the Dock icon shows how many waiting tabs you have not looked at yet. In the sidebar those tabs have a yellow unread tag, and ⌘J goes to the next one.
- New session: pick a folder and Claude starts there right away.
- Continue an old session with one click (
claude --resumeunder the hood). - Rename a session (a local label, only in Codemux) or a terminal tab: double-click its title.
- Delete a session for good, after you confirm. A running session can't be deleted.
- Stop Claude's work with the ■ Stop button in the tab header (it shows only while Claude works, and sends Ctrl+C). The quiet ✕ next to it closes the tab and ends its process.
- Make your own workspaces (named groups) and move sessions into them. An open tab moves with the workspace picker in its header.
- Fold or unfold each workspace. Delete a workspace without losing its sessions (the ✕ shows when the mouse is on its header).
- A real terminal for each tab (built on
alacritty_terminal), with full colors, mouse and scroll support. - New terminal opens your normal shell. If you run
claudein it, Codemux finds the session by itself and links the tab to it./clearand/resumeinside Claude are picked up too. - Many terminals stay open at once. Hidden tabs use almost no CPU.
- Session files are read on a background thread, so the window opens at once and never waits for disk.
- The list of open sessions is saved on every change.
- After you close the app, restart, or crash, the sessions that were open show up under Previously open. Nothing starts by itself; click one to resume it.
- Add more Claude accounts. Each one has its own login and its own config folder (
~/.claude-<name>). - Switch account for a session: when one account hits its usage limit, pick another account in the session view and keep going in the same conversation. The session files move safely, and a backup is kept for 14 days.
- Shared config: settings, keybindings, skills, agents, commands, rules, output styles and plugins are linked to the Default account, so they are the same on every account. Logins and sessions stay per account.
- Resize the sidebar by dragging its edge, or hide it (⌘B) for privacy.
- Dark theme.
With nothing selected, the main area lists these shortcuts.
| Action | macOS | Linux / Windows |
|---|---|---|
| New session | ⌘N | Ctrl+Shift+N |
| New terminal | ⌘T | Ctrl+Shift+T |
| Close tab | ⌘W | Ctrl+Shift+W |
| Hide or show sidebar | ⌘B | Ctrl+Shift+B |
| Search sessions | ⌘⇧F | Ctrl+Shift+F |
| Go to the next unread tab | ⌘J | Ctrl+Shift+J |
| Go to session 1–9 | ⌘1–⌘9 | Ctrl+Shift+1–9 |
App shortcuts never take keys that Claude Code needs in the terminal.
You need Rust (stable) and the claude CLI on your PATH.
cargo run --release -p codemuxOn macOS, install it as an app, so you can open it from Spotlight (Cmd+Space, type "Codemux"), Finder, or Launchpad:
./scripts/install-macos.shOn Linux, install it for your user, so it shows in the app menu:
./scripts/install-linux.shOn Windows, install it from PowerShell, so it shows in the Start menu:
.\scripts\install-windows.ps1Run the script again after you pull changes, to update the app.
Run the tests:
cargo testI only use macOS, so Linux and Windows are not tested. Build Codemux from source with the install script above. You may find small problems there.
Notes:
- Shortcuts: macOS uses ⌘ (for example ⌘N). Linux and Windows use Ctrl+Shift (for example Ctrl+Shift+N, and Ctrl+Shift+C / Ctrl+Shift+V to copy and paste), so plain Ctrl keys still go to the terminal.
- Linux: you need a desktop with Vulkan or OpenGL drivers, and
libxkbcommon(most desktops have both). Shells andclaudestart through your login shell ($SHELL). - Windows: new terminals open PowerShell. Claude sessions start with
cmd.exe /C claude, soclaudemust be on yourPATH(the native installer and npm both do this).
| Crate | What it does |
|---|---|
crates/core |
Reads session files, tracks status, stores app state. No UI. |
crates/terminal |
Terminal widget for Iced, built on alacritty_terminal. |
crates/app |
The desktop app (sidebar, tabs, settings). |
See SPEC.md for the full design.
MIT. See LICENSE and NOTICE. The terminal crate includes code from iced_term (MIT).
