llmprof
v0.1.4
Published
pprof for your LLM context. Run the llmprof profiler with no Python install: npx llmprof up.
Downloads
800
Maintainers
Readme
llmprof (npx launcher)
pprof for your LLM context - run it with no Python install.
Try the live dashboard in your browser - no install, a real recorded session.
npx llmprof upThis is a thin launcher for the llmprof
profiler. It bootstraps uv - a single static
binary that provisions its own Python - and runs the real llmprof package. You do
not need Python, pip, or a virtualenv.
Usage
npx llmprof up # start the profiling proxy on http://localhost:4000
npx llmprof up --port 4100 # any llmprof argument is forwarded
npx llmprof traces # show recent captured callsThen point your LLM client's base URL at http://localhost:4000/v1 and open the
dashboard at http://localhost:4000. Full docs:
https://luthrag.github.io/llmprof.
How it works
- If
uvis already on yourPATH, it is used as-is. - Otherwise the matching
uvstatic binary is downloaded once (checksum verified) and cached under~/.cache/llmprof. uv tool run --from llmprof llmprof <args>runs the profiler, provisioning a managed Python the first time if your machine has none.
Environment
| Variable | Purpose |
| --- | --- |
| LLMPROF_SPEC | Package spec to run (default llmprof==<launcher version>); set to a path or git+https://... URL for a dev build. |
| LLMPROF_CACHE_DIR | Where the uv binary is cached (default ~/.cache/llmprof). |
| LLMPROF_UV | Path to an existing uv binary to use directly. |
Prefer Python? pipx install llmprof works too - see the docs.
License
MIT (c) Gaurav Luthra

