cmux Tutorial: Claude Code, Codex and OpenCode in One Window
cmux is a free, open-source macOS terminal built on Ghostty for running coding agents. Here is the install, the window → workspace → pane → surface model, the notification rings, the CLI and Unix socket, running Claude Code, Codex and OpenCode in parallel, and how DeepSeek fits in through each agent.
cmux in short
- cmux is a native macOS terminal (Swift + AppKit, rendered with libghostty) whose sidebar, workspaces and notifications are built for running many CLI coding agents at once.
- It is still just a terminal: claude, codex, opencode, gemini, aider or any other CLI runs unchanged. cmux adds organisation around it — it does not wrap or modify the agent.
- Install with brew tap manaflow-ai/cmux then brew install --cask cmux, or the DMG. Official requirements are macOS 14.0 or later on Apple Silicon or Intel.
- The app is free and open source (GPL-3.0-or-later). The paid Pro, Max and Team plans add cloud VMs, the iOS app and team administration — local agent work stays on the free tier.
- Open page
A terminal for coding agents
Channel: cmux.com/agents2026-11-27
- Open page
Getting Started
Channel: cmux.com/docs2026-11-27
- Open page
Concepts
Channel: cmux.com/docs2026-11-27
- Open page
CLI Reference
Channel: cmux.com/docs2026-11-27
- Open page
Notifications
Channel: cmux.com/docs2026-11-27
- Open page
Pricing
Channel: cmux.com/pricing2026-11-27
- Open page
cmux README + LICENSE
Channel: github.com/manaflow-ai/cmux2026-11-27
Every command, shortcut, path and price on this page was read on 2026-11-27 (Asia/Shanghai) from the pages above: cmux.com/agents, cmux.com/docs/getting-started, cmux.com/docs/concepts, cmux.com/docs/cli, cmux.com/docs/notifications, cmux.com/pricing and github.com/manaflow-ai/cmux (README, LICENSE and repository metadata). Anything those pages do not state is marked as not published instead of guessed.
What cmux is, and what it is not
cmux is a macOS terminal built on Ghostty that adds a vertical sidebar, split panes, an in-app browser and a notification system around one problem: keeping a dozen coding agents legible. Its README calls it "a primitive, not a solution" — it hands you a terminal, a browser, notifications, workspaces, splits, tabs and a CLI, and leaves the agent workflow to you.
It is not an orchestrator and not an agent of its own: there is no model inside, no API key of its own and no required account. Agents run exactly as they do in Terminal.app or Ghostty, which is why any CLI works out of the box — and why "DeepSeek support" is a property of the agent you start, not of cmux.
Four levels you use every day
cmux organises a window into four levels, and the CLI and socket reuse the same names — learn it once and the UI, the shortcuts and the automation all line up.
- 1Window — a macOS window (⌘⇧N). Each window has its own sidebar and its own set of workspaces.
- 2Workspace — one sidebar entry, called a tab in the UI and a workspace in the CLI and socket (⌘N new, ⌘1–⌘9 jump, ⌘⇧W close). It exports CMUX_WORKSPACE_ID and is the unit you start one agent per task in.
- 3Pane — a split region inside a workspace (⌘D to the right, ⌘⇧D down, ⌥⌘ with arrow keys to move focus). Every pane has its own tab bar.
- 4Surface — a tab inside a pane (⌘T new, ⌘[ and ⌘] to switch) and the real terminal or browser session, identified by CMUX_SURFACE_ID.
Install it and put the CLI on your PATH
The getting-started page lists two routes: the DMG (recommended, auto-updates via Sparkle) or the Homebrew cask. The CLI ships inside the app bundle and needs one extra step before other terminals can call it.
- 1
Install the app with Homebrew
brew tap manaflow-ai/cmux, then brew install --cask cmux. Later updates are brew upgrade --cask cmux. The cask also installs zsh, bash and fish completions, so start a new shell afterwards.
- 2
Or drag the DMG into Applications
Download the DMG from cmux.com or the GitHub releases page, open it and drag cmux into Applications. On first launch macOS may ask you to confirm an app from an identified developer — click Open. After that cmux updates itself.
- 3
Check the first window
You should see a terminal window with the vertical tab sidebar on the left and one workspace already open. That is the whole setup: no account and no config file to write.
- 4
Put cmux on PATH
Inside a cmux terminal the CLI already works. From any other terminal, open the command palette (⌘⇧P) and run Shell Command: Install 'cmux' in PATH, or create the symlink yourself with sudo ln -sf "/Applications/cmux.app/Contents/Resources/bin/cmux" /usr/local/bin/cmux, then confirm with cmux list-workspaces.
2026-11-27
brew tap manaflow-ai/cmuxbrew install --cask cmux# CLI for other terminals (or the command palette: Shell Command)sudo ln -sf "/Applications/cmux.app/Contents/Resources/bin/cmux" \ /usr/local/bin/cmuxcmux list-workspacesOne workspace per task, and what the sidebar shows
The sidebar is the reason to pick cmux over a pile of tabs: every workspace row carries its git branch, linked PR status and number, working directory, listening ports and the latest notification line, so a dozen parallel agents stay scannable.
The rhythm that works: one workspace per task, then split inside it. ⌘D keeps a dev server or test watcher beside the agent, ⌘T adds a second surface in the same pane, ⌘B hides the sidebar, ⌘K clears scrollback.
Session restore is layout-level. Windows, workspaces, panes, working directories, best-effort scrollback and browser history come back after a relaunch, but live process state does not: tmux, vim and plain shells reopen as ordinary terminals. For real detach/reattach, opt in to cmux local-tmux.
Notification rings: knowing which agent needs you
When an agent finishes or asks for input, its pane gets a ring and the workspace tab shows an unread badge. ⌘⇧U jumps to the latest unread workspace and ⌘⇧I opens the notification panel. Desktop alerts are suppressed while the cmux window is focused, while the sending workspace is active, or while the panel is open.
Agents reach that system three ways: terminal escape sequences from the agent itself, the CLI (cmux notify --title "Build Complete" --body "Your build finished"), and hooks. cmux.json can define notification hooks that receive each notification as JSON on stdin, and Settings → App → Notification Command runs a shell command per notification with CMUX_NOTIFICATION_TITLE, CMUX_NOTIFICATION_SUBTITLE and CMUX_NOTIFICATION_BODY.
Two extras are worth knowing: cmux hooks setup installs resume hooks for the agents it can find, so a supported session can pick up after a relaunch, and the iOS companion app (beta) pairs with your Mac to forward notifications to the phone.
Send a notification from any shell:
cmux notify --title "Build Complete" --body "Your build finished"Claude Code, Codex and OpenCode side by side
Nothing in cmux is agent-specific. Open a workspace, run claude, and you get the same Claude Code as in any terminal; do the same in a second workspace with codex and a third with opencode, and the sidebar keeps the three sessions apart with branch, directory and ports.
A few conveniences ship on top: cmux claude-teams runs Claude Code teammate mode with teammates as native splits (no tmux needed), cmux omo runs OpenCode with the oh-my-openagent plugin so several models orchestrate as parallel panes, and an oh-my-codex integration does the same for Codex.
Because the agents run unmodified, model choice stays theirs. To use DeepSeek, configure it where that agent already expects it — the DeepSeek API key and base URL for Claude Code, or the provider settings of OpenCode and Codex — then launch the agent inside cmux. This site's Claude Code + DeepSeek and DeepSeek API guides cover that configuration.
The three sessions, started as usual:
cmux new-workspace # workspace 1claudecmux new-workspace # workspace 2codexcmux new-workspace # workspace 3opencodecmux claude-teams # Claude Code teammate mode as native splitscmux omo # OpenCode + oh-my-openagent orchestrationcmux hooks setup # resume hooks for supported agentsCLI and Unix socket: script the whole window
Every action exists twice: as a cmux subcommand and as a JSON request on a Unix socket (/tmp/cmux.sock for release builds, overridable with CMUX_SOCKET_PATH). Send one newline-terminated request per call — {"id":"1","method":"workspace.list","params":{}} in, {"id":"1","ok":true,"result":{...}} back.
Practical automation: cmux new-workspace for a fresh agent, cmux new-split down --command "npm run dev" to start a server next to it, cmux list-workspaces or cmux list-panels --json to feed a script, cmux notify to surface a result. Access is scoped by CMUX_SOCKET_MODE: Off, cmux processes only (the default), or allowAll.
CLI and socket, same verbs:
cmux new-split rightcmux new-split down --command "npm run dev"cmux list-workspaces --json# same verbs over the socket: /tmp/cmux.sock{"id":"1","method":"workspace.list","params":{}}{"id":"1","ok":true,"result":{"workspaces":[...]}}cmux vs a plain terminal and vs tmux
cmux is a terminal application; tmux is a multiplexer that runs inside a terminal. They solve different halves of the same problem, and the honest answer depends on whether you need a window you can look at or a session that outlives your connection.
- Where it runs — cmux is a native macOS app with its own sidebar, splits and browser panes. A plain terminal (Terminal.app, Ghostty) plus tmux gives you panes and persistence, but no sidebar, no agent metadata and no notification rings.
- Agent supervision — cmux builds per-workspace rings, unread badges, branch/PR/port metadata and the ⌘⇧U unread jump into the terminal. tmux has none of that; you read output or wire your own bell and notification hooks.
- Persistence — tmux is built for sessions that survive SSH drops and closed windows; in cmux, session restore only brings the layout back, and cmux local-tmux is the opt-in detach/reattach path. cmux ssh, cmux mosh and cmux mosh-tmux cover remote machines.
Rule of thumb: use cmux when the bottleneck is seeing and steering many local agents; use tmux (inside cmux or on its own) when the bottleneck is a remote session that must outlive your laptop. They compose rather than compete.
Price, licence and platform limits
The local terminal is free. The paid tiers sell cloud capacity, team administration and the iOS app, not local terminal features.
| Plan | Price | What you get |
|---|---|---|
| Free | $0/mo | The whole macOS terminal: Ghostty rendering, vertical tabs, workspaces, splits, completion notifications, browser panels, the scriptable socket API, your own agent keys and local session history. |
| Pro | $50/mo | Free plus cloud agents on Cloud VMs (up to 5 VMs sharing 20 vCPUs / 40 GB RAM, one VM up to 16 GB), unlimited workspaces and the iOS app. |
| Max | $200/mo | Pro with bigger machines: up to 5 VMs sharing 80 vCPUs / 160 GB RAM, plus the 24 GB, 32 GB and 64 GB VM sizes. |
| Team | $60/user/mo | Pro per paid seat with centralized billing and priority support. Enterprise adds self-hosted cloud execution, SSO/SAML, audit logs and an SLA. |
Licence
The repository says material contributed under the project licence is GPL-3.0-or-later, while the server directories (web/, several workers/ folders and the cmux-tui relays) carry their own BUSL-1.1 licence that needs a commercial agreement for production self-hosting. The macOS app, iOS app, CLI and cmux-tui stay under the project licence.
Platform
Official requirements: macOS 14.0 or later, Apple Silicon or Intel. The docs document only the macOS install (DMG or Homebrew cask) and publish no Linux or Windows client instructions, so do not assume a build exists.
