portside

module
v0.1.0 Latest Latest
Warning

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

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

README

portside

Keep your local dev servers running, in one place.

Portside is a small daemon, a CLI and a web dashboard for the dev servers you run every day: Next.js, Vite, Python APIs, docker compose stacks, workers. It starts them in real pseudo-terminals, keeps their ports stable, shows status, logs and resource use on one calm page, and lets coding agents reuse the same servers instead of launching duplicates.

It is built for macOS, as a menu bar app; on Linux (a preview, less tested) the same dashboard runs in the browser. One static binary inside, no runtime dependencies, no account, and nothing leaves 127.0.0.1 unless you turn on sharing with your other computers.

Features

  • A menu bar app on macOS. The status icon shows at a glance whether everything runs, something is starting, or a server or one of its containers needs attention. Its panel lists every server with its project icon and start, stop, restart, open and logs, plus group actions; the dashboard opens in its own window. A crash arrives as a notification with Restart and Show Logs buttons once the restart policy gives up (one per crash, not one per attempt), and so does a container that starts needing attention.

  • One list for every project. A single TOML file describes servers across all your repositories, with groups (portside up shop starts web, api and worker) and dependencies (api waits for db to accept connections).

  • Stable ports and clean URLs. Each server keeps its port. Every server is also reachable at http://<name>.localhost:7878 through a built-in proxy that handles WebSockets and hot reload.

  • Real terminals. Servers run in a PTY, so colors, progress bars and interactive prompts work. Watch output live in the dashboard or attach from your terminal (portside attach web), type into it, detach with Ctrl-].

  • Honest status. starting until the port accepts connections (optionally an HTTP health path), running, crashed with the exit code, a delayed warning if a running server loses its listener, blocked when another process holds the port. Ports held by programs Portside did not start are shown with their owner, and you can take the port over in one click.

  • Graceful stops. Ctrl-C to the whole process group first (so docker compose shuts its containers down), then SIGTERM, then SIGKILL; orphaned children are cleaned up.

  • Restart policies and notifications. on-failure or always with exponential backoff; a desktop notification when a server crashes. A server waiting for its next automatic restart can be stopped like a running one.

  • Survives restarts and updates. Updating the daemon (portside daemon restart) keeps your servers running, and the servers you had running come back when the daemon is stopped and started again or you log in (portside service install).

  • CPU and memory per server, summed over the whole process tree, with sparklines.

  • A dashboard that scales with your setup. One server fills the screen with its output and charts, a few get large cards with a live log preview, and long lists switch to compact rows (c and l toggle them). Click a card for a full-size terminal, with every server one click away in a side rail. ⌘F (Ctrl+Shift+F on Linux, so Ctrl-F and Ctrl-K stay with the shell) searches the terminal, and Filter lines shows the matching lines from all the output the daemon keeps; Clear output clears only that view, while Clear daemon scrollback in the server menu forgets the kept output (the log file stays, and Open log file shows it). Group headers start, restart (in dependency order) and stop a whole group. Everything else (ports, config, add server) stays in the menu and the ⌘K (Ctrl+Shift+Space on Linux and Windows) palette; ? lists the keyboard shortcuts.

  • Themes. Rosé Pine (default), Everforest, Tokyo Night, Catppuccin, Nord and a neutral palette, each in light and dark, following the system setting or your choice. The terminal follows the theme.

  • Project discovery. portside scan finds Node dev servers (Next.js, Vite, Astro, Nuxt, Remix, React Router, Angular, Gatsby, webpack-dev-server, Vue CLI, Docusaurus, Create React App, Wrangler), Deno tasks, Django, Flask and ASGI apps (FastAPI, Starlette), Rails, Laravel, Phoenix, Spring Boot, ASP.NET Core, Go and Rust web servers and Compose projects, and proposes commands with the right port flags. Node flags are added only when the script runs one of those CLIs itself, also through other scripts (npm run, pnpm, yarn, bun run, node --run) that pass the flags on, package binaries (npx, pnpm vite, yarn vite) and environment assignments; other scripts get a port when they use $PORT or their entry file reads process.env.PORT or starts Next.js (which keeps a port the entry file passes to next itself, such as "-p", "3000"), else none. Workspace roots (a workspaces list, pnpm-workspace.yaml packages, or a root turbo, nx or lerna config with packages; turbo, nx, pnpm -r and similar scripts) are left out when their apps are found, including packages outside the usual folders that the workspace lists, else proposed without a port. Python commands use the project's tool by lockfile (uv run, poetry run, pipenv run, pdm run), else uv run when uv is on the servers' PATH (the login shell's, for the dashboard and scan alike) and pyproject.toml has a [project] table, unless a .venv that uv did not make (no uv = line in its pyvenv.cfg) exists and pyproject.toml has no [tool.uv] section, else a .venv or venv interpreter, else python3; a configured command run another of these ways counts as the same command; declared [project.scripts] entry points need one of those environments and have no assumed listening port. Go and Rust servers get a port only when their source reads PORT. Discovery visits each folder once, however many symlinks lead to it, skips commands already configured, keeps other services in the same folder, and checks live listeners when suggesting automatic ports.

  • Agent friendly. portside ensure web starts a server if needed, waits until it is ready and prints its URL. portside mcp exposes servers, containers and searchable logs to Claude Code, Codex, Gemini CLI and other MCP clients, and portside setup (or the app, when it first connects) registers it with them and installs a skill that teaches them how to use it.

  • Containers. Portside talks to the Docker Engine API of the active Docker context, so it works the same with Docker Desktop, OrbStack, Colima, Rancher Desktop (with dockerd), Podman or a Linux daemon, rootful or rootless, and with remote tcp:// (also TLS) and ssh:// contexts (see How it works). Compose containers appear next to the server with the closest matching directory, including projects in a subfolder such as infra/ and ones that project scripts start: state, health check, uptime, published ports, CPU and memory, updated live. Servers that share the closest directory share its containers, and a temporary worktree server owns the containers started from its worktree (also one nested in the original checkout). Supabase CLI containers match project_id in supabase/config.toml in the server directory or an ancestor up to the repository root. Set per-server projects to explicitly attach Compose project names. A server warns when one of its containers is unhealthy, restarting or crashed while it runs; a container stopped on purpose (a stop signal from docker stop, compose stop or docker kill, remembered across daemon restarts, or an exit the engine did not restart under an always or unless-stopped policy without an error) does not count as crashed. Each container has start, stop and restart, its logs in a searchable terminal, a shell (bash or sh) in a terminal tab, details (image, command, environment with secret-looking values hidden until revealed, volumes, networks) and, for Compose services, Recreate, plus Rebuild and recreate for known Compose-built images or Pull and recreate for image services. Each Compose project offers Start all, Stop all and confirmed Remove containers (compose down, keeping volumes) on both container views. Log-driver errors stay visible above the terminal, and output survives reconnection. Attached containers becoming unhealthy or failing trigger desktop notifications when notifications are enabled and no notifying desktop client is connected. A Containers page (g d) shows every container on the engine with the same actions. When the engine is down, Start Docker starts the one behind the active context, or the docker_start command.

  • Other computers. With Tailscale on both machines, the dashboard connects to Portside on another of your computers and manages its servers, containers, logs and terminals as if you sat at it. Its sites open in your local browser: running servers' ports are forwarded to the same ports here, and every server is also at http://<name>.<computer>.localhost:7878. See Other computers.

  • Ports overview. Every listening TCP port on the machine with its process and working directory, the container a published port belongs to, and a safe way to kill strays.

A server's live terminal with every server one click away in the side rail (Tokyo Night)A crashed server with its exit code and the error that caused it (Catppuccin Latte)The list layout with every server grouped by project (Everforest Light)A server's Compose containers with their state, usage and live logs (Nord)The app offering to connect Claude Code, Codex and Gemini CLI through the MCP server

Install

Requirements: macOS 26 (Tahoe) or later on Apple Silicon (M1 or newer). Linux on x86-64 or arm64 works as a preview: the CLI, daemon and dashboard run there, but macOS is the platform Portside is built and tested for. 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).

