| name | uv |
| description | Install and use uv — the fast Python package and project manager. Use when: user needs to install uv, manage Python versions, create virtual environments, install packages/tools, run Python scripts with inline deps, or set up any Python-based skill that requires uv. uv is the standard Python tool manager for this OpenClaw installation. |
| homepage | https://docs.astral.sh/uv/ |
| metadata | {"openclaw":{"emoji":"🐍","always":true,"install":[{"id":"brew","kind":"brew","formula":"uv","bins":["uv"],"label":"Install uv (brew)"}]}} |
uv — Python Package & Project Manager
uv is a fast, all-in-one Python tool manager (replaces pip, pip-tools, pipx, pyenv, virtualenv). It is required by many OpenClaw skills that run Python scripts or install Python CLI tools.
Check if uv is installed
uv --version
Install uv (if not present)
macOS / Linux (recommended)
curl -LsSf https://astral.sh/uv/install.sh | sh
After install, reload PATH:
source ~/.bashrc 2>/dev/null || source ~/.zshrc 2>/dev/null || export PATH="$HOME/.cargo/bin:$PATH"
macOS via Homebrew
brew install uv
pip (if Python already available)
pip install uv
Windows (PowerShell)
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
Verify install:
uv --version
Install Python CLI Tools (uv tool install)
Use for tools that expose a command-line binary (nano-pdf, ruff, etc.):
uv tool install nano-pdf
uv tool install ruff
uv tool install httpie
uv tool install nano-pdf==0.3.1
uv tool list
uv tool upgrade nano-pdf
uv tool uninstall nano-pdf
Install Packages (uv pip install)
Drop-in replacement for pip install, uses the active virtual environment:
uv pip install requests
uv pip install "python-pptx>=0.6.23"
uv pip install -r requirements.txt
uv pip install -e .
uv pip show requests
uv pip list
uv pip uninstall requests
Run Scripts (uv run)
Run a Python script without manually activating a venv. Handles dependencies automatically:
uv run script.py
uv run --with requests script.py
uv run --with "requests>=2.28" --with pillow script.py
uv run -m http.server 8080
uv run --python 3.12 script.py
For scripts with inline dependency metadata (PEP 723):
import requests
...
uv run script.py
Manage Python Versions
uv python install 3.12
uv python install 3.11 3.12 3.13
uv python list
uv python pin 3.12
Virtual Environments
uv venv
uv venv myenv
uv venv --python 3.12
source .venv/bin/activate
.venv\Scripts\activate
uv pip install requests
Project Management (uv sync / uv add)
For projects with pyproject.toml:
uv sync
uv add requests
uv add "fastapi>=0.100"
uv add --dev pytest
uv remove requests
uv lock
Common Patterns for OpenClaw Skills
Run a skill script with dependencies
uv run {skillDir}/scripts/my_script.py --arg value
Install a Python skill tool then run it
uv tool install nano-pdf
nano-pdf ...
Quick one-off script with packages
uv run --with httpx --with rich python3 -c "
import httpx, rich
r = httpx.get('https://api.github.com')
rich.print(r.json())
"
Troubleshooting
uv: command not found after install:
export PATH="$HOME/.cargo/bin:$PATH"
export PATH="$HOME/.local/bin:$PATH"
echo 'export PATH="$HOME/.cargo/bin:$PATH"' >> ~/.zshrc
uv tool install binary not found after install:
uv tool dir --bin
export PATH="$(uv tool dir --bin):$PATH"
Permission error on Linux:
curl -LsSf https://astral.sh/uv/install.sh | sh
Slow install / behind proxy:
UV_HTTP_TIMEOUT=120 uv tool install nano-pdf