witr

Open source

witr is a command-line and terminal-UI tool that traces a process, port, container or file back to the chain of things that started it.

pranshuparmar.github.io
witr homepage screenshot
GitHub stars
23k
Last 30 days
+330(+1%)
Last commit
21 days ago
Repository age
11 months
Version
v0.3.4
Licence
Apache-2.0
Self-hosted
Yes

About witr

witr is built around one question: why is this running? Tools such as ps, top, lsof, ss, systemctl and docker ps show what is running, but leave you to work out the cause by comparing their output. witr maps ports, services, containers and files back to a PID and reports what is running, how it started, what keeps it running and what context it belongs to.

You can ask in several ways: by process name, by port with --port, by PID with --pid and --tree for ancestry and children, or by container name across Docker, Podman, Kubernetes and others. The answer is a single human-readable report, JSON for scripts and AI agents, or an interactive dashboard started with the browse command.

witr is open source under Apache-2.0 and written in Go. It ships as a single static binary for Linux, macOS, FreeBSD and Windows, with an install script plus packages for Homebrew, MacPorts, APT, Conda, the AUR, Winget, npm, FreeBSD ports, Chocolatey and Scoop. A browser playground lets you try it on simulated machines first.

Key features

  • Maps ports, services, containers and files back to a PID
  • Human-readable report, JSON output, or interactive TUI
  • Shows a process's ancestry and children as a tree
  • Looks up containers across Docker, Podman and Kubernetes
  • Single static binary for four operating systems
  • Browser playground with guided tutorial and sandbox

Good fit for

  • Finding what is holding a port
  • Tracing a stray process to its parent service
  • Checking why a container is running
  • Feeding process context to scripts or AI agents as JSON
Tags
cli
tui
process-management
troubleshooting
devops
go
linux
incident-response

witr: questions and answers

What is witr used for?
witr is a command-line and terminal-UI tool that traces a process, port, container or file back to the chain of things that started it. It is a good fit for finding what is holding a port, tracing a stray process to its parent service and checking why a container is running.
Is witr open source?
Yes. witr is open source under the Apache-2.0 licence. Its source code is on GitHub at pranshuparmar/witr and is written mainly in Go.
Is witr free?
Yes. witr is open source, so the software itself is free to use.
What are some alternatives to witr?
Similar open-source tools in the Developer Tools category include assh, golangci-lint and Distrobox. SaaS products in the same category include GoLand, act101 and Angular Material Blocks.
Is witr actively maintained?
Yes. The most recent commit to witr was on 23 October 2026, and the latest release is v0.3.4, published on 4 October 2026. The project has 23k stars on GitHub, with 330 added in the last 30 days.

Open-source alternatives to witr

See all

SaaS alternatives to witr

See all