macOS, with Homebrew (planned; the tap is not published yet). This will install Portside.app and the portside command:

brew install --cask padmk/tap/portside

Or download 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.

Before uninstalling, 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.

Linux (preview): download portside_<version>_linux_<arch>.tar.gz from the releases, put portside on your PATH, and run portside service install to start the daemon at login.

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

To update an installed app, run make app-install: it quits a running copy, installs the new one, upgrades a running daemon to the new binary in place and reopens the app. Servers keep running through the update. After any other update (Homebrew, a release download, make install), run portside daemon restart with the new binary; the app's Restart banner, shown when the daemon's version differs from the app's, does the same.

Quick start

portside scan --add     # find projects in your projects folder (the config's root) and add them
portside up web --wait  # start one server and wait until it is ready
portside open           # sign in and open the dashboard (http://d-<random>.localhost:7878)
portside service install  # start the daemon at login (optional)

Any command starts the daemon on demand, so there is nothing to launch first.

Configuration

The config lives at ~/.config/portside/portside.toml ($PORTSIDE_CONFIG overrides it) and state, logs and the token at ~/.local/state/portside ($PORTSIDE_STATE_DIR overrides it). On Linux $XDG_CONFIG_HOME and $XDG_STATE_HOME move both defaults; on macOS they do not, because the app and launchd never see a shell's variables, so the app, the CLI and the service always agree on one config, state directory, token and lock. Earlier versions followed them on macOS too: when they point elsewhere and the default location does not exist yet, the next command moves the config directory and state directory from there to the defaults and says so. Only a directory holding Portside's own files is moved (portside.toml in the config directory, daemon.lock or state.json in the state directory, and nothing else); one with other files, such as a repository named portside, is left in place with a note. While a daemon still runs from the old state directory, commands keep using the old locations until it stops, and while the login service still names them, until portside service install moves them and rewrites the service. portside service install pins the config and state locations it was run with in the service definition. The first run writes a commented starter file whose root is your projects folder: of the folders people commonly keep code in (such as ~/Developer, ~/dev, ~/code, ~/projects, ~/src, ~/repos, ~/workspace, ~/Documents/GitHub or the JetBrains ~/IdeaProjects, in any letter case), the one with the most projects one or two levels down, else your home folder. The daemon reloads it when it changes; edits from the dashboard keep your comments and formatting. Adding or editing a server with a missing working directory saves it and displays a warning; create the directory before starting it. An invalid file keeps the last good settings live, including across daemon restarts; without a saved copy the dashboard starts with an empty roster so you can repair the file. The banner shows the error, and portside daemon restart refuses an invalid config before replacing a healthy daemon. A dashboard edit made from an older version of the file (because it changed on disk while the form or the config editor was open) is refused instead of overwriting that change; the dashboard then offers to reload, or in the config editor to overwrite. After a save, the dashboard offers to restart the running servers that still use the old settings.

root = "~/dev"                      # base for relative dirs
# port = 7878                       # dashboard, API and *.localhost proxy
# path = ["/opt/homebrew/opt/node@24/bin"]   # prepended to PATH for every server (Homebrew;
#                                   # with nvm: "~/.nvm/versions/node/v24.11.0/bin")
# restore = true                    # bring back running servers after a restart
# notify = true                     # desktop notification on crash
# stop_timeout = "10s"              # grace period after Ctrl-C
# shell = "bash"                    # runs each cmd as <shell> -c <cmd>
# editor = "Zed"                    # app (macOS) or command for "Open in editor"
# terminal = "Terminal"             # app (macOS) or command for "Open in Terminal"
# docker_start = "colima start"     # how "Start Docker" starts the engine; detected by default
# share = false                     # let your other devices on Tailscale connect (see Other computers)

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

