portside

module
v0.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2026 License: MIT

README

portside

Keep your local dev servers running, in one place.

Latest release macOS 26 or later on Apple Silicon MIT license

Every dev server you run, in one place. Next.js, Vite, Python APIs, docker compose stacks and workers start in the background, keep their ports, and live in your menu bar, a dashboard and your terminal.

  • Stop juggling terminal tabs. One click or portside up shop starts a project with everything it depends on; each server keeps its port and gets a name.localhost address.
  • Know right away when something breaks. A crash sends a notification with the exit code and the last lines of the log, and so does a container that turns unhealthy.
  • Your coding agents use the same servers. Claude Code and Codex reuse the server that already runs instead of starting another copy on a random port, and read its logs when something fails.
  • Reach the servers on your other Mac. Pair your laptop with the desktop that runs your projects and manage its servers, logs and containers from anywhere on your tailnet; its sites open on your laptop as if they ran there.
  • Free, open source and local. No account and no telemetry; nothing leaves your machine unless you pair another computer.

A server's live terminal with every server one click away in the side rail

A crashed server with its exit code and the error that caused it

A server's Compose containers with their state, usage and live logs

Install

Requires macOS 26 (Tahoe) or later on Apple Silicon. With Homebrew, this installs Portside.app and the portside command:

brew install --cask padmk/tap/portside

The app is not notarized by Apple yet, and the cask removes the quarantine flag so that macOS lets it start. You rely on the public source and on release files built by GitHub Actions instead, each with a verifiable attestation from 0.3.0; Trust says what that covers and how to check a download. If you would rather not run a prebuilt app, brew install --formula padmk/tap/portside (from 0.3.0) builds the command-line tool and dashboard from source on your Mac, without the menu bar app (Build with Homebrew below).

On a Linux server without a desktop (a preview), the daemon runs as a systemd user service and you work through the CLI, MCP and an SSH tunnel: see Linux server.

Other ways to install, update and uninstall

Download. Get Portside-<version>.zip from the releases, move Portside.app to Applications, and choose Settings > Install Command Line Tool in its menu. The app is signed ad hoc and not notarized, so macOS blocks the first launch of a downloaded copy: open it once, then choose Open Anyway in System Settings > Privacy & Security and confirm (Apple's instructions). The Homebrew cask clears the quarantine flag itself.

Build with Homebrew. brew install --formula padmk/tap/portside downloads the release's tagged source and builds the portside command with its embedded dashboard, on macOS or Linux (with Homebrew's Go, Node and pnpm, needed only for the build). There is no menu bar app: open the dashboard in your browser with portside open. Update with brew upgrade portside, then portside daemon restart. The formula and the cask both install portside, so install only one of them.

Linux (preview). The CLI, daemon and dashboard run on x86-64 and arm64; CI builds and tests them, but macOS gets more use. Download portside_<version>_linux_<arch>.tar.gz from the releases and put portside on your PATH, or build it with Homebrew (above); then portside service install starts the daemon at login (Linux server for a machine without a desktop).

From source (Go 1.26+, Node 24 and pnpm 12):

git clone https://github.com/padmk/portside
cd portside
make install            # builds the dashboard and installs ~/.local/bin/portside
make app-install        # macOS: builds Portside.app and installs it in /Applications

