Using PortroomUser guide
Using Portroom
User guide
Projects
A project is a folder and the command that starts its server.
Add: ⌘N, or New project in the sidebar. To add several at once, go through the setup again with Help ▸ Set Up Portroom… and tick them. Portroom looks at the folder to suggest a framework and command:
| It finds | It suggests |
|---|---|
package.json with a dev, start or serve script |
That script, run with npm, pnpm, yarn or bun depending on the lockfile. Recognises Next.js, Nuxt, Astro, SvelteKit, Remix, Gatsby, Vite, React, Express and Fastify |
manage.py |
Django |
FastAPI in requirements.txt or pyproject.toml, with main.py or app.py |
Uvicorn |
Flask in requirements.txt or pyproject.toml |
flask run |
Gemfile with Rails |
bin/ |
Gemfile with Jekyll, and _config.yml |
jekyll serve |
artisan |
Laravel |
hugo.toml, hugo.yaml or hugo.json |
hugo server |
index.html |
python3 -m http.server |
Edit: ⌘E, or ··· ▸ Edit project…. If the server is running and the change needs a restart, you can choose Save & Restart or just Save.
Environment variables: in Edit project, one NAME=value per line, as in a .env file: # comments, blank lines, export and quotes are fine. They're given to the server on top of your shell's, and the details panel lists their names. PORT is always set by Portroom from the port. Your framework's own .env files keep working as before. Values of variables whose names say they're secret, such as API_KEY, GITHUB_TOKEN, DB_PASSWORD, DATABASE_URL or SENTRY_DSN, are kept in your login Keychain; Portroom's projects file only says <keychain> in their place. The rest are saved as typed, like a .env file.
Restart after a crash: also in Edit project. Portroom starts the server again after 2, 5 and 15 seconds, and gives up after 3 crashes in 5 minutes, so a broken build doesn't loop forever. A missing tool or a folder macOS keeps closed isn't retried: starting again wouldn't help.
Start when Portroom opens: the project starts each time Portroom opens. Together with Launch at login in Settings, your servers are up as soon as you log in.
Remove: ··· ▸ Remove from Portroom…. Removing never touches your folder. It stops the server and deletes the project's settings and logs from Portroom, and you get a few seconds to undo.
How the port reaches your server
The line under Start command shows what will really run.
| Your command | What runs |
|---|---|
npm run dev for Next.js |
npm run dev -- -p 8768 |
npm run dev for Vite, Astro or SvelteKit |
npm run dev -- --port 8768 |
python3 -m http.server or a .py script |
The command, followed by the port |
A command containing $PORT, ${PORT} or {port} |
The port goes exactly there |
| Anything else | Your command, as is |
Every server also gets the port in the PORT environment variable. If your server ignores it and picks its own port, type $PORT where the port should go.
Auto and Fixed ports
- Auto: Portroom reuses the last port while it's free, so bookmarks keep working. If it's taken, the server starts on the first free port in your range, and Portroom tells you. Set the range in Settings ▸ Ports & URLs.
- Fixed: Portroom never picks another port by itself. If something else holds the port, the port tile shows Taken, with options to deal with it.
The project screen
Point at a project in the sidebar to start, stop or restart it without opening it. Click Search servers to look through the list: the field moves up in place of the navigation, and × or Esc closes it.
- Port and uptime tiles: the current port, how long it's been up, and what's not committed.
- Memory, CPU and Errors tiles: what the server is using, and how many errors are happening now. Errors that stopped a while ago, or that a later request to the same page fixed, show as “N earlier” beside the number; the tile still opens them in the Live Log.
- Live Log: what the server prints, with requests split into columns. Search and filter it, fold stack traces, expand it to the full window, and switch between past runs. Requests shows every request that went through the project's pretty URL, with its status and how long it took, also for servers that don't log requests, such as Vite. Requests opened at
localhostand a port go straight to the server and aren't seen. They're kept in memory only, without query strings. - Details panel: URLs, Git branch, PID, runtime, folder, start command and notes. Toggle it with ⌥⌘I. When the window gets too narrow for both side panels, the sidebar folds into icons and this panel stays. Point at a folded panel's button in the top bar and it shows itself over the screen until the pointer leaves; click the button to keep it open. When it's hidden, buttons beside Start and Stop still open the folder, editor and Terminal.
Not responding: every 30 seconds Portroom knocks on each running server. A server that holds its port but stays silent twice in a row, stuck in a loop for example, gets an orange dot and Not responding, with Restart in Needs attention. Any answer counts, even an error. The knock isn't a page request, so it never reaches your app's routing: Node servers turn it away before any app code runs, and the few servers that log it anyway have those lines left out of the log.
Network URL is the address other devices on your network can use, such as your phone. Click it for a QR code to scan with the phone’s camera. It only works if your server listens on more than localhost.
Logs, errors and request times are available for servers started from Portroom. Portroom has no access to the output of a server started elsewhere. Request times appear when the server prints them: Next.js does, Python's http.server doesn't.
Overview
All your servers in one table, with totals on top. Needs attention collects crashes, port conflicts, servers that stopped answering, errors, high CPU or memory use, and stray servers. It shows the two most important ones; Show all opens the rest. × on a crash dismisses it: the server stays stopped and stops asking for attention. On errors, × marks them as seen: they stop counting until a new kind of error turns up or the server starts again. The same is under the pointer on a project's Errors tile, and in the corner of its Crashed tile. Stop all stops every running server.
Uncommitted
Projects with changes not committed to Git, and commits not pushed. Open them from here in your editor, terminal or Git client. A branch with nowhere to push says Local only: its commits are on this Mac only.
Projects with nothing to commit fit in one grey line under the table, ✓ N projects are clean; +N more unfolds all their names. Projects outside Git have a tab of their own, Not under git, with the time a file there last changed. On the project screen they show No git and that time in place of the Uncommitted count.
Processes
Stray servers are dev servers listening on a port that don't belong to any project, such as one left behind by a closed terminal. Only your own processes are listed. System processes, other users' processes and ordinary apps aren't shown.
A stray server you run on purpose doesn't have to stay stray. In its details, Add as project opens New project with its folder filled in; once added, Portroom shows the running server as the project's own. Ignore stops counting it, after restarts too: it leaves the badges, the menu bar and notifications, and waits under Ignored on Processes, where Show again brings it back.
Port conflicts shows what's blocking a project's port. It can be any process, not only a dev server, so check what it is first. You can kill it only if it's your own.
Kill takes two clicks: the second has to come within three seconds. Before stopping a stray server, Portroom checks that it's still the same process. Unsaved work in a killed process is lost.
Command line
portroom controls the same projects from a terminal, a script or an AI agent:
/Applications/Portroom.app/Contents/Resources/portroom list | Command | What it does |
|---|---|
portroom list |
Every project and whether it runs |
portroom json |
The same as JSON, for scripts |
portroom status <slug> |
One project as JSON, with its port, PID and last error |
portroom start <slug> |
Starts it and waits until it listens; does nothing if it runs |
portroom stop <slug>, restart <slug> |
Stops or restarts it |
portroom logs <slug> [-n 50] |
The last lines of its log |
portroom add <slug> <name> <folder> [command] |
Adds a project; {port} in the command becomes its port. Without a command, Portroom works it out from the folder, as New project does |
portroom edit <slug> --name … --slug … --notes … --folder … --command … |
Changes a project, with the same checks as Edit project; a new slug takes the log along |
The commands ask the running app, so the window and the terminal always agree. start, stop, restart, add and edit open Portroom in the background if it's closed; list, json and status only look, so they say Portroom isn't running instead of opening it (and starting the projects set to start with it). stop also stops a server that is still starting. portroom on its own, or a command it doesn't know, prints this list. If Portroom quits while a command waits for its answer, the command says it may or may not have run instead of opening Portroom again. To type just portroom, link it into your PATH, for example ln -s /.
AI agents (MCP)
portroom mcp is a Model Context Protocol server, so Claude Code, Codex, Cursor and other agents can run your dev servers and read what went wrong. Every tool runs the same program, / with the argument mcp; only the way to add it differs. Settings ▸ MCP has these commands with a copy button.
Claude Code:
claude mcp add portroom --scope user -- /Applications/Portroom.app/Contents/Resources/portroom mcp Codex:
codex mcp add portroom -- /Applications/Portroom.app/Contents/Resources/portroom mcp VS Code (needs its code command in Terminal):
code --add-mcp '{"name":"portroom","command":"/Applications/Portroom.app/Contents/Resources/portroom","args":["mcp"]}' Cursor (~/), Windsurf, Cline, Gemini CLI and JetBrains AI take the same JSON in their MCP settings:
{ "mcpServers": { "portroom": {
"command": "/Applications/Portroom.app/Contents/Resources/portroom",
"args": ["mcp"]
} } } While an agent is connected, MCP with a green dot shows in the top bar, and Settings ▸ MCP names it and its last call. Turn MCP server off there and agents get an error instead of running anything.
| Tool | What the agent gets |
|---|---|
list_projects, project_status |
Projects, their status, ports and URLs |
start_project, stop_project, restart_project |
Starts wait until the server listens, or say why it didn't |
project_errors |
The run's errors picked out of the log, with stack traces and 5xx responses, and why it crashed. The log is read back to the start of the run, up to 1 MB; if the run began earlier than that, the answer says which part wasn't checked |
project_logs |
The last lines of the log, up to 1000 |
add_project |
Adds a project folder. Portroom works out the start command itself; an agent can't give one, since it decides what runs. The project is marked as added by that agent, in its log and with a message in the window |
update_project |
Renames a project, gives it a new slug or changes its notes. Not its folder, command or variables: those decide what runs at the next Start, so only you change them |
It runs on your Mac only and talks to Portroom like the command line does.
Menu bar
The menu bar icon shows how many servers are running. Click it to search projects, switch servers on and off, open one in the browser with ↗ or restart it with ↻ under the pointer, kill stray servers, stop everything, or open the dashboard. Click a project to open it in the browser while it runs, view its log, edit it or open it in the dashboard. When a server has crashed, can't get its port, stops answering or can't build, a card at the top says which and offers the fix: Restart, a free port or the log. Click the stray servers card to see them on Processes. Click the Portroom logo at the top to visit portroom.dev. Turn the icon or the number off in Settings ▸ General. Press ⌃⌥P in any app to open it; pick another shortcut, or none, under Global shortcut in the same place.
Settings (⌘,)
General
| Setting | What it does |
|---|---|
| Launch at login | Starts Portroom when you log in. Works once Portroom is in Applications; macOS may ask you to allow it in System Settings ▸ General ▸ Login Items |
| Show in menu bar | Shows the menu bar icon |
| Show running count | Shows the number of running servers next to the icon |
| Global shortcut | Opens the menu bar switcher from any app: Off, ⌃⌥P (the default), ⌥⌘P or ⌃⌥Space |
| Stop idle servers | Stops a server after 1, 2 or 4 hours without requests or open connections. Only servers Portroom started. Off by default |
Appearance
| Setting | What it does |
|---|---|
| Theme | System, Light or Dark |
| Window | Solid grays, or Skylight: the window is see-through and the desktop shows through it, blurred. With Reduce transparency on, or while another app is in front, macOS draws it flat |
| Tint | A light shade over the window’s grays: Gray (as designed), Green, Yellow, Sepia, Blue, Purple or Red. Solid only: Skylight takes its color from the desktop |
| App icon | Dark or Light, in the Dock while Portroom runs. Finder, and the Dock while Portroom is closed, keep the dark one |
Apps
Default terminal, editor and Git client: what the Terminal and editor buttons and ⋯ on the Uncommitted screen open. Only installed apps are listed.
Ports & URLs
Port range for Auto (8765–8799 by default), Keep the same port, and Pretty URLs.
MCP
MCP server on or off, who's connected and when they last called a tool, and the commands to connect Claude Code, Cursor and other tools. See AI agents (MCP).
Logs
Keep history for 3, 7 or 30 days (7 by default). Older runs are removed automatically, and each log file keeps at most 10 runs. Clear history removes past runs for all projects and keeps current ones. You get a few seconds to undo. A log is started afresh at 5 MB when its server next starts; one that passes 50 MB while its server runs is cut back to its last 5 MB, with a note in the log saying so.
Notifications
macOS notifications for Server crashed, Port conflict, Stray server found and Server ready, with an optional sound. Portroom always tells you when it stops an idle server. Click a notification to go to the project, or to Processes for stray servers.
License
Paste the key from the email you got after buying Pro and press Activate. A key is for one person and works on up to three of their Macs at once. Each key shows whether it brings new versions (Current), has a month or less of them left (Ends soon) or is past its year (Ended: the version you have stays yours). Deactivate turns Pro off on this Mac and frees its place on your keys, so you can enter them on another Mac; Manage keys opens Polar's customer portal, with your receipts, your other Macs and another year of new versions. Another year of new versions comes as a new key: add it beside the first one. When a key's year is over, Check for updates brings the versions released within that year, and a newer one is shown in Settings ▸ License with the offer of another year; the version you have stays Pro. Without a key, Portroom starts with 14 days of Pro; after that, the free plan runs up to three servers at once, and each Pro feature shows a PRO badge.
Help and uninstalling
Report a bug in the ? menu or Help ▸ Report a Bug… sends us a report from the app: what happened, what you expected, your email if you'd like a reply, up to three screenshots or screen recordings (dropped on the window or added with the button, made smaller before they go) and, unless you untick it, diagnostics. Show lists them before you send: the version, macOS, what's turned on, and for each project its framework, status, port and last crash. No project names, folders, commands or variables: projects are numbered and your user name is taken out. With an email address, you get a short note that the report arrived. If portroom.dev can't be reached, Email instead writes the same report in your mail app. Copy diagnostics under More copies the same report for a message you write elsewhere.
Help ▸ Set Up Portroom… goes through the first-run setup again, for example to add several projects at once.
Help ▸ Uninstall Portroom… stops your servers, takes back what Portroom added to your Mac (the HTTPS certificate, the portroom link, Launch at login, the Claude Code entry) and moves the app to the Trash. Tick Also forget the project list, logs and settings to remove Portroom's own data too; with a Pro key on this Mac, that also frees its place on the key for another Mac. Left unticked, the key stays and works again after a reinstall. Your project folders are never touched.
Keyboard shortcuts
| Action | Keys |
|---|---|
| Jump to project or action | ⌘K |
| New project | ⌘N |
| Add folder | ⇧⌘O |
| Edit project | ⌘E |
| Start server | ⌘R |
| Restart server | ⇧⌘R |
| Stop server | ⌘. |
| Stop all servers | ⌥⌘S |
| Show / hide sidebar | ⌃⌘S |
| Show / hide details | ⌥⌘I |
| Settings | ⌘, |
| Keyboard shortcuts | ⌘/ |
| Close menu or dialog | Esc |
Quitting
If servers are running, Portroom asks what to do:
- Keep Running: servers stay up, and Portroom finds them again next time.
- Stop and Quit: servers stop first.
- Remember my choice: don't ask again.
Portroom doesn't ask when your Mac is shutting down or you're logging out.
Something unclear or missing on this page? Write to support@portroom.dev.