How to manage local dev servers on Mac and Windows without terminal tabs
Short answer: put your dev servers in ServerHat, a free app for the Mac menu bar and the Windows notification area. One click starts, stops, restarts or opens each server, and you can see its status, its log, and what is holding a port.
No terminal window per server to keep open, and no hunting for the process that owns port 3000.
Written by GuruHat, which makes ServerHat.
The usual ways, and where they get awkward
| Approach | Works well for | Where it gets awkward |
|---|---|---|
| One terminal tab or window per server | One or two servers | Tabs pile up, closing one ends the server, and nothing tells you a server crashed. |
Run in the background (& or nohup on Mac, Start-Process on Windows) | Quick one-offs | You lose the output and have to remember the process ID to stop it. |
| A command-line process manager | Teams that live in the terminal | Needs a config per project and gives you no always-visible status. |
| Containers | Matching production | Heavy when you only want to run npm run dev. |
| A menu-bar app (ServerHat) | Several local servers across projects | Runs commands, not containers. Mac (Apple silicon) and Windows only. |
Set it up in three steps
- Install ServerHat. On a Mac (macOS 13 or later, Apple silicon):
brew install --cask getguruhat/tap/serverhat. On Windows 10 (1903+) or 11: run the installer, or use Scoop. Both are on the ServerHat page. - Add your servers. Use + to add any command with arguments, a folder and a port, or to import a
.claude/launch.json. On a Mac, + › Import project… also takes thedevscript (orstart) frompackage.json, aweb:entry from a Procfile, or a Docker Compose file. - Use the menu. Click the globe in the menu bar (Mac) or notification area (Windows). Each server has Start/Stop, Restart, Open in browser and View logs, plus Start all and Stop all when you have more than one.
# Mac
brew install --cask getguruhat/tap/serverhat
# Windows (PowerShell)
scoop bucket add guruhat https://github.com/getguruhat/scoop-bucket
scoop install guruhat/serverhat
On Windows 11 the icon may hide behind the ^ arrow. Drag it onto the taskbar to keep it in view.
See what is running, and what broke
- Status at a glance: running, stopped, crashed or port in use (on a Mac also starting and unhealthy). A running server shows its address as a link.
- Crashes: ServerHat shows the last line of output, and on a Mac it also sends a notification.
- Port conflicts: if the port is taken, it tells you which process holds it, instead of leaving you to run
lsofornetstat. On Windows you can end that process from the server's ⋯ menu. - Logs: one per server, in the app and in a log folder (
~/Library/Logs/ServerHat/on Mac,%LOCALAPPDATA%\ServerHat\Logson Windows), still readable after the server stops. - Optional retry (Mac): restart a crashed server with growing delays and a retry limit.
Do it by hand: find what is using a port
You do not need an app for this one.
# Mac: who is listening on port 3000?
lsof -i :3000
kill 12345 # the PID shown
# Windows (PowerShell)
netstat -ano | findstr :3000
taskkill /PID 12345 /F # the PID shown in the last column
It also works for AI coding agents
ServerHat has an MCP server, so Claude Code and Codex can start, restart and read logs of your servers, and the servers outlive the session. Any command an agent adds waits for your approval. See how to let Claude Code and Codex run your dev servers.
What to know
- Commands run directly, not through a shell, so pipes and
&&are not supported. They find programs on yourPATHthe way a terminal does (Homebrew and nvm on Mac,npm.cmdandnode.exeon Windows). - Stop also ends whatever the server started, and quitting ServerHat stops the servers it started.
- Everything is stored in one readable
servers.json(~/Library/Application Support/ServerHat/on Mac,%APPDATA%\ServerHat\on Windows). The format is the same on both, and edits are picked up immediately. - Neither app is signed yet. On a Mac, allow the first launch in System Settings › Privacy & Security. On Windows, if SmartScreen warns you, choose More info › Run anyway.
- Mac-only for now: project import, crash notifications, HTTP health checks, restart after a crash and export.
- It is free and open source, with no account and no analytics.
Frequently asked questions
How do I stop a server that is using port 3000?
On a Mac, run lsof -i :3000 and stop the process with kill and the PID it shows. On Windows, run netstat -ano | findstr :3000 and stop it with taskkill /PID and the number shown. ServerHat does this for you: when a server's port is already taken, it shows which process holds it.
How do I keep a dev server running after I close Terminal?
A server started in a terminal window usually ends with that window. Start it from ServerHat instead: it keeps a log, runs the command so that Stop also ends whatever it started, and the server stays up until you stop it or quit ServerHat.
How do I see which dev servers are running on my Mac?
Open the ServerHat icon in the Mac menu bar or the Windows notification area. Each server shows its status (running, stopped, crashed or port in use) with its address as a link. Without an app, lsof -iTCP -sTCP:LISTEN -P lists every listening port on a Mac, and netstat -ano | findstr LISTENING does on Windows.
Can I start all my dev servers with one click?
Yes. ServerHat has Start all and Stop all, and each server can also start when ServerHat starts and at login.
Where does ServerHat keep its logs and settings?
On a Mac, logs are in ~/Library/Logs/ServerHat/<id>.log and settings are in ~/Library/Application Support/ServerHat/servers.json. On Windows, logs are in %LOCALAPPDATA%\ServerHat\Logs and settings are in %APPDATA%\ServerHat\servers.json. It is the same readable JSON format on both.
Is ServerHat free?
Yes. It is free and open source, with no account and no analytics. It runs on macOS 13 or later (Apple silicon) and on Windows 10 (version 1903 or later) and Windows 11.