- How you use it
- You ask for it
- What it can do
- installs software · writes files · network · runs shell
- What's inside
The option
| Option | ASkill · v0.15.8+wwfix.2portless CLI 0.15.8 and agent skill |
|---|---|
| How you use it | You ask for it |
| What it can do | installs software · writes files · network · runs shell |
| What's inside |
What this thread does
As of November 2026, portless gives parallel worktrees stable named URLs and now has an opt-in unprivileged proxy mode. Do first: for a no-TTY session, consider portless proxy start --unprivileged and its HTTP/host-resolution limits (README).
Why this comes up
On 2 Sep 2026 @ctatedev (Vercel) said they use portless in their largest monorepo and recommended it for worktrees, parallel agents and multi-app repos. Port clashes are one of the main reasons parallel agents collide on one machine: two dev servers want port 3000, or an agent tests whatever happens to be on the port it guessed.
What it does
portless runs a small local proxy and starts your dev command on a free port (passed as PORT, or as --port for frameworks like Vite and Astro that ignore it). You open a name instead of a number:
portless myapp next devserves the app athttps://myapp.localhost.- In a linked git worktree on branch
fix-ui,portless run next devserveshttps://fix-ui.myapp.localhost, so every worktree gets its own URL with no config. - In a monorepo, one
portless.jsonnames each package, and runningportlessat the root starts them all. portless get <name>prints an app's URL, which is handy for agents and for wiring one service to another.
The repo also ships a portless agent skill, so the agent sets it up and uses the named URLs instead of guessing ports.
When to use it
Several agents (or you and an agent) run dev servers from different worktrees or packages on one machine. If you only ever run one dev server, it adds little.
Alternatives
- Assign fixed ports per worktree by hand (for example via an env file per worktree).
- A cloud machine per agent, which avoids sharing ports at all.
- For local databases, Supabase's experimental per-worktree stack solves the matching database clash.
Caveats (as of October 2026)
- System changes: HTTPS is on by default. On first run portless creates a local certificate authority, adds it to your system trust store, and binds port 443, elevating with sudo on macOS and Linux only when required. Use
--no-tlsfor plain HTTP, or skip the trust prompt. Custom TLDs such as.testalso make it edit your system hosts file.portless cleanundoes these; useportless clean --yeswithout a terminal (current command guide). - Pre-1.0: the state format may change between releases.
- In the normal mode, non-interactive shells (no TTY or
CI=1) fail instead of prompting when setup needs elevation or trust, so start the proxy yourself before an unattended agent run. The new unprivileged mode is an exception (README). - Scripts it can't parse (compound commands, env prefixes) keep their own port.
Sources (earlier review)
Primary source: the portless README (Vercel Labs, the maker's own page; read through the GitHub API on 18 October 2026, nothing installed or run).
- Confirms: Apache-2.0, last push 17 October 2026; named
.localhostURLs (portless myapp next devgiveshttps://myapp.localhost); a random port in 4000-4999 passed viaPORT, with--portinjected for frameworks that ignore it; bareportlessand a rootportless.jsoncover monorepo packages; in a linked git worktreeportless runprepends the branch name as a subdomain (the README's example is a branchfix-ui); HTTPS on by default with a local CA that is trusted and port 443 bound with automatic sudo on macOS and Linux,--no-tlsfor plain HTTP; the proxy auto-syncs/etc/hostsfor route hostnames (including.test) unlessPORTLESS_SYNC_HOSTS=0;portless cleanremoves state, the CA trust entry and the hosts block; in non-interactive environments (no TTY orCI=1) it exits with an error instead of prompting; and the pre-1.0 warning about the state format. - Not confirmed in the lines I read:
portless get <name>, the detail about compound commands and env prefixes keeping their own port, and the exact contents of the repo'sskillsfolder. The README does describe itself as "for humans and agents". - The Vercel employee's post about using it in their largest monorepo is a testimonial, not documentation.
New proxy option
portless v0.15.13 was published to npm on 1 November 2026. --unprivileged (or PORTLESS_UNPRIVILEGED=1) avoids sudo in proxy startup, defaults to HTTP on port 80, and does not install a CA or update the hosts file. With --https, trust the CA separately; on Linux the low-port sysctl may still require one administrator action. On macOS the wildcard bind can trigger the application firewall prompt. Service installation still runs as root. The default HTTPS/CA behavior and portless clean warning above still apply outside this opt-in mode.
Railly’s PR #529 (29 October) includes a macOS no-TTY run and loopback/LAN checks; it credits Dor Peled’s original change. Vercel’s changelog also records 0.15.12’s portless mcp, VitePress/Wrangler flag injection, and the intervening certificate and port-validation fixes. The previous source-reading notes describe the 18 October snapshot.
Not for: warming worktree dependencies; see warm-worktrees-for-parallel-agents-lane
checked 2026-11-03
Started from a post by @ctatedev, packaged by the editor. Original post
- 01 · YouPaste the line from Try it into your agent.
- 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
- 03 · YouApprove a one-line report. Nothing is posted without you.