Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

Load a Python workspace

Python
  • Python
  • Ruby
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust Unavailable
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

Edit this page on GitHub

tmuxp 1.74.0 · Source

Install tmuxp as a Python tool, with Python 3.10 or newer and tmux 3.2 or newer available on the host:

Terminal window
$ uv tool install tmuxp

The tool environment owns tmuxp’s dependencies. Keep a separately installed MCP application in its own environment if its libtmux requirement differs.

Describe the workspaceLink to section

Save this upstream example as workspace.yaml:

session_name: 2-pane-vertical
windows:
- window_name: my test window
panes:
- echo hello
- echo hello

Load it detached on a dedicated socket, without changing your attached session:

Terminal window
$ tmuxp load \
-L workspace-guide \
-d \
workspace.yaml

The -L value selects the tmux server and -d prevents attachment. Reserve that socket name for this example. Omit -d when you want tmuxp to attach or offer its normal client-switching flow.

Inspect the created session:

Terminal window
$ tmux -L workspace-guide list-sessions

When finished, remove only the example session:

Terminal window
$ tmux -L workspace-guide kill-session -t '=2-pane-vertical'

Saved workspaces and exportLink to section

tmuxp load accepts file paths and names resolved through its configuration search. Use an explicit path while learning the format so the loaded file is unambiguous.

Use tmuxp freeze for a session you want to capture as a starting configuration. It offers YAML or JSON output. Inspect the generated command lists and paths before using the export later.

The upstream load reference covers append, session-name, socket, and attachment options. The freeze reference covers output choices.

Workspace source; CLI option definitions.

Esc

Type to search.