All products
Live

DevOps

PortSlayer

Cross-platform CLI + interactive TUI to list and kill processes by port

Find and kill whatever is squatting on your ports. Run pk with no arguments for a full-screen, keyboard-driven dashboard - arrow keys to navigate, / to search, k to kill with confirmation - or script it from the CLI with JSON output. Free and open source under MIT, for Windows and Linux.

$ pip install portslayer

v1.1.0MIT licenseWindows & Linux/POSIX

Python 3.10+ (Typer, Rich, Textual) · npm wrapper needs Node >= 14 · installs portslayer and pk

Release notes (v1.1.0) · Report an issue

Prefer a desktop app?

v1.0.029.5 MBLoading download count…

A Pro edition (v2.0.0) with advanced features is in development.

portslayer — terminal
$ pk find 808
PORT PID PROCESS
8080 4321 node
8081 8712 python
8083 1298 docker-proxy
$ pk kill 8080
Kill node (PID 4321) on port 8080? [y/N] y
✔ Port 8080 is free
$

What's inside

Everything you need to get value out of PortSlayer from day one.

Interactive TUI dashboard

Run pk with no arguments for a full-screen, keyboard-driven view of every listening port. Navigate with the arrow keys, search, kill with confirmation, and it auto-refreshes every 3 seconds.

/kDelr

Partial port search

Search by port fragment instead of exact numbers - 808 matches 8080, 8081, 8083, and anything else in the neighborhood.

pk find 808

Kill by process name

Skip the port lookup entirely and terminate straight by process name.

pk kill --name node

JSON output

Machine-readable output on list and find for scripting, CI checks, and automation pipelines.

pk list --json

Shell completion

Tab-complete commands and flags in your shell with a single setup command.

pk --install-completion

Safety-first design

Every kill asks for confirmation unless you pass --force, there is no shell injection surface (never uses shell=True), and it warns when running without admin/root privileges.

See it in action

Explore the suite