Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>PortHawkNew to Visual Studio Code? Get it now.
PortHawk

PortHawk

Yash Katekhaye

|
3 installs
| (0) | Free
See every listening port on your machine and kill what shouldn't still be running
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

PortHawk

See every port your machine is listening on, know which ones a coding agent left behind, and kill the ones that shouldn't still be running.

Why

AI coding agents spin up dev servers constantly, and it's easy to lose track of which ones are still running long after you've moved on. PortHawk shows every listening port in a sidebar, tags it as agent-spawned, manual, or unknown based on whether the process traces back to a known editor or agent terminal, and lets you kill a stale one with a confirmation click.

It's open source and has no telemetry, by default or otherwise.

Features

  • Activity Bar view grouped by process name, each row showing the port, process, and PID, with an icon marking agent vs manual vs unknown origin
  • Status bar item with a live count — click it to jump straight to the view
  • Kill a process from the tree or the command palette, always with a confirmation prompt first
  • Open a port directly in your browser
  • Auto-refreshes while the view is visible, and stops polling when it isn't, so it doesn't run in the background for no reason
  • Settings for refresh interval, whether to tag agent-spawned processes, and whether to notify on a new orphaned server

Settings

Setting Default Description
porthawk.refreshInterval 3000 How often to re-scan listening ports, in milliseconds, while the view is visible.
porthawk.autoTagAgentProcesses true Tag ports likely opened by a coding agent's terminal with a distinct icon.
porthawk.notifyOnNewOrphanedServer false Show a notification when a new likely agent-spawned server is detected.

Not supported

vscode.dev and github.dev aren't supported — browser-based VS Code has no process or filesystem access, so there's nothing here for PortHawk to detect.

Also available as a CLI

npx porthawk list
npx porthawk watch

Source, issues, and the standalone CLI: github.com/YashK55/PortHawk

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft