# Port Manager for Raycast

URL: https://www.raycast.com/lucaschultz/port-manager

> Find which process is using a port, list open TCP ports, kill the process listening on a port, and name ports, on Mac and Windows.

- Install: raycast://extensions/lucaschultz/port-manager
- Author: [Luca Schultz](https://www.raycast.com/lucaschultz)
- Installs: 67,016
- Platforms: macOS, Windows
- Categories: Developer Tools, Productivity, System, AI Extensions
- Updated: 2026-11-17
- Source: https://github.com/raycast/extensions/tree/480c8790efdca370fda96f8f95bc914604e362d5/extensions/port-manager/

## Commands

- **Kill Process Listening on**: Kill the process listening on a given port
- **Named Ports**: Name ports to make them easier to find in the open port list
- **Open Ports**: Show and Close Opened Ports
- **Open Ports in Menu Bar**: List open ports in menu bar

## AI tools

- **Kill Process on Port**: Kill the process listening on a TCP port and verify that it exits
- **List Open Ports**: List TCP listeners with their ports, addresses, exposure, process details, and named port labels
- **Kill Open Port Process**: Kill a listed TCP listener by its PID, all processes with its name, or its parent; always pass the listener's PID
- **List Named Ports**: List saved names for TCP ports
- **Create Named Port**: Save a name for a TCP port that does not have one yet
- **Update Named Port**: Change the saved name of an existing named TCP port
- **Delete Named Port**: Remove a saved TCP port name

## README

### Port Manager Extension

Find processes that are listening on TCP ports, name frequently used ports, and terminate the associated process directly from Raycast.

#### Commands

- **Open Ports** lists TCP listeners, their ports, process details, and available actions.
- **Kill Process Listening on** terminates every process listening on a port you provide. Results and errors are shown in a toast.
- **Named Ports** lets you assign memorable labels to ports in the list.
- **Open Ports in Menu Bar** provides the open-port list from the macOS menu bar.

#### Platform support

| Capability                      | macOS                                  | Windows                                  |
| ------------------------------- | -------------------------------------- | ---------------------------------------- |
| List listening TCP ports        | Uses `netstat` with an `lsof` fallback | Uses `netstat.exe -ano -p TCP`           |
| Process details                 | Uses `ps` and `lsof`                   | Uses PowerShell and `Win32_Process`      |
| Kill by PID                     | Uses `kill` with the selected signal   | Uses forced `taskkill.exe /PID <pid> /F` |
| Kill all matching process names | Uses `killall`                         | Uses `taskkill.exe /IM <name> /F`        |
| Reveal executable               | Finder                                 | File Explorer                            |
| Menu bar command                | Supported                              | Not available in Raycast on Windows      |

On macOS, the **Kill Signal** preference controls whether to ask for `SIGTERM` or `SIGKILL`, or always use one. Windows does not support Unix signals, so every kill uses `taskkill /F`.

A kill is only reported as successful once the process has actually exited. A process that ignores the signal is reported as still running, with a one-key **Force Kill** to follow up with `SIGKILL`.

Some system-owned processes and executable paths are protected by the operating system. The extension will show the command error in Raycast when the current user lacks permission; use an elevated terminal only when you understand the process you are stopping.
