Python libraries and tools for tmux: typed control over servers, sessions, windows, and panes, declarative session workspaces, and Model Context Protocol integration.
| Project | What it does | PyPI | Documentation |
|---|---|---|---|
libtmux |
Typed Python API and pytest plugin for tmux servers, sessions, windows, and panes |
PyPI | libtmux.org/en/py/ |
tmuxp |
Declarative session manager that loads and freezes tmux workspaces from YAML or JSON | PyPI | tmuxp.git-pull.com |
libtmux-mcp |
Model Context Protocol server for inspecting and driving tmux from AI tools | PyPI | MCP docs |
The sister libtmux organization hosts ports of
libtmux in Rust, Go, TypeScript, C++, Swift, JVM, .NET, Ruby, Lua, BEAM,
Haskell, OCaml, Lisp, Julia, Perl, Raku, and PowerShell, documented at
libtmux.org.
Read the AI policy for how these projects treat AI tools, issue reports, and pull requests.