Skip to content

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.

Install with Homebrew. If you need Homebrew first, install it here.

brew install filipgutica/tap/devps
Runs on
macOS only
Written in
TypeScript
License
MIT

First run

Replace 5173 with a port from your list. Each row is a job: a launched command and its servers.

  1. Run devps ls. Find your server by port, project, or command. If it is missing, see Which servers appear.
  2. With fzf 0.66 or newer installed, run devps in a terminal for the picker. Otherwise, it prints the table. Press q to leave the picker.
  3. Run devps jump 5173 to return to the server's origin.
  4. Run devps open 5173 to open localhost URLs for all the job's ports in your browser.
  5. Run devps kill 5173 to stop the job and its child processes. Enter y to confirm, or press Enter to skip.

These captures use demo projects and sample processes.

Pick

devps

The preview shows the job's origin, jump target, working directory, and launcher processes.

Orphaned

Down, Down

This server outlived its launcher. devps recovered its Codex thread ID and includes a resume command in the jump target.

List

devps ls

The table and picker show the same jobs.

Stop

devps kill 5173

The 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.

CommandWhat it does
devpsOpen the interactive picker.
devps lsPrint the jobs as a plain table.
devps jump 5173Focus the terminal, editor, or app that started the job.
devps open 5173Open http://localhost:<port> for every port in the matched job.
devps kill 5173Stop the whole job after confirmation. stop is an alias for kill.
devps --versionPrint the installed version. Alias: -V.
devps --helpPrint 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.

Before stopping, devps reports the process count and names up to eight processes. Stop safeguards also apply when confirmation is skipped.

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.

KeyWhat it does
/Browse: start searching.
qBrowse: quit.
EnterBrowse: jump to one job, even with several selected. Search: keep the filter and return to browsing.
EscBrowse: quit. Search: clear the filter and return to browsing.
Ctrl+OOpen all selected jobs' ports in the browser.
Ctrl+XStop selected jobs, confirming each separately. Then press Enter to return to the list.
TabSelect multiple jobs.
Ctrl+RRefresh the list.
Ctrl+↑ / Ctrl+↓Scroll the preview.
Ctrl+CQuit 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. ⚠ orphaned marks 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.

OriginJump target
Warp, iTerm2, TerminalThe matching tab, when known; otherwise the app.
tmuxThe pane, when its ID and a tmux ancestor are known.
VS CodeThe folder's window. No terminal tab selection.
Codex app or Codex threadThe Codex app, including jobs started inside T3 Code Workbench.
T3 Code Workbench, Claude app, other appsThe host app, unless the Codex target above applies.
No known targetNothing 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 dev starts 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.

  1. Its executable is outside an installed .app bundle in /Applications, /System/Applications, or ~/Applications, including their subfolders.
  2. Its executable name matches a recognized runtime, such as node, bun, python3, or go; or its executable is under your home directory. The home-directory rule excludes ~/.vscode, ~/.cursor, ~/Library, and ~/.codex/packages.

A compiled server outside your home directory can be hidden, such as a go run binary in a temporary folder.

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 .app bundles in the Applications folders listed above. These exclusions also apply with --all.
Terminate, then force survivors to stop
devps sends SIGTERM to the remaining processes, waits up to three seconds for exit, then sends SIGKILL to 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.