Every pane runs on its owner's machine.
p2pmux is a terminal multiplexer for two or more people. You share a layout, not a computer: each pane's shell runs on the Mac of whoever created it, under that person's PATH, environment and credentials.
Install
curl -fsSL https://p2pmux.com/install.sh | sh
macOS, Apple Silicon or Intel. The script is served as plain text — read it first. It downloads a binary and its SHA256 from GitHub Releases, checks the hash, and copies one file into place.
Or build it yourself:
cargo install --git https://github.com/pelazas/p2pmux --locked
Use
p2pmux create # then Ctrl+S for the join code
p2pmux join 4KP7Q-M2XRW
Ctrl+P then arrows for panes, Ctrl+T for tabs, Ctrl+Q to leave the session running.
What that buys you
- Start an agent in your pane, on your subscription. A teammate can take control and drive it without ever holding your API key.
- They host panes too. Same session, their machine, their credentials.
- Direct peer-to-peer when the network allows, relayed when NAT says no. Encrypted either way, and the status bar tells you which path you are on.
This is a trusted shared shell. Whoever holds a pane can run commands as that
Mac's user and read anything that user can read — including printing a secret to the screen.
Credential files and processes never leave the host Mac, but that is not the same as
being sandboxed. Both halves, in detail →