pipx
$ pipx Foundation Low Riskpipx installs Python CLI tools into isolated per-package virtualenvs and exposes their entrypoints on PATH, preventing dependency conflicts. Agents can inspect installed tools via pipx list --json and run ephemeral tools cleanly with pipx run.
brew install pipx pipx manages isolated local virtualenvs and binary shims under ~/.local/pipx; local CLI provisioning cannot be replaced by an MCP server.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Provides pipx list --json (or --output json), non-interactive execution by default, and deterministic pipx run, though install logs are plain text.
pipx list --jsonexports full venv and entrypoint inventory- Ephemeral
pipx runruns without interactive prompts
Isolates every Python CLI in its own venv under ~/.local/pipx/venvs, preventing global site-packages contamination.
- Per-tool virtualenv isolation avoids dependency conflicts
Available via Homebrew, apt, scoop, and PyPI across macOS, Linux, and Windows, requiring Python 3.8+.
- Cross-platform availability via
brew install pipxandpip install pipx
pipx run and pipx inject streamline one-off CLI execution, though uvx (uv tool run) is faster for cold environments.
- Cleanly isolates Python CLI apps, though slower cold creation than
uvx
Official PyPA project (pypa/pipx) licensed under MIT with steady maintenance.
- Maintained under PyPA (
pypa/pipx)
Clear documentation at pipx.pypa.io and structured --help across subcommands.
- Official docs at pipx.pypa.io/stable/docs
Security, Auth & Guardrails
Public PyPI packages need no auth; private index auth follows standard pip configuration (pip.conf, .netrc, keyring).
MIT open-source CLI maintained by PyPA; free to use.
# pipx Agent Rules - Check `pipx list --json` before installing a Python CLI globally. - Prefer `pipx run <tool>` for one-off invocations instead of `pipx install`.
Agent-Ready Command Recipes
Safe Read-Only Queries
pipx list --json
Dumps all isolated virtualenvs, injected packages, Python versions, and binary entrypoints in JSON.
pipx environment
Displays resolved PIPX_HOME, PIPX_BIN_DIR, and Python interpreter paths.
Controlled Writes & Previews
pipx run ruff check .
Downloads and runs a tool in a cached temporary virtualenv without altering global environments.
Strengths for Agents
- +
pipx list --jsonoutputs a complete, portable snapshot of installed CLI virtualenvs. - + Isolates Python CLI dependencies cleanly so tools never break each other.
- +
pipx runexecutes one-off tools without polluting globalPATH.
Caveats & Pitfalls
- ! No
--dry-runflag onpipx installorpipx upgrade-all. - ! Slower virtualenv creation and resolution than
uv tool/uvx.