Every dev server. One list.
Which terminal tab is still running on port 3000? Type localhosts and see every local dev server with its port, folder and uptime. Pick the ones to stop. Free, for macOS and Linux.
How to find and stop dev servers in three steps
One shell script. No setup.
Run brew install bonanza-studios/tap/localhosts. It's a single shell script that uses lsof and ps, which macOS already has. Nothing to configure.
Type localhosts in any terminal. You get every dev server you started: its URL, how long it has been up, the command behind it and the folder it runs from. A server that listens on more than one port shows up as one row.
Answer with the numbers to stop, a for all, or Enter for none. Or skip the question: localhosts stop 3000, or localhosts stop all. A server and the processes it started stop together, so nothing keeps the port busy.
One list instead of a port hunt
Dev servers pile up: one per project, branch and terminal tab. localhosts shows them all and stops the ones you pick.
Hunting them by hand
What localhosts does
Localhosts FAQ
Any process of yours that listens on a TCP port and was started from a folder inside your home folder: next dev, vite, rails server, a Python API. Desktop apps are left out, so the list shows only what you started.
It asks the server's process group to shut down (SIGTERM), so a dev command and the processes it started stop together. Anything still running after three seconds is stopped with SIGKILL. If the group also holds your shell, localhosts stops only the listed processes and leaves the shell open.
No. localhosts runs on macOS and Linux. It's a bash script that uses lsof and ps. On Linux, install lsof if your distribution doesn't include it.
Download the script into a folder on your PATH: curl -fsSL --create-dirs -o ~/.local/bin/localhosts https://raw.githubusercontent.com/Bonanza-Studios/localhosts/main/localhosts && chmod +x ~/.local/bin/localhosts. If ~/.local/bin isn't on your PATH yet, add it in your shell profile.
Yes. In Claude Code, run /plugin install localhosts --marketplace Bonanza-Studios/localhosts. Then /localhosts opens a panel beside the chat with every dev server, a Stop button for each and Stop all.
No. It reads the process list on your machine and makes no network calls.
Yes. The code is on GitHub: one shell script you can read before you run it.
How we can help you
- Explore
AI Chief of Staff
Set up an AI Chief of Staff: shared rules, connected tools and a memory that turns your team's daily AI use into organisational intelligence. Built with you.
- Explore
Design Retainer
Get an on-demand design department without hiring. Product, marketing and brand design on a flexible retainer, run by designers with 60+ products shipped.
- Explore
UX Innovation
Run startup-speed UX research, design and strategy in flexible sprints. Three hours a week from you, full engagement from us, a prototype to test every sprint.