uv
$ uv Official Low RiskAstral's all-in-one Rust replacement for pip, pip-tools, pipx, poetry, and pyenv. Delivers 10-100x faster dependency resolution, deterministic uv.lock syncing, --dry-run install previews, --format json inspection, and uvx ephemeral tool execution.
brew install uv Manages local Python interpreters, .venv sandboxes, and uv.lock resolution directly on disk at Rust speed.
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
Supports uv pip list --format json, uv sync --dry-run, --locked, --color never, NO_COLOR=1, and crisp non-interactive diagnostics.
uv pip list --format jsonanduv treeprovide clean inspection--dry-runand--lockedenforce deterministic headless runs
Isolates environments inside project .venv and uv.lock, with --dry-run on sync/pip install and explicit opt-in for uv publish.
uv sync --dry-runpreviews changes before modifying.venv
Single static Rust binary with zero Python prerequisite—can even download managed Python interpreters itself.
- Self-contained static binary across macOS, Linux, and Windows
Orders-of-magnitude faster than pip/poetry with global hardlink cache, saving huge time in agent test loops.
- Sub-second cached environment resolution and
uvxrunner
Backed by Astral (astral-sh/uv) with rapid, high-quality releases under Apache-2.0/MIT.
- Official
astral-sh/uvproject
Exemplary documentation at docs.astral.sh/uv/ with clear CLI reference.
- Comprehensive CLI and lockfile guide at docs.astral.sh/uv
Security, Auth & Guardrails
Package installs need no auth; private index or uv publish tokens use UV_PUBLISH_TOKEN, keyring, or ~/.netrc.
Dual Apache-2.0 / MIT open-source Rust binary; completely free.
# uv Agent Rules - Prefer `uv run --locked <cmd>` or `uv sync --dry-run` before mutating `.venv`. - Pass `--color never` (or `NO_COLOR=1`) for clean logs. - Never run `uv publish` without explicit user confirmation.
Agent-Ready Command Recipes
Safe Read-Only Queries
uv pip list --format json
Emits installed package names and exact versions in structured JSON.
uv sync --dry-run --color never
Reports packages that would be added, upgraded, or removed without touching .venv.
Controlled Writes & Previews
uv run --locked pytest -q
Executes pytest using the exact uv.lock environment, failing safely if the lockfile is stale.
Strengths for Agents
- + Single Rust binary requires no pre-installed Python and provisions interpreters automatically.
- +
uv sync --dry-run,--locked, anduv pip list --format jsongive agents tight control over Python envs. - + Near-instant cached installs dramatically accelerate agent iteration.
Caveats & Pitfalls
- !
uv syncstdout is plain text rather than JSON. - ! Installing source distributions (sdists) without pre-built wheels still runs package
setup.pybuild hooks.