Browser. The dashboard is served at its own *.localhost host, so it needs a browser that resolves *.localhost: Chrome, Firefox, or Safari on macOS 26 and later (the app's dashboard window uses the same WebKit).

Updating. With the app, brew upgrade --cask portside is all it takes: Homebrew quits the app, installs the new one and reopens it, and the app upgrades the older running daemon in place. make app-install does the same for a build from source. After an update without the app (the formula, a release download, make install), run portside daemon restart with the new binary; portside status and portside doctor mention a daemon older than the command. Servers keep running through the update. When the app cannot upgrade the daemon in place (one too old for that, or a refused upgrade), its Restart banner, shown whenever the daemon's version differs from the app's, restarts it.

Uninstalling. First stop the daemon and its servers with portside daemon stop (or portside service uninstall if you installed the login service, which also stops it). brew uninstall and brew upgrade leave them running; brew uninstall --zap --cask portside stops them and trashes the config and state.

Quick start

On macOS, open Portside: its first window offers to find your projects and connect your coding agents. From the terminal:

portside scan --add     # find projects in your projects folder and add them
portside up web --wait  # start one server and wait until it is ready
portside open           # sign in and open the dashboard
portside setup          # connect Claude Code and Codex

Any command starts the daemon on demand, so there is nothing to launch first. Servers live in ~/.config/portside/portside.toml:

root = "~/dev"

[servers.web]
dir = "shop/apps/web"
cmd = "pnpm dev --port {PORT}"
port = 3001
group = "shop"

Features

One static binary runs a daemon on 127.0.0.1; the menu bar app, the dashboard, the CLI (with --json for scripts) and the MCP server all talk to it.

  • One list for every project. A single TOML file describes servers across all your repositories, with groups (portside up shop) and dependencies (api waits for db). portside scan finds Node, Deno, Python, Ruby, PHP, Elixir, Java, .NET, Go, Rust and Compose projects and proposes the commands.
  • Stable ports and clean URLs. Each server keeps its port and is also reachable at http://<name>.localhost:7878, WebSockets and hot reload included.
  • Real terminals, honest status. Servers run in a PTY with live output, search and portside attach. starting lasts until the port answers, crashes show the exit code, and foreign processes holding a port are named.
  • Survives crashes, restarts and updates. restart = "on-failure" starts a crashed server again with backoff; once it gives up, a notification or your own on_crash command reports it. Servers keep running through a daemon upgrade and come back after a reboot.
  • Containers. Compose containers appear next to their server with state, health, logs, a shell and recreate, for Docker Desktop, OrbStack, Colima, Podman and remote engines.
  • Coding agents. An MCP server and a skill for Claude Code, Codex and other MCP clients: ensure_server starts a server if needed and returns its URL, agents read logs instead of guessing, and --read-only limits them to looking.
  • Other computers. Pair your computers over Tailscale with a one-time code; every request is signed with the paired device's key. While connected, the dashboard, the CLI (--on <computer>) and agents (computer) act on the other machine, and its servers' ports are forwarded here (Other computers).

Documentation

License

MIT. Third-party licenses are listed in THIRD_PARTY_NOTICES.txt. Report vulnerabilities as described in SECURITY.md.

Directories

Path Synopsis
cmd
portside command
Command portside keeps local dev servers running in one place.
Command portside keeps local dev servers running in one place.
internal
agentsetup
Package agentsetup is the optional setup for coding agents: the MCP server registered with Claude Code and Codex, and the agent skill in their skill directories.
Package agentsetup is the optional setup for coding agents: the MCP server registered with Claude Code and Codex, and the agent skill in their skill directories.
agentskill
Package agentskill renders the agent skill that teaches coding agents to work with the daemon, and installs it where Claude Code and Codex look for skills (dirs.go locates their directories).
Package agentskill renders the agent skill that teaches coding agents to work with the daemon, and installs it where Claude Code and Codex look for skills (dirs.go locates their directories).
app
Package app holds the product identity in one place.
Package app holds the product identity in one place.
cli
Package cli implements the command-line interface.
Package cli implements the command-line interface.
client
Package client talks to a running daemon and starts one when needed.
Package client talks to a running daemon and starts one when needed.
config
Package config loads and edits the TOML file that lists managed servers.
Package config loads and edits the TOML file that lists managed servers.
csp
Package csp holds the Content-Security-Policy for content the dashboard's origin serves but did not write: project icons and every reply relayed from another computer.
Package csp holds the Content-Security-Policy for content the dashboard's origin serves but did not write: project icons and every reply relayed from another computer.
daemon
Package daemon runs the long-lived process: it owns the supervisor and serves the HTTP API, dashboard and proxy until it receives a signal.
Package daemon runs the long-lived process: it owns the supervisor and serves the HTTP API, dashboard and proxy until it receives a signal.
discover
Package discover finds projects that look like they have a dev server and proposes a command for each, so adding a server rarely means typing one.
Package discover finds projects that look like they have a dev server and proposes a command for each, so adding a server rarely means typing one.
docker
Package docker talks to a container engine through the Docker Engine API.
Package docker talks to a container engine through the Docker Engine API.
hostport
Package hostport reads the host out of a Host header or a host:port pair, the one form every host check compares.
Package hostport reads the host out of a Host header or a host:port pair, the one form every host check compares.
mcpserver
Package mcpserver exposes the daemon to coding agents over the Model Context Protocol (stdio).
Package mcpserver exposes the daemon to coding agents over the Model Context Protocol (stdio).
notify
Package notify signals subscribers that something changed.
Package notify signals subscribers that something changed.
paths
Package paths resolves where configuration, state and logs live.
Package paths resolves where configuration, state and logs live.
ports
Package ports answers "is anything listening on this port, and who is it".
Package ports answers "is anything listening on this port, and who is it".
remote
Package remote connects this daemon to the daemon on another of the owner's devices (see package share for the other side).
Package remote connects this daemon to the daemon on another of the owner's devices (see package share for the other side).
server
Package server exposes the supervisor over HTTP: the JSON API used by the CLI and dashboard, WebSocket streams, the embedded dashboard itself, and a reverse proxy that serves every server at http://<name>.localhost.
Package server exposes the supervisor over HTTP: the JSON API used by the CLI and dashboard, WebSocket streams, the embedded dashboard itself, and a reverse proxy that serves every server at http://<name>.localhost.
service
Package service registers the daemon with the OS so it starts at login: a launchd agent on macOS, a systemd user unit on Linux.
Package service registers the daemon with the OS so it starts at login: a launchd agent on macOS, a systemd user unit on Linux.
share
Package share lets the owner's other devices connect to this daemon.
Package share lets the owner's other devices connect to this daemon.
signing
Package signing signs HTTP requests with a shared key and verifies them.
Package signing signs HTTP requests with a shared key and verifies them.
supervisor
Package supervisor runs dev servers in pseudo-terminals and tracks their lifecycle: start (with dependencies), readiness, graceful stop, crash handling with restart policies, resource usage and scrollback.
Package supervisor runs dev servers in pseudo-terminals and tracks their lifecycle: start (with dependencies), readiness, graceful stop, crash handling with restart policies, resource usage and scrollback.
tailnet
Package tailnet reads this machine's Tailscale state and manages Tailscale Serve entries through the tailscale CLI, which works the same with every Tailscale variant (macOS app, Homebrew, Linux packages).
Package tailnet reads this machine's Tailscale state and manages Tailscale Serve entries through the tailscale CLI, which works the same with every Tailscale variant (macOS app, Homebrew, Linux packages).
scripts
benchclient command
Command benchclient holds one events connection (/api/events) to the daemon on -port open for -for, the way the dashboard (usage shown) or the menu bar app with its panel closed (-usage=false) does, and discards what the daemon sends.
Command benchclient holds one events connection (/api/events) to the daemon on -port open for -for, the way the dashboard (usage shown) or the menu bar app with its panel closed (-usage=false) does, and discards what the daemon sends.
notices command
Command notices writes THIRD_PARTY_NOTICES.txt: the license of every Go module linked into ./cmd/portside, every npm package bundled into the dashboard (production dependencies reachable from web/package.json), and the color themes the dashboard palettes derive from.
Command notices writes THIRD_PARTY_NOTICES.txt: the license of every Go module linked into ./cmd/portside, every npm package bundled into the dashboard (production dependencies reachable from web/package.json), and the color themes the dashboard palettes derive from.
Package web embeds the built dashboard (web/dist) into the binary.
Package web embeds the built dashboard (web/dist) into the binary.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL