Why is this running? Trace any process, port, container, or file back to what started it - CLI + TUI
Why is this running? Trace any process, port, container, or file back to what started it - CLI + TUI
witr exists to answer a single question:
Why is this running?
When something is running on a system, whether it is a process, a service, or something bound to a port, there is always a cause. That cause is often indirect, non-obvious, or spread across multiple layers such as supervisors, containers, services, or shells.
Existing tools (ps, top, lsof, ss, systemctl, docker ps) expose state and metadata. They show what is running, but leave the user to infer why by manually correlating outputs across tools.
witr makes that causality explicit.
It explains where a running thing came from, how it was started, and what chain of systems is responsible for it existing right now, in a single, human-readable output or an interactive TUI dashboard.
📖 Curious how witr came to be? Read the story or browse the Hacker News discussion.
witr is distributed as a single static binary for Linux, macOS, FreeBSD, and Windows.
witr is also independently packaged and maintained across multiple operating systems and ecosystems. An up-to-date overview of packaging status is available on Repology. Please note that community packages may lag GitHub releases due to independent review and validation.
[!TIP] If you use a package manager (Homebrew, Conda, Winget, etc.), we recommend installing via that for easier updates. Otherwise, the install script is the quickest way to get started.
curl -fsSL https://raw.githubusercontent.com/pranshuparmar/witr/main/install.sh | bashThe script will:
linux, darwin or freebsd)amd64 or arm64)/usr/local/bin/witr/usr/local/share/man/man1/witr.1irm https://raw.githubusercontent.com/pranshuparmar/witr/main/install.ps1 | iexThe script will:
witr.exe to %LocalAppData%\witr\bin.PATH.You can install witr from the official Debian and Ubuntu repositories (Ubuntu 26.04+, Debian sid and later), as well as derivative distributions like Kali Linux, Devuan, and Raspbian:
sudo apt install witrHomebrew (macOS & Linux)Note: The apt-shipped version may lag the latest GitHub release. For the newest features, use the install script or another installation method.
You can install witr using Homebrew on macOS or Linux:
brew install witrYou can install witr using MacPorts on macOS:
sudo port install witrYou can install witr using conda, mamba, or pixi on macOS, Linux, and Windows:
conda install -c conda-forge witr
# alternatively using mamba
mamba install -c conda-forge witr
# alternatively using pixi
pixi global install witrOn Arch Linux and derivatives, install from the AUR package:
yay -S witr-bin
# alternatively using paru
paru -S witr-bin
# or use your preferred AUR helperYou can install witr via winget:
winget install -e --id PranshuParmar.witrYou can install witr using npm:
npm install -g @pranshuparmar/witrYou can install witr on FreeBSD from the FreshPorts port:
pkg install witr
# or
pkg install sysutils/witrOr build from Ports:
cd /usr/ports/sysutils/witr/
make install cleanYou can install witr using Chocolatey:
choco install witrYou can install witr using Scoop:
scoop install main/witrYou can install witr from the AOSC OS repository:
oma install witrYou can install witr from the GNU Guix repository:
guix install witrYou can install witr using uniget:
uniget install witrYou can install witr using aqua:
# Add package
aqua g -i pranshuparmar/witr
# Install package
aqua i pranshuparmar/witrYou can install witr using brioche:
brioche install -r witrYou can install witr using mise:
mise use github:pranshuparmar/witrwitr provides native packages for major Linux distributions. You can download the latest .deb, .rpm, or .apk package from the GitHub releases page.
Generic download command using curl:
# Replace <package name with the actual package that you need>
curl -LO https://github.com/pranshuparmar/witr/releases/latest/download/<package-name>Debian/Ubuntu (.deb):
sudo dpkg -i ./witr-*.deb
# Or, using apt for dependency resolution:
sudo apt install ./witr-*.debFedora/RHEL/CentOS (.rpm):
sudo rpm -i ./witr-*.rpmAlpine Linux (.apk):
sudo apk add --allow-untrusted ./witr-*.apkYou can install the latest version directly from source:
go install github.com/pranshuparmar/witr/cmd/witr@latestThis will place the witr binary in your $GOPATH/bin or $HOME/go/bin directory. Make sure this directory is in your PATH.
If you prefer manual installation, follow these simple steps for your platform:
Unix (Linux, macOS, FreeBSD)
…Windows (PowerShell)
…If you use Nix, you can build witr from source and run without installation:
nix run github:pranshuparmar/witr -- --helpIf you use pixi, you can run without installation on Linux or macOS:
pixi exec witr --helpwitr --version
man witrwitr supports tab completion for all flags. To enable it, add the appropriate line to your shell configuration:
Bash
echo 'eval "$(witr completion bash)"' >> ~/.bashrc
source ~/.bashrcZsh
echo 'eval "$(witr completion zsh)"' >> ~/.zshrc
source ~/.zshrcFish
witr completion fish | source
# To make it permanent:
witr completion fish > ~/.config/fish/completions/witr.fishPowerShell
witr completion powershell | Out-String | Invoke-Expression
# To make it permanent, add the above line to your $PROFILEIf you installed via a package manager (Homebrew, Conda, etc.), please use the respective uninstall command (e.g., brew uninstall witr).
To completely remove script/manual installation of witr:
Unix (Linux, macOS, FreeBSD)
sudo rm -f /usr/local/bin/witr
sudo rm -f /usr/local/share/man/man1/witr.1Windows
Remove-Item -Recurse -Force "$env:LocalAppData\witr"Running witr without any arguments or with the -i flag launches the Interactive Mode (TUI). This provides a real-time, terminal-based dashboard with four tabs for exploring processes, ports, containers, and file locks.
a.a to switch into "all open files" mode, where locked entries are merged with every interesting open fd; type into / to search across the merged set.[Feature]: multiselection for processes to kill
Interactive mode should respect other filters/flags
[Bug]: CPU% is far off
[Feature]: Record & Replay Mode (atop-style)
[Feature]: Support the LoongArch (龙芯) architecture
[Feature]: Compatible with the terminal software's xterm ANSI - with 256color mode
[Bug]: Ancestry walk needs robust recycled PID protection
[Bug]: Windows: TCP LISTEN ports are missing from the Ports tab and "Toggle All" breaks the TUI
[Bug]: Handle processes which lost their parent accurately
[Feature]: make docker services more detailed