Snapshot before the risky part.
Capture pip freeze, label the state, compare it later and roll back without deleting the working environment first.
Claude, Codex and other coding agents can run Python. venv-manager gives all of them the same persistent, observable and reversible environment state.
Get running
Requires Python 3 at runtime. Use Homebrew, grab a release binary, or build from source with Go 1.24+.
$ brew install jacopobonomi/tap/venv-manager
$ curl -sSL https://raw.githubusercontent.com/jacopobonomi/venv_manager/main/install.sh | bash
$ git clone https://github.com/jacopobonomi/venv_manager $ cd venv_manager && make install
Then run venv-manager doctor to verify Python, uv and your environment directory.
Beyond create & delete
Agent permissions decide what may happen now. venv-manager records what exists, what changed and how to recover — across clients and sessions.
Capture pip freeze, label the state, compare it later and roll back without deleting the working environment first.
Watch Python files, detect third-party imports, ignore local modules and install only what is missing — serially and safely.
Create → install → run → destroy. Add --sandbox for OS-level network and write restrictions.
why myenv numpy walks reverse dependencies back to the top-level package.
describe returns paths, versions, packages, size, activation commands and a stable freeze hash.
Track creation, real last use, project associations and tags. prune acts on metadata instead of guesses.
Native MCP server
Run venv-manager mcp and give Claude, Codex, Cursor, Zed or any MCP client one consistent source of truth instead of separate terminal sessions full of assumptions.
Permissions control what an agent may do. venv-manager records what it did and gives you a path back.
One workflow, three interfaces
Concise commands, structured JSON output and shell completion for repeatable automation.
venv-manager list --jsonInspect environment sizes and packages, clean caches and remove stale runtimes interactively.
venv-manager tuiThe same manager operations become typed tools over stdio, with validation at the boundary.
venv-manager mcp