Install hivemux on macOS and Linux
Install hivemux on macOS or Linux with curl -fsSL https://hivemux.dev/install.sh | bash, or on a Mac with Homebrew: brew install hivemux/tap/hivemux followed by hivemux setup. You need tmux 3.3+, jq, git, perl, python3 and a logged-in Claude Code; Ghostty is recommended, and setup offers to install it.
Requirements
Section titled “Requirements”- macOS, or Linux with tmux 3.3 or newer: Ubuntu 24.04+, Debian 12+, Fedora, Arch (x86_64 and arm64). Ubuntu 22.04’s tmux is 3.2, too old. Linux is tested on Ubuntu 24.04 (arm64)
- tmux 3.3 or newer, jq, git, perl, python3 (on a Mac, python3 and perl come with Xcode Command Line Tools)
- Claude Code, logged in
- Ghostty recommended.
hivemux setupoffers to install it. Any terminal works if you starttmuxyourself, and other terminals can open every window in hivemux too.
If a dependency is missing on a Mac, hivemux setup stops and tells you. Install them with:
brew install tmux jq gitOn Linux, setup offers to install them for you; see Install on Linux.
Install with the script
Section titled “Install with the script”curl -fsSL https://hivemux.dev/install.sh | bashThis URL serves the install.sh from the hivemux GitHub repository. The script clones hivemux into ~/.local/share/hivemux/src (or updates it if it is already there) and runs hivemux setup. For a git install, setup also adds the hivemux bin folder to your PATH in ~/.zshrc (and in ~/.bashrc when bash is your login shell or the file exists, as on most Linux systems).
To pass options to setup through the script, use bash -s --:
curl -fsSL https://hivemux.dev/install.sh | bash -s -- --no-keysInstall with Homebrew
Section titled “Install with Homebrew”On a Mac:
brew install hivemux/tap/hivemuxhivemux setupThe Homebrew formula is for macOS only. On Linux, use the install script.
Install on Linux
Section titled “Install on Linux”curl -fsSL https://hivemux.dev/install.sh | bashIt is the same script as on a Mac. What setup does differently on Linux:
- Missing packages. If tmux, jq, git or perl is missing, setup offers to install them with the distribution’s package manager: apt, dnf, pacman, zypper or apk. It asks first, since it runs
sudo. Run without a terminal (or with--yes), it does not install anything and prints the command to run instead. - tmux too old. If the tmux there is older than 3.3, setup stops and says so. Ubuntu 22.04 has 3.2; Ubuntu 24.04+, Debian 12+, Fedora and Arch have a newer one.
- Ghostty with a desktop. When Ghostty is missing, setup offers to install it from the distribution’s own package where there is one (Arch with pacman, openSUSE with zypper, Ubuntu 26.04+ with apt, Alpine with apk), or else the snap (a community build). With neither, it points to ghostty.org/docs/install/binary.
- No desktop. On a server with no desktop, such as one you reach over ssh, the Ghostty step is skipped. Run
tmuxthere, or connect to it from your Mac withhivemux connect(see Another computer). - PATH goes in
~/.bashrcas well as~/.zshrc. - Keys.
Optionin these docs isAlton Linux (Alt+1,Alt+0,Alt+O), and a new Ghostty window isCtrl+Shift+N. - Opening and copying. Files and links open with
xdg-open,Ctrl+Fin the Open path popup shows the file in the file manager (FileManager1 over D-Bus), and copying useswl-copy,xcliporxsel, else the terminal’s clipboard (OSC 52).
What hivemux setup asks
Section titled “What hivemux setup asks”hivemux setup asks up to six questions, only the ones that apply. Enter takes the default (the capital letter: [Y/n] is yes, [y/N] is no).
| Question | Default | What it changes |
|---|---|---|
| Install missing packages (Linux, only when some are missing) | yes | tmux, jq, git, perl with the package manager |
| Recommended keys | yes | prefix Ctrl+A (Claude Code uses Ctrl+B; press Ctrl+A twice to go to the start of a line), | / - splits |
| Remote Control for all Claude Code sessions on this computer, also outside hivemux | no | remoteControlAtStartup in ~/.claude/settings.json. --remote turns it on without asking (also later: hivemux setup --remote) |
| Install Ghostty (only when it is missing) | yes | brew install --cask ghostty; never with --yes. Without Homebrew, it opens ghostty.org/download instead. On Linux, see Install on Linux |
| Ghostty windows open inside tmux | yes | in the Ghostty config: command = hivemux-attach, Option as Alt (macos-option-as-alt), windows come back after a restart (window-save-state), no confirmation when closing a window (confirm-close-surface = false) |
| Another terminal opens hivemux too (only when setup runs in iTerm2, WezTerm, kitty, Alacritty or Terminal.app) | no | see Other terminals |
| Usage stats: also share how often each feature is used | no | the anonymous daily ping is on either way; see Privacy |
It also:
- downloads tmux-resurrect and tmux-continuum, or uses yours from
~/.tmux/plugins - registers eleven Claude Code hooks in
~/.claude/settings.json - builds the bee office window in the background
- when it is done, opens Ghostty (if setup already runs in Ghostty, press
⌘Nfor a new window,Ctrl+Shift+Non Linux)
On a first install (no tmux server running and no saved layout yet), the first Ghostty window opens the New project folder picker once, in your home folder: Enter goes into the selected folder, and Tab (or Enter on ▶ Start here at the top) starts Claude in the folder you are in. You do not need to know hm to begin.
Every change goes between # >>> hivemux >>> and # <<< hivemux <<< markers, and the original files are backed up to ~/.local/share/hivemux/backups/. hivemux uninstall removes exactly those blocks; see Uninstall.
Setup flags
Section titled “Setup flags”| Flag | Effect |
|---|---|
--yes |
accept all defaults without asking |
--no-keys |
keep tmux’s default prefix and keys |
--no-ghostty |
do not install Ghostty or attach it to tmux |
--remote / --no-remote |
turn Remote Control on for every session without asking / leave it off (off is the default) |
--lang=<code> |
screen language: en, ko, ja, zh, es, fr or de (default follows your Mac’s language; others show English) |
You can change the language later in the sidebar’s right-click menu → Settings.
Check the install
Section titled “Check the install”With Homebrew, or when ~/.local/bin is in your PATH (Claude Code’s installer puts it there), hivemux and hm work in the terminal you installed from. Otherwise setup adds them to PATH for new shells and says so: run exec $SHELL -l or open a new tab first.
hivemux doctorhivemux versionhivemux doctor checks the dependencies, the tmux and Ghostty blocks (and any other terminal set up with hivemux terminal), the eleven hooks, the running tmux server and the remote setup (Remote Login on a Mac, the ssh server on Linux). Then open a new Ghostty window (or run tmux) and continue with the Quick start.
Other terminals
Section titled “Other terminals”Ghostty is recommended (see Claude Code in Ghostty for why), but another terminal can open every window inside tmux with the sidebar the same way:
hivemux terminal iterm # or wezterm, kitty, alacritty, terminal (Terminal.app), ghosttyhivemux terminal iterm --off # stopWithout a name, it uses the terminal you run it in. When you run hivemux setup from one of these terminals, setup asks whether to do this too (default no). On Linux the choices are ghostty, wezterm, kitty and alacritty; iTerm2 and Terminal.app are macOS apps.
| Terminal | What it changes |
|---|---|
| iTerm2 | adds a profile of its own, “hivemux” (a Dynamic Profile), and makes it the default; your profiles stay as they are. New windows use it after iTerm2 restarts. --off restores your previous default profile |
| WezTerm | adds marked lines before the final return config in its config, or writes a new config if there is none |
| kitty | a marked block in its config |
| Alacritty | a marked block in its config. If the config already sets the shell, it stops and tells you the line to add yourself |
| Terminal.app | a marked block in ~/.zshrc. For the Option keys, turn on Terminal → Settings → Profiles → Keyboard → Use Option as Meta key |
--off and hivemux uninstall remove only what this added, and hivemux doctor lists the terminals that are set up. Without any of this, you can still run tmux yourself in any terminal; the sidebar appears in every tmux window.
Update hivemux
Section titled “Update hivemux”hivemux checks for a new version once a day. When one is out, the sidebar’s bottom line turns into “0.1.x · update hivemux” and the bee office’s ⚙ gets a dot. Click either (or right-click the sidebar → Update hivemux) to see what changed and update in place, or run:
hivemux update # --yes: no question; --check: only lookIt updates with brew for a Homebrew install and with git for the script install, then runs hivemux setup again with the answers you gave the first time (no questions), reloads the running tmux, restarts the sidebars and the bee office. Your sessions and their Claudes keep running. Claude sessions started before the update pick up new hooks once restarted.
Settings → hivemux updates chooses how:
| Setting | What it does |
|---|---|
| Tell me (default) | shows the update line and the dot; you update when you like |
| Automatic | updates on its own, at a moment when no Claude is working or waiting for you, and says so at the bottom of the screen |
| Never check | does not look |
Up to 0.1.65, which have no hivemux update yet, update once by hand:
# Homebrew (macOS)brew update && brew upgrade hivemux && hivemux setup# git install (macOS or Linux): run the install command againcurl -fsSL https://hivemux.dev/install.sh | bashUpdate Claude Code
Section titled “Update Claude Code”Right-click the sidebar → Update Claude, or run:
hivemux update-claude # --yes: no questionIt checks for a newer version and, once you confirm, updates Claude Code (with brew if it came from Homebrew), then restarts each pane’s Claude on the new version in the same conversation. A Claude that is working, waiting for you, or on screen restarts later, once it is done and off screen.