[servers.shop-api]
dir = "shop/apps/api"
cmd = "uv run uvicorn api.main:app --reload --port {PORT}"
port = 3002
group = "shop"
health = "/healthz"
restart = "on-failure"

[servers.shop-worker]
dir = "shop"
cmd = "pnpm worker"
port = 0                            # listens on no port
group = "shop"
env = { QUEUE = "local" }

[servers.shop-db]
dir = "shop"
cmd = "docker compose up"
port = 5432
group = "shop"
stop_timeout = "30s"
# projects = ["shop-db", "shared-cache"]  # explicit Compose project attachment
Key Meaning
dir Working directory, relative to root or absolute.
cmd Shell command, run with bash -c. {PORT} is replaced; $PORT is set too.
port Port the server listens on. Omit it to assign a free port from 3001 (skipping ports of temporary servers), saved to the file on daemon load; 0 for none.
group Name for starting and stopping related servers together.
projects Explicit Compose project names attached to this server, overriding directory matching for those projects. Names must be unique within the list, start with a lowercase letter or digit, and contain only lowercase letters, digits, dashes or underscores.
depends_on Servers that must be running (and ready) before this one starts.
restart no (default), on-failure or always, with backoff up to 30 s and at most 5 quick retries.
health HTTP path that must answer (status < 500) before the server counts as running.
env Extra environment variables. {PORT} works in values. The dashboard hides secret-looking values until revealed.
stop_timeout How long to wait after Ctrl-C before SIGTERM.
enabled false leaves the server out of --all and restore; it can still be started by name.
icon Path to an icon for the dashboard; by default a project favicon is detected.
open Path appended to the URL when opening the server, e.g. /admin.
wrap How the command enters the project's tool environment (see Version managers): auto (the default) detects it, none runs the command as is, anything else is a command prefix such as nix develop -c (words separated by spaces).

editor and terminal choose what Open in editor and Open in Terminal use; the dashboard's Settings list the ones found on this computer and save the choice here. Both accept an app name on macOS or a command with arguments. A terminal command receives the directory as its last argument; use {DIR} to place it explicitly, for example terminal = "foot --working-directory={DIR}". Known apps and commands (such as Ghostty, kitty, ptyxis or konsole) get the right arguments by name.

Without editor, Portside uses $VISUAL or $EDITOR from your login shell when it names a GUI editor, else the first installed of Cursor, Visual Studio Code, Zed, Windsurf, Sublime Text, VS Code Insiders, VSCodium, Nova, BBEdit, the JetBrains IDEs (IntelliJ IDEA, WebStorm, PyCharm, GoLand, RustRover, PhpStorm) and Xcode, else the system's default app. On macOS it finds the apps by bundle ID, so their command-line launchers need not be installed; on Linux it looks for their commands (cursor, code, zed, windsurf, subl, code-insiders, codium, idea, webstorm, pycharm, goland, rustrover, phpstorm). Without terminal, macOS opens the first installed of Ghostty, iTerm2, WezTerm, kitty, Alacritty and Warp, else Terminal; Linux uses $TERMINAL, then x-terminal-emulator, then the first of ghostty, wezterm, kitty, alacritty, foot, ptyxis, gnome-terminal, kgx, konsole and xfce4-terminal.

shell is the shell that runs each server's cmd (as <shell> -c <cmd>, default bash). docker_start is the command Start Docker runs; by default the engine behind the active Docker context is started.

Server names are lowercase letters, digits and dashes, because they double as <name>.localhost hostnames. portside is reserved for the dashboard; existing entries with that name load with a warning. Renaming a running server in the dashboard preserves its process and output.

The daemon is often started by launchd or systemd with a bare environment, so it reads PATH and the rest of your environment from your account's login shell (the one set for your user, not $SHELL) as an interactive login shell, and refreshes it every 10 minutes. sh, bash, zsh, fish, ksh and dash are read directly; for other shells, such as nushell or tcsh, it reads a login zsh (else bash) instead, so add entries that only your shell's own config sets with path. portside doctor shows which shell was read, how, and the resulting PATH. Commands detected as Compose stacks receive COMPOSE_MENU=false to keep interactive Compose menus out of their logs. Changes to the login-shell environment, global env, path, shell, a server's env or wrap, or the tool a server would start under (such as a new .envrc) mark running servers stale until restarted. Values in the login-shell environment that differ on every shell start do not: variables that changed between two reads at the first one, per-session variables of terminals and tools (such as FNM_*, ATUIN_*, __MISE_*, KITTY_*, TERM_SESSION_ID or a temporary SSH_AUTH_SOCK) and fnm's per-shell PATH entries. An ssh-agent that your rc files start during a read is stopped again, and servers keep the daemon's own agent. Ports 5000 and 7000 (macOS AirPlay) and browser-blocked ports are skipped when assigning ports.

Version managers

