Installation
The desktop app and standalone server both include the btmux command.
Release builds support Apple Silicon macOS, x86-64 and ARM64 Linux, and x64
and ARM64 Windows.
Desktop app
Section titled “Desktop app”brew install --cask btmux-dev/tap/btmuxThe app is signed and notarized. Intel Macs are not supported. To add
btmux to your shell’s PATH, choose btmux → Install Command-Line Tool…
or install the Homebrew formula.
Download btmux-desktop-<arch>-unknown-linux-gnu.deb from
Releases and install it:
sudo apt install ./btmux-desktop-*.debIt installs the btmux command as /usr/bin/btmux.
Run btmux-desktop-<arch>-pc-windows-msvc-setup.exe from
Releases. It installs for the
current user, without admin rights, and adds the btmux command to your
PATH.
Open btmux to connect to its own server or choose an existing one. Continue with First steps. See Desktop app for server options.
Server only
Section titled “Server only”Install the standalone server for browser access on a local, remote, or headless machine.
brew install btmux-dev/tap/btmuxOr use the install script, as on Linux.
curl -fsSL https://raw.githubusercontent.com/btmux-dev/btmux/main/scripts/install.sh | bashThe script installs to ~/.local/bin. Set BTMUX_INSTALL_DIR to change the
destination, or install with brew install btmux-dev/tap/btmux.
Download the release binary and put it on your PATH. In PowerShell:
$arch = if ($env:PROCESSOR_ARCHITECTURE -eq 'ARM64') { 'aarch64' } else { 'x86_64' }$dir = "$env:LOCALAPPDATA\Programs\btmux"New-Item -ItemType Directory -Force $dir | Out-NullInvoke-WebRequest "https://github.com/btmux-dev/btmux/releases/latest/download/btmux-$arch-pc-windows-msvc.exe" -OutFile "$dir\btmux.exe"[Environment]::SetEnvironmentVariable('Path', "$([Environment]::GetEnvironmentVariable('Path', 'User'));$dir", 'User')Open a new terminal so it picks up the PATH change. The binary is unsigned.
See Windows for shells and limits.
Then start it and sign in:
-
Run
btmux. It openshttp://127.0.0.1:8004and prints the path of its access token file. -
Read the token:
Terminal window cat "${XDG_STATE_HOME:-$HOME/.local/state}/btmux/state.token"On Windows, in PowerShell:
Terminal window Get-Content "$env:LOCALAPPDATA\btmux\state.token" -
Sign in with the username
btmuxand the token as the password.
The token stays the same across restarts. To reach the server from a phone or another machine, see Remote access. Access tokens covers rotating the token and reverse proxies.
Run it as a service
Section titled “Run it as a service”On macOS and Linux, btmux can install itself as a per-user service (launchd or systemd) that starts at login and restarts after a crash:
btmux install # install and start on 127.0.0.1:8004btmux --port 8005 install # bake command-line options into the servicebtmux install --print # print the unit without installing itbtmux restart # restart the service, ending its shellsbtmux uninstall # stop and remove the serviceThe --host, --port, --profile, --shell, --public-url, and
--tailscale flags, along with your shell’s PATH, are captured when the
service is installed. Run btmux install again after changing them.
The desktop app finds a running service and offers to connect to it.
Upgrading
Section titled “Upgrading”Update the installed binary, then run btmux upgrade to move the running
server to it. For Homebrew, run:
brew update && brew upgrade btmux # or run the install script againbtmux upgradebtmux upgrade keeps running shells and their scrollback
(how). If it can’t, btmux restart ends them and
restores the layout. Windows has no in-place upgrade: quit btmux,
replace the binary, and start it again.
For the desktop app, quit it, then run brew upgrade --cask btmux
or the new installer.
Other ways to install
Section titled “Other ways to install”The repository’s flake exposes packages.<system>.default (the server and CLI)
and packages.<system>.desktop (the desktop app), for Apple Silicon macOS and
x86-64/ARM64 Linux.
It also has a Home Manager module, which installs btmux with its shell
completions, writes config.toml, and runs the service:
{ inputs.btmux.url = "github:btmux-dev/btmux";
imports = [ inputs.btmux.homeManagerModules.default ];
programs.btmux = { enable = true; settings = { prefix = "C-b"; terminal.font-size = 16; }; service.port = 8004; };}settings takes anything config.toml does.
To change it, choose settings in the Settings dialog,
turn on Show TOML, switch it to Home Manager, and replace your
settings with what it shows: it has all of config.toml, including
settings the dialog doesn’t.
Other options:
desktop.enable = true: install the desktop app too. It runs its own server, so you can setservice.enable = falseunless you also want btmux in a browser.service.enable = false: install and configure btmux without starting it.service.host,service.shell,service.tailscale: the service’s--host,--shell, and--tailscale.package,desktop.package: use another build.package = null, with the service disabled, only writes the configuration.enableFishIntegration = false: skip the fish integration, installed whenprograms.fish.enableis set.fishPickMenus = trueusesbtmux pickmenus for Tab,Ctrl+R, andcdh.
If you installed the service with btmux install, run btmux uninstall
before enabling the Home Manager service. When only the package changes,
activation runs btmux upgrade to keep shells running. If the upgrade is
refused, for example because Neovim has unsaved buffers, activation warns
and you can run btmux upgrade later.
From source
Section titled “From source”See Development.