Skip to main content
The Toolkit ports module gives you a real-time window into every network port your machine is listening on. You can identify which process owns a port, find conflicts before they cause headaches, and kill blocking processes — all from one command. A built-in safety barrier prevents you from accidentally terminating system-critical services like SSH (port 22) or DNS (port 53), so you can work with confidence. All port commands are also available in the Web Dashboard (toolkit ui), where you get a live, auto-refreshing table of ports alongside one-click process termination.

toolkit ports list

List every active listening port on your machine — including protocol (TCP/UDP), the owning process name and PID, local and remote addresses, connection state, and whether the port is known to a common service (e.g., http, postgres).
Example terminal output:

toolkit ports kill <port|pid>

Terminate the process bound to a specific port number or, with --by-pid, a specific process ID. Toolkit sends SIGKILL on Unix or invokes taskkill /f on Windows for an immediate, reliable termination.
Safety barrier — protected system ports. Toolkit refuses to kill processes bound to well-known system ports such as 22 (SSH), 53 (DNS), and 443 (HTTPS). These ports are marked isProtected: true in the port registry. Attempting to kill them returns an error rather than silently skipping — so you always know when a kill was blocked and why. This prevents accidental disruption of critical OS services.

toolkit ports analyze

Run a full diagnostic of your local network state. Toolkit scans every listening port, cross-references expected service mappings, and surfaces:
  • Port conflicts — multiple processes competing for the same port
  • Port collisions — a process bound to a port already claimed by another service type
  • Misaligned standard services — e.g., a non-HTTP process listening on port 80
Each finding is returned with a severity (low / medium / high) and a concrete recommendation.

--json Output

Pass --json to any ports command to get machine-readable output suitable for scripting, CI pipelines, or AI agents. toolkit ports list --json emits a total count alongside the ports array:
toolkit ports kill --json emits an array of KillResult objects (one per matching process):
toolkit ports analyze --json emits a totalConflicts count alongside the conflicts array: