Skip to main content

Installation

xprobe release packages target Linux x86_64 with glibc 2.34 or newer and include both the CLI and separate CUDA 12 / CUDA 13 CUPTI Agents. No CUDA toolkit is needed to install xprobe; the NVIDIA driver and CUPTI only matter when profiling GPU events.

Published on PyPI as a manylinux_2_34_x86_64 wheel with zero Python dependencies:

pip install xprobe
xprobe --version

For pre-releases (X.Y.Z.devN), pass --pre (pip install --pre xprobe).

pip installs xprobe into <env>/bin/ and the CUPTI Agents into <env>/lib/xprobe/cuda12 and cuda13 (the layout the CLI searches automatically), plus schemas/ and skills/ under <env>/share/xprobe. This works in virtualenvs, conda/mamba, and pip install --user.

Standalone release archive​

Install to ~/.local without Python or root:

curl --proto '=https' --tlsv1.2 -fsSL \
https://raw.githubusercontent.com/itdevwu/xprobe/v0.7.0/install.sh | sh

The script downloads the release tarball and .sha256, verifies the digest, and installs:

~/.local/bin/xprobe
~/.local/lib/xprobe/cuda12/libxprobe-cupti.so
~/.local/lib/xprobe/cuda13/libxprobe-cupti.so
~/.local/include/xprobe/cupti_agent.h
~/.local/share/xprobe/

Add ~/.local/bin to PATH if needed. To install elsewhere, download and pass --prefix (use sudo for system directories like /opt/xprobe or /usr/local; the script never elevates privileges itself):

curl --proto '=https' --tlsv1.2 -fsSLO \
https://raw.githubusercontent.com/itdevwu/xprobe/v0.7.0/install.sh
sh install.sh --prefix /opt/xprobe

Verify checksum, SBOM, and attestation​

version=0.7.0
base=https://github.com/itdevwu/xprobe/releases/download/v$version
archive=xprobe-$version-linux-x86_64.tar.gz

curl --proto '=https' --tlsv1.2 -fLO "$base/$archive"
curl --proto '=https' --tlsv1.2 -fLO "$base/$archive.sha256"
curl --proto '=https' --tlsv1.2 -fLO "$base/${archive%.tar.gz}.spdx.json"
sha256sum --check "$archive.sha256"
gh attestation verify "$archive" \
--repo itdevwu/xprobe \
--signer-workflow itdevwu/xprobe/.github/workflows/release.yml \
--deny-self-hosted-runners
gh attestation verify "$archive" \
--repo itdevwu/xprobe \
--signer-workflow itdevwu/xprobe/.github/workflows/release.yml \
--deny-self-hosted-runners \
--predicate-type https://spdx.dev/Document
tar -xzf "$archive"
"./xprobe-$version-linux-x86_64/install.sh"

The unpacked tarball can also be run in place as long as bin/ and lib/ stay together.

Upgrade and uninstall​

Re-run the new release's installer with the same --prefix to upgrade, or uninstall cleanly:

sh install.sh --prefix "$HOME/.local" --uninstall

Uninstall removes only xprobe-owned files under bin/xprobe, lib/xprobe, include/xprobe, and share/xprobe.

AI Agent Skill​

Install the xprobe-perf-profiling Skill for Claude Code, Codex, Cursor, and compatible agents from skills.sh (Node.js is needed only for the skills CLI):

npx skills add itdevwu/xprobe

This installs the Skill from the default branch. To pin it to v0.7.0:

npx skills@1 add \
https://github.com/itdevwu/xprobe/tree/v0.7.0/skills/xprobe-perf-profiling \
--global

For non-interactive installs:

npx --yes skills@1 add \
https://github.com/itdevwu/xprobe/tree/v0.7.0/skills/xprobe-perf-profiling \
--agent codex --global --copy --yes

Use claude-code or cursor for those clients, or omit --global for project-scoped installation. Without Node.js, copy the entire skills/xprobe-perf-profiling directory from the release archive (share/xprobe/skills/xprobe-perf-profiling) into your agent's skills directory so references/, examples/, and scripts/analyze_trace.py stay intact.

Runtime check​

xprobe --version
xprobe doctor

Host eBPF/perf collectors need BPF/perf permissions. Live CUDA Agent injection needs ptrace permission and a shared mount namespace with the target. Check the individual fields in doctor output (ok: true means diagnostics completed, not that every collector is enabled).