Skip to content
Proyectos

Acerca de

Sustituye los números de puerto por URL locales estables y con nombre. Para personas y agentes.

Sistemas e infraestructura

Cómo se miden estas cifras

Crecimiento de estrellas medido

in 24h
+6
in 7 days
+22
in 15 days
+65
in 1 month
+197

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original

portless

Vercel Labs Product npm version: portless License: Apache-2.0 npm downloads per month: portless skills.sh

Portless gives local dev servers stable, named .localhost URLs. It assigns each server an available port and runs a local reverse proxy that routes requests by hostname. Your bookmarks and test scripts keep working even when the app gets a different port.

For a Next.js project named myapp, the dev script change looks like this:

- "dev": "next dev"                  # http://localhost:3000
+ "dev": "portless run next dev"     # https://myapp.localhost

Install

Portless requires Node.js 24 or later and runs on macOS, Linux, and Windows.

npm install -g portless

Quick start

From a project with a dev script in package.json, run:

portless

Portless starts the proxy if needed, then runs your dev script and prints a URL such as https://myapp.localhost.

By default, the proxy serves HTTPS on port 443. The first HTTPS run adds a local certificate authority to your system trust store and may prompt for sudo on macOS and Linux. See HTTPS setup, or pass --no-tls to use HTTP.

To choose the hostname yourself, pass a name and the dev server command. For example, from a Next.js project:

portless myapp next dev

With the default proxy settings, open https://myapp.localhost.

To use the proxy whenever you run npm run dev, prefix the command in your dev script with portless run. To pin the version for your project, use npm install -D portless and commit the lockfile.

Common workflows

Task How
Run two branches side by side Use portless run to give a linked Git worktree its own URL, such as https://fix-ui.myapp.localhost.
Start apps in a monorepo Run portless from the workspace root. Use portless.json to override app names or scripts.
Name a server that's already running With the proxy running, use portless alias api 8080 for a local HTTP server on port 8080. See Docker Compose for Compose services.
Look up app URLs Use portless list to see active routes or portless get myapp to print a URL by name.
Open a dev server on another device Use LAN mode on macOS or Linux, or share through a tunnel such as localtunnel.

Run portless doctor if a URL doesn't load. If a route hostname will not resolve, the command that registered it warns and points to portless hosts sync.

For AI agents

Install the Portless skill to teach your agent how to start dev servers and find their URLs:

npx skills add vercel-labs/portless

Add the MCP server to let a client list routes and look up URLs. Use the CLI to start dev servers.

{ "mcpServers": { "portless": { "command": "portless", "args": ["mcp"] } } }

Documentation

Contributing

Use Node.js 24 or later and pnpm 11. From the repository root, run pnpm install, then pnpm --filter portless build and pnpm --filter portless test for the CLI in packages/portless. See the docs workspace for site development and AGENTS.md for change and release requirements.

Community tools

These companion tools are maintained independently by their authors, not by Vercel.

License

Apache-2.0

Explorar proyectos relacionados

Cargando…