
A terminal-based system resource monitor built for tracking resource usage when running hybrid LLM workloads.
curl -sSfL https://raw.githubusercontent.com/brontoguana/ktop/master/install.sh | basht to browse and switch themes with live preview; persists across sessionsc to switch between truecolor and safe Basic color output; persists across sessionscurl -sSfL https://raw.githubusercontent.com/brontoguana/ktop/master/install.sh | bash
Downloads the latest binary and installs it to /usr/local/bin (will prompt for sudo if needed). Run the same command again to upgrade.
Installed versions can also update themselves:
ktop update
To remove only the installed ktop executable and leave user config untouched:
ktop uninstall
git clone https://github.com/brontoguana/ktop.git
cd ktop/ktop-rs
cargo build --release
sudo cp target/release/ktop /usr/local/bin/
# Run with defaults (1s refresh)
ktop
# Custom refresh rate
ktop -r 2
# Start with a specific theme
ktop --theme "Tokyo Night"
# Simulation mode (fake OOM kills, profiling to /tmp/ktop_profile.log)
ktop --sim
# Remote terminal fallback if the display flashes
ktop --compat
# Report terminal size and resize behavior
ktop diagnose-terminal
# Isolate which terminal repaint behavior flashes
ktop diagnose-render --case full-paint
# Show version
ktop --version
# Update or remove ktop
ktop update
ktop uninstall
| Key | Action |
|---|---|
q / ESC |
Quit |
t |
Open theme picker |
c |
Toggle color mode between truecolor and safe Basic color output |
| Arrow keys | Navigate theme picker |
Enter |
Select theme |
If a web or remote-support terminal flashes while repainting, try:
ktop --compat
Compatibility mode disables alternate screen and synchronized redraws, slows the default refresh to 2s, and uses lower-churn rendering by suppressing moving sparklines and refreshing process tables less often. It also uses coarse progress bars instead of per-cell gradients, avoids dark-gray ANSI styling and shaded filler glyphs, and clears the current screen on entry/exit so stale styled cells do not remain behind the shell prompt.
You can also set KTOP_COMPAT=1.
If a terminal flashes on extended color output, press c in the main view to switch Color from Truecolor to Basic. Basic mode avoids RGB and indexed foreground color escapes and is saved in ~/.config/ktop/config.json.
To check whether a terminal is reporting unstable sizes or repeated resize events:
ktop diagnose-terminal --duration 8
If the size report is stable but ktop still flashes, isolate the repaint trigger:
ktop diagnose-render --case plain --duration 4
ktop diagnose-render --case cursor --duration 4
ktop diagnose-render --case color --duration 4
ktop diagnose-render --case rgb --duration 4
ktop diagnose-render --case unicode --duration 4
ktop diagnose-render --case full-paint --duration 4
ktop diagnose-render --case clear --duration 4
ktop diagnose-render --case alternate --duration 4
ktop diagnose-render --case sync --duration 4
Report which cases visibly flash. Each case exits by itself.
If a command unexpectedly starts the monitor, check ktop --version; terminal diagnostics and compatibility mode require ktop 1.0.10 or newer.
/proc and sysfs directly)amdgpu driver (optional — for AMD monitoring)MIT