The project's README from github.com/SonghaiFan/leftopen. As one markdown file: README.md.
See what your tools left running on localhost, and close what you no longer need.
Website · Download · Install · CLI · 中文
When I have several coding agents working in parallel, dev servers and test runners keep starting up on different ports. By the end of the day there are always a few still running.
Existing tools are either too much, or only tell you "port in use" without saying which process it is or which project it came from.
So I made LeftOpen. It sits quietly in the menu bar and shows you the listening ports, the processes behind them and the projects they probably belong to. Once you've had a look, you close the ones you no longer need.
Close the doors that were left ajar, gently.
This project is evolving quickly and will remain free and open source forever. If you’ve downloaded it or are using it, please Star the repository and Follow @SonghaiFan to keep up with my projects. Your Star is my biggest source of support and motivation to keep building.
brew install --cask songhaifan/tap/leftopen
Supports Apple Silicon and Intel Macs running macOS Sonoma (14.0+). The app and bundled CLI are universal binaries, signed with a Developer ID and notarized by Apple.
Get LeftOpen-release.zip from GitHub Releases, unzip, and move LeftOpen.app to /Applications.
.git, package.json, pyproject.toml, Cargo.toml or go.mod, or resolves the owning .app. Global npm packages, python -m modules and standalone services (Redis, Postgres, Ollama…) are named too, so you rarely see a bare node or python..app icon when there is one; otherwise the icon the project or package ships itself (Tauri/Electron app icon, the favicon declared in index.html, public/ conventions); otherwise the favicon served by the local server; otherwise a symbol.brew services stop … for services launchd would restart, quitting the app for apps.SIGTERM and re-checks process identity. If a single-process close still leaves it listening after five seconds, that process is marked and the warning explains that closing it again within two minutes sends SIGKILL. The second click or swipe is the deliberate force-close action; existing safety protections and identity checks still apply.127.0.0.1 from ones on 0.0.0.0 or a LAN address.MenuBarExtra. No Dock icon, no telemetry, and no background service unless you opt into fixed addresses. The only request that leaves this Mac is a daily check of the latest GitHub release, which you can turn off in Settings.https://myapp.localhost URL that follows it across port changes, powered by bundled Portless. See below.leftopen CLI with identical inference and safety rules.Dev servers move between ports; their address doesn't have to. LeftOpen bundles Portless 0.15.7 and Node 24.14.0, so there's nothing extra to install.
/etc/hosts entries. Only explicit Settings actions ask; project actions and background scans never do.https://myapp.localhost.How it behaves:
.claude/launch.json (runtimeExecutable, runtimeArgs, port); LeftOpen runs it through portless run without a shell, only when you click Start. portless.json and the "portless" key in package.json are read by Portless itself. LeftOpen never reconstructs commands from process arguments. Projects with neither can right-click their shortcut and choose Copy Setup Prompt for AI, then paste it into a coding agent to create .claude/launch.json.leftopen url [name|port|path] prints verified addresses (--json for structured output), and leftopen --json includes fixedURL for matching services.Earlier HTTP addresses keep working; finish the HTTPS upgrade from the same Settings page. Portless (Apache-2.0) and Node ship with their licenses.
Address settings: Settings → Projects has a single fixed-address row, with no manual port configuration. Initial setup prefers 443, automatically trying 8443–8462 on conflict within the same authorization. Successful setup remembers the selected port and includes it in opened/copied URLs. Other listeners are never stopped; failures retain copyable diagnostics. Ports are not automatically migrated while LeftOpen-launched projects run. Turning off removes managed routes but preserves bindings, certificates and the proxy without stopping project servers; stop LeftOpen-launched projects first.
EADDRINUSE): When your dev server fails because port 3000, 5173, or 8080 is blocked by a lingering process, LeftOpen shows you what's running and shuts it down gently—without restarting your terminal or machine.node or python PID: Tools like lsof -i or kill-port only report raw PIDs or ambiguous process names. LeftOpen tracks the working directory and project root (package.json, Cargo.toml, pyproject.toml, go.mod, .git), giving you full context before taking action.127.0.0.1 (local only) or 0.0.0.0 (accessible to anyone on your local network/Wi-Fi).kill -9: Unlike blunt force-killing scripts, LeftOpen re-verifies PID and start time, shows sibling ports, and issues a standard SIGTERM so servers can clean up sockets, flush logs, and exit cleanly.Available in the terminal right after installing:
# List every listening port and its owner (or: leftopen list)
leftopen
# Explain one port
leftopen 3000
# Open http://localhost:3000 in the default browser
leftopen open 3000
# Print a project's verified fixed address (e.g. https://myapp.localhost)
leftopen url myapp
# Close the process on a port (SIGTERM, asks first)
leftopen close 3000
# Structured JSON output
leftopen --json
Sample output:
LEFT OPEN
26 listening ports · 17 processes · 1 projects · 8 LAN-visible
MY PROJECTS (2)
PORT PID OWNER PROCESS AGE SCOPE
5173 76344 visdelta node 2h LOCAL
↳ ~/Documents/visdelta
5511 4999 visdelta node 27m LOCAL
↳ ~/Documents/visdelta
APPLICATIONS (16)
PORT PID OWNER PROCESS AGE SCOPE
5000 696 ControlCenter Control 3d LAN
9222 36824 Google Chrome Chrome 5h LOCAL
SERVICES (3)
PORT PID OWNER PROCESS AGE SCOPE
11434 911 Ollama ollama 1d LOCAL
LOCAL = this Mac only · LAN = may be reachable from your local network
Maintainers: one-click releases.
# Tests
swift test
# Build one replaceable local test app (hidden .build/local-app.noindex)
Scripts/build-app.sh
# Build, run, and remove the test app when it exits
python3 Scripts/dev-app.py run
# Remove a build-only test app
python3 Scripts/dev-app.py clean
Local builds use the name LeftOpen Test and a separate bundle identifier. They never install into /Applications. Cleanup refuses active app/runtime processes and only removes its managed output. Quit the test app before cleaning. Fixed-address services and other user data are not reset. CI and release packaging continue to set an explicit LEFTOPEN_OUTPUT_DIR; do not use versioned dist/ folders for routine local tests.
For complete removal, use LeftOpen → Settings → About → Uninstall LeftOpen….
Direct brew uninstall only removes the app and CLI; services, certificates and
settings may remain. If already removed, reinstall the app and use its uninstaller.
See complete uninstall.
LeftOpen is part of the Franklin tools series.