htop-gpu
NVIDIA GPUs, system CPU/memory, and processes in one terminal dashboard — each process annotated with its conda env, docker container, and working directory.
Install
pip install htop-gpu
htop-gpu # one-shot snapshot
htop-gpu -w # watch mode
hgpu -w # short alias
Linux, Python 3.9+, NVIDIA driver. Uses NVML (fast) when available, falls
back to nvidia-smi.
What it does
- GPUs, CPU/memory, and processes in one screen
- Click any panel title to switch what the process table shows
(
cpu/memoryfor top system processes,gpusfor GPU-only,processesto fullscreen the table) - Click column headers to sort
- Click a process row → press
kto sendSIGTERM(falls back tosudo killwith a password prompt if you don't own it) - Conda env, docker container, tmux session shown next to each command, so you can tell at a glance whose stray process is hogging GPU 5
- Adaptive layout — drops decorations as the terminal shrinks; it keeps the GPU + CPU/Mem panels visible even on tiny windows
Usage
Watch mode is mouse-driven. Everything is also keyboard:
| key | what it does |
|---|---|
c / m / p |
switch to cpu / memory / focus-procs view |
Esc, ← |
back out (clears mode / focus / selection) |
↑ ↓ |
move selection |
k, F9 |
kill selected process |
l |
toggle full command lines |
0–9 |
filter to that GPU index |
q, F10, Ctrl-C |
quit |
Mouse uses SGR mouse mode (\x1b[?1006h) — works in iTerm2, Kitty,
WezTerm, Ghostty, Alacritty, Windows Terminal, modern xterm/Konsole, and
tmux with mouse on.
For scripts:
htop-gpu --json | jq '.processes[] | select(.gpu_mem_mib > 10000)'
Credits
UI takes inspiration from htop, btop, and nvtop. Independent project, not affiliated.
License
Metadata
Release files for htop-gpu 0.1.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| htop_gpu-0.1.10.tar.gz | 35.1 kB | With provenance | Details for htop_gpu-0.1.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| htop_gpu-0.1.10-py3-none-any.whl | Python 3 | none | any | Details for htop_gpu-0.1.10-py3-none-any.whl |
Total release size: 68.8 kB
Release files / htop_gpu-0.1.10.tar.gz
| Download URL | htop_gpu-0.1.10.tar.gz |
|---|---|
| Size | 35.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bf97ad8167f0d58b70c418b201ca4cc91457c7594d28b8c9fb37bbdf690f7ac2
|
|
BLAKE2b-256 checksum How to use checksums |
00dee07f40e628604803d5bb8e795c0bec3c26a9817c84f07764d675206fb0e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 9, 2026.
Transparency logRelease files / htop_gpu-0.1.10-py3-none-any.whl
| Download URL | htop_gpu-0.1.10-py3-none-any.whl |
|---|---|
| Size | 33.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a6edbd252c02fddb732d42a96d6a62bcc4901c62c9b5db5e7ac2bf8b52a602a6
|
|
BLAKE2b-256 checksum How to use checksums |
e280106085bcc7cd60200dbe2fa983468c57ac72454a0a953c3a0a5c3cb9e5b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 9, 2026.
Transparency logSecurity for htop-gpu 0.1.10
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for htop_gpu-0.1.10.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 9, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.