The environment is read once in your home folder, so tool versions that your terminal switches on cd would not apply. When a server starts, Portside looks in its directory and the parents up to the repository root and runs the command through the first match whose tool is on the server's PATH: .envrc with direnv exec (an .envrc you have not allowed is skipped with a note in the log), devbox.json with devbox shellenv --init-hook loaded into the server's shell (so the project's init_hook runs too), mise.toml, .mise.toml or .tool-versions with mise exec (which never installs tools during a start; mise reports missing ones in the log), and .nvmrc or .node-version with fnm exec --using, or, for .nvmrc without fnm, nvm loaded from $NVM_DIR/nvm.sh and nvm use. Node version files apply only to commands that run Node tools (such as node, npm, pnpm, yarn, vite or next) or to a server directory with a package.json; when fnm or nvm has not installed that version, the command runs with the default node and a note in the log. Commands that run Docker Compose, docker or podman are never wrapped. $PORT and the variables from the global and server env keep Portside's values even when the project's environment sets them (for example PORT in a direnv dotenv file). PATH is the exception: a PATH from env or path is where the tool starts, and the tool's own entries come before it. Nix flakes work through direnv (use flake) or wrap = "nix develop -c". The tool appears in the server's log, in its details in the dashboard and as tool in portside status --json; set wrap = "none" to turn this off for a server.

The daemon listens on port 7878 unless port is set. When the file sets no port and 7878 is taken by another program (Radarr uses it too) or by the daemon of another account on the same computer, the daemon takes the first free port from 7879 to 7899 that no server uses, then from 17879 to 17899, and logs the change; anything that accepts connections on the port at 127.0.0.1 or ::1 counts as taken, including a program listening on all addresses. It keeps that port in auto-port in the state directory, not in the config, so the next start uses it again while it is free and the port stays automatic; the CLI, the app, agents and your other computers follow it (daemon.port in the state directory, and connected computers try the same ranges). When every port of both ranges is taken, the daemon stops with an error asking for port. It never moves away from a port that another Portside daemon of your account holds, such as one started with another PORTSIDE_STATE_DIR for the same config or an isolated instance without port: the daemon refuses to start, and the daemon and the CLI name its pid and state directory and leave the config alone, so set port for isolated instances. A holder counts as such a daemon only when lsof or ss shows a portside process of your account listening; anything else, including an ssh -L tunnel to another computer's daemon or a process that only claims to be Portside, counts as another program. A port set in the file that is taken stops the daemon with an error naming the holder where lsof or ss can see it. An in-place upgrade (portside daemon restart) that finds a new port in the config moves there when it is free and otherwise keeps the old port until the next restart.

CLI

portside status [--json]                 list servers with state, port and usage
portside up <name|group>... | --all      start (dependencies first); --wait, --takeover
portside down <name|group>... | --all    stop gracefully; removes temporary servers
portside restart <name|group>...
portside ensure <name> [--json]          start if needed, wait until ready, print the URL;
                                         --dir <checkout> runs it from another git worktree
portside logs <name> [-n 200] [-f]       print or follow a server's or container's output;
                                         --grep <regexp> [-C N] searches it,
                                         -t adds times, --since 10m limits it
portside containers [server|project] [--json]  containers, their state and server
portside containers start|stop|restart <name>
portside containers recreate <name> [--build | --pull]  wait for recreation and print its output tail
portside attach <name>                   interactive terminal, Ctrl-] detaches
portside open [name] [--alias] [--print] open the dashboard or a server
portside ports [--json]                  every listening TCP port and its owner

portside add <name> --cmd "..." [--dir .] [--port N] [--group G]
portside rm <name> | enable <name> | disable <name>
portside scan [dir] [--add]              discover projects
portside init                            write the starter config file
portside config [path|edit|check]

portside daemon [start|stop|restart|status|logs]
portside service install|uninstall|status
portside share [on|off]                  let your paired devices on Tailscale connect;
                                         on prints a pairing code
portside share code|devices|revoke <device>   new pairing code, paired devices, unpair one
portside computers [--json]              your other computers that share, and the connection
portside pair <computer> <code>          pair with a computer using its code, then connect
portside connect <computer> | disconnect connect to a paired computer, or end the connection
portside --on <computer> <command>       run status, up, down, restart, ensure, logs, attach
                                         or containers on the connected computer
portside mcp                             MCP server on stdio
portside setup [--yes] [--json]          connect Claude Code, Codex and Gemini CLI (MCP server, skill);
                                         --print-mcp prints the entry for other MCP clients
portside skill install|print             agent skill for Claude Code and Codex
portside doctor [--fix]                  check the setup; --fix connects coding agents

open uses the first command in $BROWSER (commands separated by colons, %s standing for the address), else open on macOS, wslview or explorer.exe under WSL, and xdg-open on a Linux desktop. Without a browser, over SSH ($SSH_CONNECTION is set) or with --print, it prints the sign-in link instead, which works once, within two minutes, and only from a process of your account. Over SSH, forward the daemon's port with the same number, for example ssh -L 7878:127.0.0.1:7878 <host>, and open the link on your own computer, where *.localhost resolves to it. Under WSL the browser runs on Windows and reaches the daemon through the WSL network relay, so the daemon may not attribute the connection to your account and refuse the sign-in; then run a browser inside WSL or reach the dashboard over an SSH tunnel.

down and stop refuse to run without a name or --all. Stop also cancels a pending automatic restart. JSON status exposes that wait as restartPending.

After 10 seconds of startup, a server reports the port or health check it is waiting for. If its process tree listens on another port, listenPorts and the status note identify it. Running servers warn after a listener or health failure lasts 4 seconds, allowing brief hot reload gaps. ensure rechecks readiness even for a running process; health probes, direct URLs and the alias proxy use the loopback address that answers, including IPv6.

Coding agents

Connect Claude Code, Codex and Gemini CLI once, with the MCP server and, for the first two, the agent skill (below):

portside setup

