Skip to content

📦 Installation (macOS & Linux)

The easiest route, on both macOS and Linux:

Terminal
brew install LebedevKondakovSergeyVach/tap/tspm

To upgrade later:

Terminal
brew upgrade tspm

On macOS, Gatekeeper may quarantine a downloaded binary. Clear it with:

Terminal
xattr -d com.apple.quarantine /usr/local/bin/tspm

Terminal
git clone https://github.com/LebedevKondakovSergeyVach/Terminal-Session-Proxy-Manager.git
cd Terminal-Session-Proxy-Manager
# Install into ~/.cargo/bin
cargo install --path .
# Or just build, leaving the binary in target/release/
cargo build --release

If the binary is installed but not found, add its directory to your PATH.

For a Cargo install (~/.zshrc or ~/.bashrc):

~/.zshrc
export PATH="$HOME/.cargo/bin:$PATH"

For a manual install into /usr/local/bin, that directory is usually on PATH already. Confirm which binary is being used with:

Terminal
which tspm

Zsh (~/.zshrc):

~/.zshrc
eval "$(tspm init zsh)"

Bash (~/.bashrc):

~/.bashrc
eval "$(tspm init bash)"

Restart your terminal or run source ~/.zshrc to apply. Details and the full list of functions are in SHELL_INTEGRATION.md.


Terminal
tspm --version
type proxy # should report a shell function
proxy config path # shows which config.json is in use
proxy status

Terminal
# Homebrew
brew uninstall tspm
# Cargo (crates.io)
cargo uninstall tspm
# Manual
sudo rm /usr/local/bin/tspm

Then remove the eval "$(... init ...)" line from your shell rc file.

Configuration is left behind on purpose. Remove it too if you want:

Terminal
# macOS
rm -rf ~/Library/Application\ Support/tspm
# Linux
rm -rf ~/.config/tspm

Diagram

Drag to move. Pinch or scroll to zoom. Keyboard: arrows, +, −, 0.