Find the dev server you left running.
devps is a macOS command-line tool that lists local dev servers and what started them. Find one by port or project, return to its terminal, editor, or agent app, open it in the browser, or stop it.
brew install filipgutica/tap/devps- Runs on
- macOS only
- Written in
- TypeScript
- License
- MIT
- Source
- filipgutica/devps
First run
Replace 5173 with a port from your list. Each row is a job: a launched command and its servers.
- Run
devps ls. Find your server by port, project, or command. If it is missing, see Which servers appear. - With
fzf0.66 or newer installed, rundevpsin a terminal for the picker. Otherwise, it prints the table. Press q to leave the picker. - Run
devps jump 5173to return to the server's origin. - Run
devps open 5173to open localhost URLs for all the job's ports in your browser. - Run
devps kill 5173to stop the job and its child processes. Enteryto confirm, or press Enter to skip.
Pick
3/3 (0) ───────────────────────────────────────────────────────────────────────────────────────────────────────────── / search · q / esc quit · enter jump · ctrl-o browser · ctrl-x stop · tab multi-select · ctrl-r refresh ctrl-↑/↓ details PORTS PROJECT COMMAND ORIGIN AGE PID ▌ :4273 :8188 demo-shop [feature-cart] apps/web pnpm dev Claude Code 3f9a1c2e · Warp 12m 50339 ▌ :5173 demo-docs vite Claude Code 7b20d4e1 · Warp 7m 56319 ▌ :6006 demo-shop apps/storybook storybook dev ⚠ orphaned, was Codex thread 01a07b5e 2m 76954 ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ :4273 :8188 demo-shop [feature-cart] apps/web 12m old 1/23││ │ origin Claude Code 3f9a1c2e · Warp ││ │ jump Warp tab (exact) ││ │ cwd ~/demo-projects/worktrees/feature-cart/apps/web ││ │ cmd node ../../node_modules/.bin/pnpm dev │ │ │ │ launched by (nearest first) │ │ 50336 bash │ │ 91626 claude ttys012 │ │ 15529 zsh ttys012 │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
devpsThe preview shows the job's origin, jump target, working directory, and launcher processes.
Orphaned
3/3 (0) ───────────────────────────────────────────────────────────────────────────────────────────────────────────── / search · q / esc quit · enter jump · ctrl-o browser · ctrl-x stop · tab multi-select · ctrl-r refresh ctrl-↑/↓ details PORTS PROJECT COMMAND ORIGIN AGE PID ▌ :4273 :8188 demo-shop [feature-cart] apps/web pnpm dev Claude Code 3f9a1c2e · Warp 12m 50339 ▌ :5173 demo-docs vite Claude Code 7b20d4e1 · Warp 7m 56319 ▌ :6006 demo-shop apps/storybook storybook dev ⚠ orphaned, was Codex thread 01a07b5e 2m 76954 ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ :6006 demo-shop apps/storybook 2m old 1/15││ │ origin orphaned, was Codex thread 01a07b5e ││ │ jump focus Codex app (thread may be gone) (+ copies `codex resume 01a07b5e-4c92-47d3-b0f8-5e1a9c7d3268`) ││ │ cwd ~/demo-projects/demo-shop/apps/storybook ││ │ cmd node ../../node_modules/.bin/storybook dev ││ │ ││ │ launched by (nearest first) │ │ 1 launchd │ │ │ │ listeners │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Down, DownThis server outlived its launcher. devps recovered its Codex thread ID and includes a resume command in the jump target.
List
PORTS PROJECT COMMAND ORIGIN AGE PID :4273 :8188 demo-shop [feature-cart] apps/web pnpm dev Claude Code 3f9a1c2e · Warp 12m 50339 :5173 demo-docs vite Claude Code 7b20d4e1 · Warp 7m 56319 :6006 demo-shop apps/storybook storybook dev ⚠ orphaned, was Codex thread 01a07b5e 2m 76954
devps lsThe table and picker show the same jobs.
Stop
Stop :5173 demo-docs 1 processes: 56319 node Proceed? [y/N]
devps kill 5173The stop prompt shows the job's ports and project.
Commands and flags
jump, open, and kill accept space-separated ports or process IDs (PIDs). Ports can start with a colon: devps kill :5173 :6006.
A port match takes priority over a PID match. A PID must identify a job root or a listening process; other child PIDs do not match.
| Command | What it does | |
|---|---|---|
devps | Open the interactive picker. | |
devps ls | Print the jobs as a plain table. | |
devps jump 5173 | Focus the terminal, editor, or app that started the job. | |
devps open 5173 | Open http://localhost:<port> for every port in the matched job. | |
devps kill 5173 | Stop the whole job after confirmation. stop is an alias for kill. | |
devps --version | Print the installed version. Alias: -V. | |
devps --help | Print usage. Aliases: -h and help. |
--all- Include every TCP listener, bypassing the dev server filter. Works with every command, including
devps jump --all 5173. -y,--yes- Skip stop confirmations. Example:
devps kill 5173 -y.
Picker keys
The picker starts in browse mode. In search mode, q and / enter text. When you return to browsing, the header shows the active filter.
The Ctrl shortcuts and multi-selection work in both modes.
| Key | What it does |
|---|---|
| / | Browse: start searching. |
| q | Browse: quit. |
| Enter | Browse: jump to one job, even with several selected. Search: keep the filter and return to browsing. |
| Esc | Browse: quit. Search: clear the filter and return to browsing. |
| Ctrl+O | Open all selected jobs' ports in the browser. |
| Ctrl+X | Stop selected jobs, confirming each separately. Then press Enter to return to the list. |
| Tab | Select multiple jobs. |
| Ctrl+R | Refresh the list. |
| Ctrl+↑ / Ctrl+↓ | Scroll the preview. |
| Ctrl+C | Quit from either mode. |
Table columns
On screen
- PORTS
- The job's listening TCP ports.
- PROJECT
- Repository,
[worktree]when its name differs, and subfolder. Outside a repository, the working directory. - COMMAND
- The job root's command, shortened for display.
- ORIGIN
- The agent and host, when known.
⚠ orphanedmarks an orphaned job. - AGE
- Time since the job root started.
- PID
- The job root's process ID.
Jump targets
Focusing an exact tab or pane requires session information. The preview shows the target.
| Origin | Jump target |
|---|---|
| Warp, iTerm2, Terminal | The matching tab, when known; otherwise the app. |
| tmux | The pane, when its ID and a tmux ancestor are known. |
| VS Code | The folder's window. No terminal tab selection. |
| Codex app or Codex thread | The Codex app, including jobs started inside T3 Code Workbench. |
| T3 Code Workbench, Claude app, other apps | The host app, unless the Codex target above applies. |
| No known target | Nothing to focus. |
- Codex resume command
- For Codex app or Codex thread jobs with a known session ID, jumping also copies
codex resume <id>to the clipboard. This includes orphaned jobs but excludes a live Codex CLI in a terminal. - Claude Code resume command
- For an orphaned job with a known Claude Code session, jumping also copies
claude --resume <id>.
How jobs and origins are found
Each run snapshots TCP listeners and processes, keeping no state between runs.
- One row per launched command
- devps follows each listener's parents up to the process just below a shell, agent, app, tmux, or launchd. This process is the job root. Listeners with the same root share a row. For example, if
pnpm devstarts two Vite servers, one row shows both ports. - The origin
- Above the root, devps looks for the nearest Claude Code or Codex process and the nearest host app. These form labels such as
Claude Code · Warp. - Orphaned jobs
- A job is orphaned if its root's parent is PID 1 and the root is not an installed app. Its terminal or agent has usually ended. Inherited session and app hints can still identify the origin.
- Environment hints
- devps reads each job root's full environment with
ps -wwE, keeping only a fixed allowlist of keys, including terminal and agent session IDs and app identifiers. The preview prints these keys and values.
Which servers appear
By default, a TCP listener must meet both conditions. --all lists every listener instead.
- Its executable is outside an installed
.appbundle in/Applications,/System/Applications, or~/Applications, including their subfolders. - Its executable name matches a recognized runtime, such as
node,bun,python3, orgo; or its executable is under your home directory. The home-directory rule excludes~/.vscode,~/.cursor,~/Library, and~/.codex/packages.
How stopping protects other processes
- Check the root again
- Before stopping, devps rereads the process table and refuses if the root PID is gone or belongs to a different executable. Refresh and try again.
- Exclude protected processes
- From the root and its descendants, devps excludes PID 1, itself, the processes that launched it, and programs inside installed
.appbundles in the Applications folders listed above. These exclusions also apply with--all. - Terminate, then force survivors to stop
- devps sends
SIGTERMto the remaining processes, waits up to three seconds for exit, then sendsSIGKILLto survivors.
Limits
devps uses the macOS tools ps, lsof, open, osascript, and pbcopy.
Origin hints can survive a launcher, but the original tab or conversation may be gone. A resume command does not mean devps can reopen that conversation in the app.