It checks each agent installed for the account (its configuration directory exists: ~/.claude or $CLAUDE_CONFIG_DIR, ~/.codex or $CODEX_HOME, ~/.gemini or $GEMINI_CLI_HOME/.gemini; or the claude, codex or gemini command is on PATH or the login shell's PATH), lists what is missing, asks once, and then runs claude mcp add --scope user portside -- <path> mcp, codex mcp add portside -- <path> mcp and gemini mcp add --scope user portside <path> mcp and installs the skill. When the variables are not set in its own environment, as for the app, setup reads them from the login shell. <path> is the portside on PATH when it is the same binary (such as ~/.local/bin/portside or the Homebrew link), otherwise the binary's own path, such as /Applications/Portside.app/Contents/Helpers/portside. --yes skips the question, --json lists the items (id, label, state: ok, missing, outdated, foreign or unavailable, applicable, command), and --apply claude-mcp,codex-skill --yes applies only those and prints the results as JSON. When an agent's command is not found, or a skill file with that name was not written by Portside, setup leaves it alone and prints the command to run yourself. portside doctor reports the same items without changing anything, and portside doctor --fix applies the missing and outdated ones.

Other MCP clients start the same server, <path> mcp, from their own config. portside setup --print-mcp prints the entry with the resolved path:

{
  "mcpServers": {
    "portside": { "command": "/Users/you/.local/bin/portside", "args": ["mcp"] }
  }
}
  • Cursor: put it in ~/.cursor/mcp.json (every project) or .cursor/mcp.json in a project.
  • Windsurf: the same mcpServers entry in its mcp_config.json, opened from the MCP settings in Cascade.
  • VS Code: .vscode/mcp.json, or the user one from MCP: Open User Configuration, uses servers: {"servers": {"portside": {"type": "stdio", "command": "<path>", "args": ["mcp"]}}}.
  • Zed: context_servers in settings.json: {"context_servers": {"portside": {"command": "<path>", "args": ["mcp"]}}}.
  • opencode: mcp in ~/.config/opencode/opencode.json: {"mcp": {"portside": {"type": "local", "command": ["<path>", "mcp"], "enabled": true}}}.
  • Gemini CLI: portside setup adds it; by hand, gemini mcp add --scope user portside <path> mcp.

The macOS app offers the same setup once, the first time it connects to the daemon while an installed agent lacks something: a checkbox per missing item, Connect and Not Now. Settings > Connect Coding Agents opens it again and shows what is already connected. Without an installed agent the app asks nothing.

Agents get list_servers (each server with the containers of its Compose project; dir narrows it to one checkout), ensure_server (reports whether it reused or started the server; dir runs it from another worktree, see below), restart_server (waits for readiness, with an optional timeout, default 90s), stop_server, server_logs, list_containers, container_action, container_logs and list_ports, plus instructions to reuse running servers rather than start their own. Readiness failures include recent output lines for a crashed server. container_action takes name, action (start, stop, restart or recreate), and optional build or pull for recreation; recreate waits and returns its last 100 output lines, including failures. Both log tools put each line's local time before it and take match, a case-insensitive regular expression, context, lines around each match, and since, a duration such as 10m or an RFC 3339 time. A container search covers its last 20,000 lines; a server's line times come from when the daemon received the output, to the second. Replies stay under 256 KiB with long lines cut, and bracketed notes at the top say what was left out. While this computer is connected to another one, the server and container tools take computer (its name) to act there, and their results name it. Without MCP, portside ensure <name> --json, portside status --json, portside containers --json and portside logs <name> --grep <regexp> -C <n> give the same information.

Worktrees

Agents often work in a linked git worktree (git worktree add), where the configured server would serve the main checkout. ensure_server with dir (the agent's working directory), or portside ensure <name> --dir <path>, then starts a temporary copy of the server in that checkout: the same command, environment, health check and restart policy, the same subdirectory inside the worktree, and a free port of its own. Its name is <name>--<worktree folder> (for example web--feature-x), which also works as http://web--feature-x.localhost:7878. Dependencies are not copied: the copy uses the configured ones, such as a shared database. When dir is the server's own checkout, ensure behaves as without it; a directory outside the repository's worktrees (a different git common directory, such as a separate clone) is refused.

Temporary servers are not written to the config file. They are kept in the daemon's state, so they survive a daemon restart, and appear in status, the dashboard (under their original, marked worktree) and list_servers with temporary, origin and worktree; list_servers with dir lists the ones of that checkout. Stopping one (stop_server, portside down, or Remove in the dashboard) removes it with its logs, and the daemon removes it on its own once its worktree directory is gone. Editing or removing the original in the config applies to its copies too.

The agent skill (portside setup installs it, as does portside skill install) writes SKILL.md for the agents set up on the account: to ~/.claude/skills/portside/ ($CLAUDE_CONFIG_DIR/skills when set) for Claude Code and to ~/.agents/skills/portside/ for Codex, or to ~/.codex/skills/portside/ ($CODEX_HOME/skills), which Codex still reads, when an earlier install put it there; once when one directory links to the other. The skill covers when to reuse, start or restart a server, how to diagnose one through its logs and containers, and what to leave alone. The daemon rewrites an installed copy when it starts with the default config and state paths, including login-service starts, so the skill follows app updates; a file with that name that skill install did not write is kept unless you pass --force. portside skill print shows the file.

Other computers

Work on one computer while the projects run on another, for example a laptop driving a desktop.

  1. Install Tailscale on both and sign both in to the same Tailscale account.
  2. On the computer that runs the projects, turn sharing on: Computers in the top bar, then Let my other devices connect, or portside share on (it sets share = true in the config). Either shows a one-time pairing code, valid for 10 minutes.
  3. On the computer you work on, open Computers, choose Pair next to the other computer and enter the code. Pairing is needed once per device; afterwards Connect is enough.

portside share code prints a new code, portside share devices lists paired devices and portside share revoke <device> unpairs one, which also ends its connection. The Computers window on the shared computer does the same.

The window changes color and shows the other computer's name in the top bar. Everything in the dashboard then acts on that computer: servers, logs and terminals, containers, ports, adding servers and editing its config. Opening a folder, an editor or a terminal is not offered, because it would happen on the other computer's screen. Disconnect returns to this computer. The connection belongs to the daemon, so every dashboard window follows it. It outlasts a daemon restart: the daemon reconnects to the same computer in the background when it starts (saved in remote.json in the state directory), until you disconnect or the other computer removes the pairing. When the other computer's daemon comes back on another automatic port, the connection follows it there.

From the terminal, portside computers lists your computers that share their servers, portside pair <computer> <code> pairs and connects, portside connect <computer> connects to a paired one and portside disconnect ends the connection. While connected, --on <computer> runs status, up, down, restart, ensure, logs, attach and containers there, for example portside logs api --on devbox --grep error; it fails when this computer is connected to another one or to none.

Sites open as if they ran here:

  • While connected, the port of each running remote server (and each published container port, such as a database) is forwarded to the same port on this computer, so http://127.0.0.1:5173 and psql -p 5432 reach the other computer. A port already in use here, on any address, is left alone and listed as busy; so is a forwarded port once a local process starts listening on it, for example a local docker compose publishing the same database port (noticed within a few seconds on macOS; Linux refuses that local bind while the port is forwarded). Starting a local server on a forwarded port takes the port back for as long as that server is starting or running, and a local server whose port is forwarded shows forwarded from that computer instead of a foreign process. For a busy port, Use another port in the Computers window forwards it to a local port you choose, for example 5432 to 15432, remembered for that computer. When the connection is lost for about a minute, the forwarded ports are released until it is back. Like any local server, a forwarded port can be reached by every account on this computer.
  • Every remote server is also at http://<name>.<computer>.localhost:7878, for example http://web.devbox.localhost:7878. A link to http://<name>.localhost:7878 copied from the other computer works too when this computer has no server of that name.

Only devices signed in to the same Tailscale user that are not tagged appear in the list. Sharing uses Tailscale Serve with HTTPS: the daemon publishes https://<computer>.<tailnet>.ts.net:7878 inside your tailnet, which tailscale serve status lists, and withdraws it when sharing is turned off or the daemon stops. It refuses to replace a Serve entry on that port that it did not create. The tailnet must have HTTPS certificates enabled (Tailscale admin console, DNS page). On Linux, allow Serve for your account once with sudo tailscale set --operator=$USER. Discovery checks each online device on ports 7878 and this daemon's own port.

How it works

  • portside daemon owns every server process. It listens on 127.0.0.1:7878 (and [::1]) and serves the API, the dashboard (embedded in the binary) and the *.localhost proxy, routed by the Host header.
  • Each server runs as bash -c <cmd> in its own pseudo-terminal and process group. Output goes to a 1 MiB in-memory scrollback and to ~/.local/state/portside/logs/<name>.log (rotated at 10 MiB). A daemon restart or upgrade reloads the last 256 KiB from the current and rotated files into scrollback, followed by a daemon restarted separator. Restored output has no line timestamps.
  • State (which servers you want running, the process groups in flight, and last exit codes, times and notes) is saved to ~/.local/state/portside/state.json. A validated copy of the config is cached as last-good-config.json beside it. The config and server logs can contain environment values and credentials, so files in the state directory and the config file are created with mode 0600 and the directories with 0700; each daemon start removes group and other access from the config file, from ~/.config/portside and ~/.local/state/portside with their contents, and, for a state directory set with PORTSIDE_STATE_DIR, from that directory, its logs and the files Portside keeps in it (never from parent directories or other files). After a crash of the daemon itself, leftover process groups are verified by start time (read from ps in the C locale, so a daemon started under another locale still recognizes them) and stopped before servers are restored.
  • portside daemon restart upgrades a running daemon in place: it asks the daemon to run the CLI's own binary, the daemon checks that binary (<binary> version) and then re-executes it in the same process. Servers stay its children and their terminals stay open, the listening sockets carry over (requests made meanwhile wait instead of failing), and launchd or systemd see no exit. A handoff file in the state directory (handoff.json, removed by the new daemon) lists each server's process, start time, terminal and state; the new daemon takes each one over and resumes its output, and anything it cannot take over is ended and restored as after a crash. The command waits until the daemon answers with the new version; if none answers within 30 seconds, it starts a fresh daemon, which restores servers as after a crash. The daemon refuses while a server is stopping or a Compose job runs, and stays on the old binary if the new one does not run. A daemon from before this feature, or none at all, is stopped and started instead, which restarts its servers. A daemon from before verified requests cannot prove itself to the CLI, which therefore sends it nothing signed; it is stopped with SIGTERM instead, once the CLI has checked that it is your account's process listening on the daemon port. The menu bar app shows such a daemon's version with a Restart button. portside daemon stop, portside service uninstall and Stop Daemon and Servers in the app still stop every server, also when the stop arrives during an upgrade. Sharing and the connection to another computer resume as after any start.
  • The macOS app (macos/, Swift) bundles the same binary in Portside.app/Contents/Helpers/portside, starts the daemon if needed and follows its event stream. Quitting the app leaves the daemon and your servers running; Stop Daemon and Servers in its menu stops them, and the panel and dashboard window then offer Start. When the config file does not load, the daemon keeps running on the last good settings and the app shows the error with Edit. While the dashboard shows another computer, the panel says so with Disconnect; opening a server from the panel or a notification asks to disconnect first, since the panel lists this computer's servers. A server whose port carries the other computer's forwarded server is labeled as such, and Start takes the port back. Settings in its menu holds Launch at Login (registers the app as a login item), the app icon, Install Command Line Tool and Connect Coding Agents (see Coding agents).
  • Containers come from the Docker Engine API of the active Docker context (DOCKER_HOST, DOCKER_CONTEXT, then currentContext in ~/.docker/config.json), read from your login-shell environment. Without one, the first socket that exists is used: /var/run/docker.sock, then on macOS OrbStack, Docker Desktop, Colima, Rancher Desktop and Podman machine sockets, on Linux rootless Docker ($XDG_RUNTIME_DIR/docker.sock), Docker Desktop, rootless Podman ($XDG_RUNTIME_DIR/podman/podman.sock, from systemctl --user enable --now podman.socket) and /run/podman/podman.sock. Where /var/run/docker.sock is a symlink, its target names the engine. A tcp:// endpoint uses TLS when DOCKER_TLS_VERIFY or DOCKER_TLS is set (certificates from DOCKER_CERT_PATH, else ~/.docker) or when its context has TLS material, as the docker CLI does. A tcp:// host without a port uses 2375, or 2376 with TLS. An ssh:// endpoint runs ssh <host> docker system dial-stdio in batch mode, so the key must come from your SSH agent or config without a prompt; keepalives (every 15 seconds, three missed) end a dead link so the connection is made again, and containers on another machine are listed and managed, but their ports are not treated as local. When the Rancher Desktop socket or context does not answer and its settings choose containerd, which has no Docker API, Portside says so and asks for dockerd (moby). An event stream keeps the list current and a stats stream per running container feeds CPU and memory; over ssh://, stats are polled on an interval over a few shared connections instead, so sshd does not see a login per container. A container belongs to the server whose dir is its com.docker.compose.project.working_dir; when several servers share that directory, the one running docker compose wins, else the first. Recreate and rebuild run docker compose up --detach --no-deps --force-recreate [--build] <service> with the project's own files, because the engine API has no notion of Compose projects; without a docker command whose docker compose version works they use docker-compose, podman compose or podman-compose, in that order. Start Docker on Linux starts rootless Docker's user unit (systemctl --user start docker) or Podman's socket; for Docker as a system service it tells you to run sudo systemctl start docker instead.
  • A docker compose server whose containers are still up from an earlier run starts even though its ports are taken, since Compose attaches to them. The port counts as the stack's when its listener is a container engine process (Docker's proxy, OrbStack, Colima, Podman with gvproxy, pasta, slirp4netns or conmon, rootless Docker's rootlesskit or rootlessport) or, when the listener is hidden, as rootful Docker's root-owned docker-proxy is on Linux, when a running container of that server (by the ownership rules above) on a local engine publishes it; a publishing container that belongs to no server also counts, with a note in the daemon log, and one of another server's projects does not.
  • A deliberate stop (portside daemon stop, Stop Daemon and Servers in the app or the dashboard, portside service uninstall) leaves ~/.local/state/portside/stopped. While it exists the app shows the daemon as stopped instead of starting it again; any explicit start removes it: the app's Start, portside daemon start or any command that needs the daemon.
  • portside service install writes a launchd agent (~/Library/LaunchAgents/app.foreverbeta.portside.plist) or a systemd user unit. While it is installed, a daemon started on demand is started by it, and portside daemon restart uses it (launchctl kickstart -k or systemctl --user restart) when the daemon cannot be upgraded in place, so the service keeps supervising the daemon; an in-place upgrade keeps the service's process. It restarts a daemon that crashes, not one that was stopped. On macOS, the app's Launch at Login is the recommended way to start the daemon at login; the service is for Linux and setups without the app, and service install points out when both are on. On Linux, systemd stops user services at logout unless lingering is enabled (sudo loginctl enable-linger $USER); service install and portside doctor say when it is off. The unit is wanted by default.target, so it also runs without a desktop, and is ordered after graphical-session.target without being part of it. That ordering does not give the daemon a display: the desktop has to import its session variables into the user manager, which most desktops do at login (systemctl --user import-environment or dbus-update-activation-environment --systemd in their session startup; add one of them to your session startup if yours does not). service install, and every start of the service by the CLI, also copy DISPLAY, WAYLAND_DISPLAY, XDG_RUNTIME_DIR, DBUS_SESSION_BUS_ADDRESS and XDG_SESSION_TYPE, where set, into the systemd user manager, so notifications and opening an editor or terminal work; a DISPLAY forwarded over SSH (ssh -X, with SSH_CONNECTION set or a value such as localhost:10.0) is left out, since it ends with the SSH session. portside doctor warns when the service runs without a display while you are in a desktop session. Without systemd (Alpine, Void, Devuan, WSL without systemd), service install explains how to start the daemon from your shell profile (portside daemon start) or your init system instead.
  • A command run inside an agent's sandbox (Codex sets CODEX_SANDBOX or CODEX_SANDBOX_NETWORK_DISABLED, Claude Code's sandbox SANDBOX_RUNTIME) does not start a daemon, since the daemon and every server it starts would inherit the sandbox; the command and the MCP tools ask for portside daemon start in a normal terminal, or the app, instead. A daemon that runs already is used as usual; when it runs but the sandbox blocks connections to it, the message says so and asks for local network access instead. Elsewhere a daemon started on demand is a detached child process (or the login service when it is installed for the same config and state).

Security model

The daemon runs arbitrary commands from your config, so its API must only be reachable by you:

  • it binds to loopback only, on both 127.0.0.1 and [::1] wherever the system has IPv6 loopback. Browsers try ::1 first for *.localhost, so the daemon refuses to start while another program holds [::1]:<port> (it would receive every dashboard request and its cookie), names the address in the error, and portside doctor checks that the daemon itself answers on both. Clients dial 127.0.0.1 by address;

  • every API call needs the token in ~/.local/state/portside/auth-token (mode 0600, created on first start), which is never sent. Each daemon start picks a random epoch. Before its first signed request, the CLI, the MCP server and the macOS app ask GET /api/health with a random challenge (X-Portside-Challenge); the daemon answers with its epoch and a proof, an HMAC-SHA256 keyed by the token over the challenge and the epoch (X-Portside-Epoch, X-Portside-Proof). A client that gets no valid proof sends nothing signed and reports that something else holds the port. Then each request, WebSocket upgrades included, is signed with an HMAC-SHA256 keyed by the token over its method, request URI, time, a random nonce, the body hash and the epoch (X-Portside-Date, X-Portside-Nonce, X-Portside-Epoch, X-Portside-Signature), and carries a new challenge whose proof the reply must hold. A reply's proof also covers its status and the SHA-256 of its body, so nothing between the client and the daemon can alter it; a WebSocket upgrade's covers the challenge and the epoch. Each kind of HMAC has its own number of newline-joined parts, so one can never pass for another. The daemon accepts a signature within two minutes of its clock, each nonce once, and only for its current epoch; a client refused after a daemon restart repeats the handshake. A program that takes the daemon's port while the daemon is not running, for example under another account, therefore gets no signature, and one captured from an earlier daemon is refused by the next. Other accounts on the same machine cannot use the API;

  • for manual use, the daemon also accepts the token as Authorization: Bearer <token>, for example curl -H "Authorization: Bearer $(cat ~/.local/state/portside/auth-token)" http://127.0.0.1:7878/api/state. No shipped client sends it, and anything you send it to can reuse it;

  • the dashboard has its own host, http://d-<24 random hex digits>.localhost:7878, new on every cold start of the daemon and written to dashboard-host (mode 0600) beside the token; an in-place upgrade (portside daemon restart) keeps it, since the listening sockets are never released (one that has to listen anew gets a new host). No server may take a name of that form. A browser signs in through a single-use link, valid for two minutes, that portside open or the app creates and gets an HttpOnly, SameSite=Strict session cookie for that host only. Browsers send cookies to every port of a host, so a cookie for 127.0.0.1 would reach every dev server, container or forwarded port opened there; the dashboard host is used by nothing else. The cookie is an HMAC of the token and the host, not the token, and the daemon accepts it only on requests to the current dashboard host. A new host each start means that a page another program served on the old one while the port was free, such as a service worker, has no hold on the dashboard, and old cookies stop working. A request for an old dashboard host gets the page on how to open the dashboard (and the dashboard's session probe hears it is signed out), never a pointer to the new host. So browser tabs from before a reboot or a daemon stop need portside open again; the app's window signs in again by itself. 127.0.0.1 and localhost serve the API to signed clients and, in a browser, the same page; they never reveal the dashboard host, except to forward a valid sign-in link opened from your account. A state directory from before host-bound sessions gets a new token on the first start, so cookies an older version set on 127.0.0.1 stop working. The sign-in link is on http://127.0.0.1:<port>/auth, so it does not name the dashboard host, and the daemon forwards it to the dashboard host, and redeems it there, only on a connection from another process of its own account (on Linux it finds the connection's owner in /proc/net/tcp and tcp6; on macOS with lsof, which shows an account only its own processes); a connection it cannot attribute is refused, learns nothing of the dashboard host, and the link stays unused. A link that shows in process arguments, which other accounts can read, is therefore of no use to them, and portside open passes it to the browser command directly, printing it only when no browser can take it (see CLI). The session cookie, too, is accepted only on connections from your account, so a program of another account that received it cannot use it. The owner is looked up once per connection, not per request. The app loads the link in its own window;

  • requests whose Host is not the dashboard host, 127.0.0.1, localhost, [::1] or portside.localhost are rejected, which defeats DNS rebinding;

  • state-changing requests and WebSockets from browsers must come from the dashboard's own origin;

  • killing a foreign process is limited to processes currently listening on a port, and refuses container engines and their port forwarders (Docker, OrbStack, Colima, Podman and the others listed in How it works), launchd, systemd and the AirPlay receiver.

  • sharing is off by default. When it is on, Tailscale Serve forwards tailnet requests to a loopback listener that answers only under a random path known to the Serve configuration. A request is accepted only when all of these hold: it comes from another device of the user who owns this computer's node, not tagged (Tailscale sets Tailscale-User-Login and the source address itself); it does not come from this computer, so other accounts, apps and containers here cannot use the tailnet way in; it carries a header that web pages cannot send without a CORS preflight, which is never granted; and it is signed with the key this daemon issued to that same device when it was paired with a one-time code. Tailscale identifies devices, not accounts or processes, so the key is what keeps other accounts on your other devices out. It is never sent after pairing: each request carries an HMAC of its method, URI, time, a single-use nonce and body. Every connection goes over HTTPS with the certificate Tailscale holds for the shared computer's tailnet name, and every reply, WebSocket upgrades included, must also prove with the same key that it comes from the paired daemon, so a program posing as the shared daemon gets neither the code nor anything reusable, and its answers are refused. Keys are stored in share-devices.json on the shared computer and remote-tokens.json on the connecting one, both mode 0600 in the state directory. A paired device has the same control you have here, which includes running any command through a server definition; the dashboard does not offer it stopping the daemon, opening desktop apps or changing sharing, but that is a convenience, not a security boundary. Pair only devices you trust as much as this one;

  • project icons are served only as images, with a sandboxing Content-Security-Policy, so an SVG in a project cannot run script on the dashboard's origin.

Programs running as your own user can read the token, just as they could run the commands themselves. Keep the dashboard host to yourself while it lasts: a page served on another port of that host (http://d-....localhost:<other port>) would receive the session cookie. The daemon accepts it only on your account's connections, so this matters only against your own programs, which can read the token anyway. The *.localhost proxy needs no token: it only forwards to dev servers that already listen on loopback.

To report a vulnerability, see SECURITY.md.

Development

make dev-daemon     # isolated daemon on :7980 (config and state in .dev/)
make dev-open       # sign the browser in; prints the Vite address on the dev daemon's dashboard host (new on each cold start)
make dev-ui         # dashboard with hot reload on http://<dashboard host>:5173 (the session cookie covers every port of that host)
make build          # dashboard + bin/portside
make snapshot       # release archives in ./dist (goreleaser)
make app            # macOS app in dist/macos/Portside.app (scripts/build-macos-app.sh)

A v* tag runs .github/workflows/release.yml: GoReleaser publishes the CLI archives for macOS (arm64) and Linux (amd64, arm64), then the app is built and attached to the release as Portside-<version>.zip. When a HOMEBREW_TAP_TOKEN secret exists, the cask Casks/portside.rb is also published to the homebrew-tap repository of the same account; without it that step is skipped. CI builds on Linux for every push; the macOS build runs from the Actions tab (ci workflow, "Run workflow") and on release tags. The app is signed ad hoc unless SIGN_IDENTITY is set; notarization needs an Apple Developer account.

License

MIT. Third-party licenses (Go modules, dashboard packages and fonts, and the color themes the palettes come from) are listed in THIRD_PARTY_NOTICES.txt, which ships in the release archives and in Portside.app/Contents/Resources and is served by the dashboard at /licenses.txt (Settings, "Open source licenses"). make notices regenerates it after a dependency change; make check and CI fail while it is stale.

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, Codex and Gemini CLI, and the agent skill in the Claude Code and Codex skill directories.
Package agentsetup is the optional setup for coding agents: the MCP server registered with Claude Code, Codex and Gemini CLI, and the agent skill in the Claude Code and Codex 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.
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.
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).
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
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