Установка
SKILL.md
Portless Integration
Named .localhost URLs for local development. Replaces localhost:3000 with https://myapp.localhost.
Full CLI reference: Load
Read("${CLAUDE_SKILL_DIR}/references/upstream.md")for complete command docs.
New in 2026-04 → 2026-07 (portless 0.10.x → 0.15.0)
portless doctor(0.15.0) — read-only diagnostics that check Node.js, the state directory, proxy liveness, route entries, hostname resolution, HTTPS CA trust, and LAN prerequisites, then print suggested fixes. Run it before filing an issue or when a.localhostURL won't resolve.- HTTP/2 Host forwarding fix (0.15.0) — the proxy now forwards the HTTP/2
:authorityasHostto HTTP/1.1 backends, fixing apps that readHostand previously saw127.0.0.1for browser traffic.--forcetakeover cleanup now removes only routes still owned by the exiting process, so a forced takeover no longer deregisters the new owner's route. --ngrokflag (0.14.0) — share an app publicly via ngrok while local access keeps its.localhostURL. Pair with the existing Tailscale/Funnel options when you need a public URL without giving up the named-subdomain dev experience.- Node.js 24+ required (0.13.1, BREAKING) — the proxy and CLI now require Node.js 24 or newer; older runtimes are unsupported. This release also hardens startup-service persistence so
.localhostURLs survive reboot reliably. - State directory moved to
~/.portless(0.11, BREAKING) — state relocated from scattered/temp locations to~/.portless; override withPORTLESS_STATE_DIR. Old state from pre-0.11 installs is not migrated automatically. - OS startup service (0.13.0) —
portless service install/service status/service uninstallregister a native startup service for the HTTPS proxy across macOS launchd, Linux systemd, and Windows Task Scheduler..localhostURLs survive reboot without a manualportless proxy start.portless cleanremoves the service alongside CA + hosts cleanup. - Tailscale readiness preflight (0.13.0) —
--tailscaleand--funnelnow validate Tailscale HTTPS + Funnel prerequisites before starting the child process, surfacing actionable errors instead of hanging during registration. - Tailscale integration (0.12.0) —
--tailscaleshares your app over your tailnet with automatic HTTPS on port 443;--funnelexposes it publicly via Tailscale Funnel. Apps receivePORTLESS_TAILSCALE_URLso they can reference their own public address.portless listnow shows tailnet URLs. - Zero-config mode (0.11.0) — bare
portlessauto-discovers dev scripts frompackage.json. Multi-app monorepos get automatic subdomain assignment; Turborepo task-graph integration is wired in.portless.jsonconfig file supported.--scriptoverrides the default "dev" script. portless prune— removes orphaned dev servers and stale Tailscale registrations.portless clean(extended) — now also tears down Tailscale registrations alongside CA + hosts cleanup.- Rsbuild + VitePlus auto-port injection — same auto-wiring as Vite/Next.
- State directory moved to
~/.portless(was scattered). - HTTPS on 443 by default (breaking from 0.9.x http:1355). Valid cert, no setup.
--no-tlsreverts. NODE_EXTRA_CA_CERTSauto-injected (0.10.2) into child processes — node HTTPS calls trust portless CA with zero setup.--wildcardsubdomains —https://*.myapp.localhostfor multi-tenant / preview routing.portless alias <name> <port>— map a docker-compose / emulate port to a named URL without a long-runningrunprocess.portless clean— full teardown: stops proxy, removes CA, wipes state, cleans/etc/hosts.--lanmode — mDNS.localhostnames reachable across wifi (phone, tablet, other machines) without router config.- Fixed app ports —
--app-port 3000/PORTLESS_APP_PORTfor tools that need a known port (debuggers, docker). - hosts-sync on by default for Safari compat (disable with
PORTLESS_SYNC_HOSTS=0). - HTTP/2 HMR fixes for Vite/VitePlus/Next.js dev — websocket upgrades no longer break under h2.
- Expo / React Native support —
portless run expo startgives Metro a stable URL for device QR codes.
When to Use
- Starting a dev server that agents or browser tests will target
- Running multiple services locally (API + frontend + docs)
- Working in git worktrees (branch-named subdomains)
- Local OAuth flows (stable callback URLs)
- Connecting emulate API mocks to named URLs
Quick Start
# Instead of: npm run dev (random port)
portless run npm run dev
# → https://myapp.localhost (stable, named, HTTPS on 443 — default in 0.10+)
# Multi-service
portless run --name api npm run dev:api
portless run --name web npm run dev:web
# → https://api.localhost, https://web.localhost
# LAN mode (0.10.0) — reachable from phone/tablet via mDNS
portless proxy start --lan
portless run npm run dev
# → https://myapp.local (resolves across the local network, no router config)
# Full teardown (0.10.1) — stops proxy, removes CA, wipes state, cleans /etc/hosts
portless clean
# Boot persistence (0.13.0) — install native startup service (launchd / systemd / Task Scheduler)
portless service install
portless service status
# Removed automatically by `portless clean`, or explicitly:
portless service uninstall
0.10.x breaking change: default switched from
https://app.localhosttohttps://app.localhoston port 443. Use--no-tlsto revert.NODE_EXTRA_CA_CERTSis injected into child processes automatically (0.10.2) — no manual cert setup./etc/hostsis synced automatically for Safari; disable withPORTLESS_SYNC_HOSTS=0.
Framework-Specific Setup
Load
Read("${CLAUDE_SKILL_DIR}/references/framework-integration.md")for full framework recipes.
Most frameworks (Next.js, Vite, Express) work with portless run <cmd>. Some need explicit flags:
| Framework | Auto-detected? | Extra flags needed |
|---|---|---|
| Next.js | Yes | None |
| Vite / Astro | Yes | None |
| Express / Fastify / Hono | Yes | None (reads PORT env var) |
| Ruby on Rails | Yes | None |
| FastAPI / uvicorn | No | --port $PORT --host $HOST |
| Django | No | $HOST:$PORT positional arg |
Why .localhost?
| Feature | .localhost (RFC 6761) | 127.0.0.1:PORT | /etc/hosts hack |
|---|---|---|---|
No /etc/hosts editing | Yes | Yes | No |
| HTTPS with valid cert | Yes | No | Manual |
| Wildcard subdomains | Yes | No | No |
| Works in all browsers | Yes | Yes | Varies |
| Cookie isolation per service | Yes | No | Yes |
| No port conflicts | Yes | No | Yes |
Key Environment Variables
When portless runs your command, it injects:
| Variable | Value | Use in agents |
|---|---|---|
PORT | Assigned ephemeral port (4000-4999) | Internal only |
HOST | 127.0.0.1 | Internal only |
PORTLESS_URL | https://myapp.localhost | Use this in agent prompts |
NODE_EXTRA_CA_CERTS | Path to portless CA (auto-injected 0.10.2) | Child node processes trust portless certs without setup |
Toggle env vars
| Variable | Effect |
|---|---|
PORTLESS=0 | Bypass portless entirely (CI) |
PORTLESS_SYNC_HOSTS=0 | Disable auto /etc/hosts sync (default: on in 0.10.1+) |
PORTLESS_STATE_DIR | Override state dir (default: ~/.portless or /tmp/portless for privileged ports) |
OrchestKit Integration Patterns
1. Agent-Accessible Dev Server
# Start with portless, then agents can target PORTLESS_URL
portless run npm run dev
# In ork:expect or agent-browser:
agent-browser open $PORTLESS_URL
2. Emulate + Portless (Named API Mocks)
# Register emulate ports as named aliases
portless alias github-api 4001
portless alias vercel-api 4000
portless alias google-api 4002
# Now agents can target:
# https://github-api.localhost — GitHub emulator
# https://vercel-api.localhost — Vercel emulator
3. Git Worktree Dev
# In worktree for feature/auth-flow:
portless run npm run dev
# → https://auth-flow.myapp.localhost (auto branch prefix)
4. Bypass in CI
# Disable portless in CI — direct port access
PORTLESS=0 npm run dev
Anti-Patterns
| Don't | Do Instead |
|---|---|
Hardcode localhost:3000 in tests | Use PORTLESS_URL or process.env.PORTLESS_URL |
| Run portless in CI | Set PORTLESS=0 in CI environments |
| Use numeric ports in AGENTS.md | Document the portless URL |
References
| File | Content |
|---|---|
references/upstream.md | Full portless CLI reference (synced from Vercel) |
references/upstream-oauth.md | OAuth callback patterns with stable URLs |
references/framework-integration.md | Framework recipes (FastAPI, Django, Docker, gotchas) |
checklists/new-project-setup.md | Step-by-step: add portless to a new project |
Вставить в README
Ссылка на карточку для вашего README — без картинок и счётчиков.
[DarkPlay: portless](https://darkplay.ru/ai/skills/yonatangross-orchestkit-portless)
Из того же репозитория
Похожие скиллы и другие разделы каталога
Самые востребованные скиллов раздела по установкам и звёздам.
find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.Соседние разделы каталога: возможно, нужный инструмент живёт там.
brownfield-code-surgeonanthropics · Рабочий процесс по Майклу Фезерсу для работы с легаси-кодом в контексте агентного кодинга.
ceramic-searchanthropics · Плагин поиска Ceramic — качественного веб-поиска для ИИ-агентов; подключается к…
commit-pluginanthropics · Создаёт git-коммит и автоматически генерирует сообщение по Google Engineering Practices…
cost-guardanthropics · Контроль расходов в USD в реальном времени для Claude Code. Останавливает зацикленные…
cybrix-deployanthropics · Деплой статических сайтов на живой HTTPS-URL через хостинг Cybrix. Определяет Next.js…
datahub-skillsanthropics · Навыки агента для планирования и проверки коннекторов DataHub.
dj-claudeanthropics · Живая музыка и мультиагентные джем-сессии в Claude Code через слэш-команды и…
docpleranthropics · Конвертация корейских документов HWP в Markdown через быстрый CLI на Rust прямо в Claude…
duckdb-skillsanthropics · Исследование данных на DuckDB из Claude Code: чтение и SQL-запросы к CSV, JSON, Parquet…
eigenfluxanthropics · MCP-сервер на stdio, который доставляет обновления ленты и личных сообщений EigenFlux в…Лучшие ИИ-инструменты для программирования
Подборка нейросетей и ИИ-ассистентов для разработки и автоматизации кода. Сервисы, которые ускоряют написание, ревью и отладку, экономят часы рутины и снижают порог входа в сложные
GenAPIGenapi
Notepad++ AINotepad-plus-plus
Creatium MaxCremax
Emacs AIGnu
KiteKite
Amazon Q DeveloperAmazonЛучшие ИИ-инструменты для автоматизации и ассистентов
Подборка ИИ-ассистентов для автоматизации рутины и ускорения рабочих процессов. Сервисы, которые берут на себя переписку, анализ данных, ведение базы знаний и подготовку продаж, эк
Give Me Public
AITunnelAitunnel
STIVAStiva
Wikibot (Викибот)Wikibot
mymeet.aiMymeet
InsighterInsighter
TGHuntTghunt
LegiscanLegiscan
RouterAIRouterai
Wikibot 1.0 (Викибот)WikibotЛучшие ИИ-инструменты для генерации видео
Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,
VEED.IOVeed
MootionMootion
Sora (OpenAI)OpenAI
viralpulse.appViralpulse
Viral Maker AIViral-maker