Last login: Tue Nov 24 09:01:52 2026 on ttys000
cat open-source/portcall.md
portcall
Run local dev servers in the background, on fixed ports, with logs coding agents can read
Overview
portcall is a CLI that runs a project’s dev servers detached, each on a fixed port, and keeps their logs on disk. When several apps run at once, it keeps ports apart and stops coding agents from starting a second pnpm dev, losing track of the one they started, or missing the backend error behind a failing request.
portcall status # what runs, on which port
portcall up # start what is not running, wait for the ports
portcall logs server --errors # the error behind that 500, with its stack trace
portcall restart web
portcall ports # every project's ports, and conflicts between them
Install
npm i -g portcall
Configure
A portcall.json at the project root:
{
"$schema": "https://unpkg.com/portcall/schema.json",
"name": "myapp",
"services": {
"server": { "command": "pnpm dev:server", "port": 3000 },
"web": {
"command": "pnpm dev:web",
"port": 5173,
"env": { "VITE_API_URL": "http://localhost:{ports.server}" }
},
"db": { "port": 5432 }
}
}
Each command gets PORT set to its service’s port. A service without command is external (a database in Docker, a tunnel): portcall only checks that its port answers. With "worktrees": true, each git worktree gets its own port offset so several checkouts can run side by side.
With coding agents
portcall agents prints a section to paste into AGENTS.md / CLAUDE.md. Agents then check portcall status instead of guessing, start servers with portcall up, which never starts a second copy, and read portcall logs --errors instead of asking you to copy the terminal.