登录 注册
AI 应用与 AI Agent
12,892
Stars
451
Forks
22
Watchers
129
Open Issues
Apache-2.0
许可证
TypeScript
语言
2026-02-15
创建时间
2026-11-11
最近更新

项目能做什么

使用稳定命名的本地 URL 替代端口号,方便开发者和 Agent 访问与调试。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# portless

Replace port numbers with stable, named .localhost URLs for local development. For humans and agents.

<p>
  <a href="https://vercel.com/labs#labs-products"><img alt="Vercel Labs Product" src="https://img.shields.io/badge/LABS-PRODUCT-0a0a0a.svg?style=for-the-badge&amp;logo=Vercel&amp;labelColor=000000" height="28"></a>
  <a href="https://www.npmjs.com/package/portless"><img alt="npm version: portless" src="https://img.shields.io/npm/v/portless.svg?style=for-the-badge&amp;labelColor=000000" height="28"></a>
  <a href="https://github.com/vercel-labs/portless/blob/main/LICENSE"><img alt="License: Apache-2.0" src="https://img.shields.io/github/license/vercel-labs/portless.svg?style=for-the-badge&amp;labelColor=000000" height="28"></a>
  <a href="https://www.npmjs.com/package/portless"><img alt="npm downloads per month: portless" src="https://img.shields.io/npm/dm/portless.svg?style=for-the-badge&amp;labelColor=000000&amp;label=npm%20downloads" height="28"></a>
  <a href="https://skills.sh/vercel-labs/portless"><img alt="skills.sh" src="https://skills.sh/b/vercel-labs/portless?style=for-the-badge" height="28"></a>
</p>

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

portless runs a local reverse proxy and gives each dev server a name. Your app listens on a free port that portless assigns, and you open `https://<name>.localhost` instead of remembering which port it took. The URL stays the same across restarts, so bookmarks, cookies, OAuth redirects, and an agent's test script keep pointing at the right app.

## Install

```bash
npm install -g portless
```

To pin the version per project, install it as a dev dependency with `npm install -D portless`. portless is pre-1.0, so contributors may run different versions, and a change to the state directory format between releases can require running `portless trust` again.

## Quick start

From a project with a `"dev"` script in `package.json`:

```bash
portless
# -> runs "dev", https://<project>.localhost
```

The name comes from `package.json`, the git root, or the directory. Pass a name and a command to choose both:

```bash
portless myapp next dev
# -> https://myapp.localhost
```

- The proxy starts on the first run. It serves HTTPS with HTTP/2 on port 443, so the first run creates a local certificate authority, adds it to the system trust store, and may ask for `sudo`. Use `--no-tls` for plain HTTP, or `--unprivileged` to skip `sudo` ([Unprivileged mode](https://portless.sh/commands#unprivileged-mode)).
- `portless run <cmd>` infers the name and detects git worktrees. In a linked worktree, the last `/` segment of the branch becomes a subdomain, so `fix-ui.myapp.localhost` and `myapp.localhost` run side by side. Use `--prefix` or `PORTLESS_PREFIX` to set the label, or [configure the label style and hostname template](https://portless.sh/configuration#worktree-hostnames).
- A name with dots is a subdomain:
阅读完整原文

商业机会分析 AI 生成

团队级本地开发网关与隧道协作平台 (Team Dev Mesh)

产品构想基于 portless 扩展团队协作层,允许开发者通过统一域名互相访问本地环境,并与 ngrok/Cloudflare/Tailscale 深度打通,提供团队级权限控制与统一入口。
核心功能团队内部统一虚拟顶级域名解析、一键生成安全外部临时预览链接、与 SSO/OAuth 预配置打通、团队仪表盘管理各成员本地活跃路由
目标用户协同开发的前端与全栈团队、技术负责人、QA 测试人员
难度/周期中等 · 1-2 个月 · 成本:低(基础云端中继/控制面服务器)
收费模式按席位订阅制 SaaS(如 $8/人/月)
竞争风险竞品成熟(如 ngrok、Tailscale 本身已具备部分共享功能),需依赖极低的使用门槛建立壁垒
依据 AI推测

AI Agent 本地沙盒与开发环境环境编排器

产品构想针对 AI Coding Agent(如 Claude Code、Cursor、Devin)打造专属的本地服务路由与状态自愈管理插件,避免多 Agent 并行运行时端口踩踏与崩溃。
核心功能针对 Agent 自动分配稳定子域名、生命周期管理(超时自动关停释放)、HTTP 流量捕获与回放供 Agent 分析 Bug、API/CLI 接口供 Agent 自主探测可用服务
目标用户重度使用 AI 编程助手、编写自动化 Agent 测试流水线的开发者
难度/周期中等 · 1 个月 · 成本:极低(主要为客户端及开源工具包)
收费模式针对 Agentic 开发工具链的增值插件付费或企业 API 授权
竞争风险Agent 工具生态迭代过快,各平台原生沙盒方案可能直接内置类似功能
依据 已验证事实

跨平台桌面端控制面板 (GUI Client & Tooling)

产品构想为 portless 开发跨平台菜单栏/桌面管理工具,图形化管理证书、DNS/hosts 劫持、端口映射及一键集成反代隧道。
核心功能系统托盘管理各服务状态、一键开关 LAN 模式、可视化的证书安装排错与一键 Trust、流量日志实时查看
目标用户不习惯纯 CLI 操作的开发者、UI/UX 设计师、跨端联调测试人员
难度/周期低 · 2-3 周 · 成本:极低(主要是打包签名证书费用)
收费模式独立软件买断制(如 $19-$29 终身授权)或分发于 App Store / Setapp
竞争风险目标开发者群体对 CLI 接受度高,GUI 付费转化率可能有限
依据 数据支持的判断
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

项目中文简介Stars语言
Akryum/portless 中文介绍暂未生成
Easy local domains with superpowers
129 TypeScript
imaimai17468/imaimai-front-templete 中文介绍暂未生成
いまいまいのフロント用テンプレートです。
75 TypeScript
portless-rs/portless 中文介绍暂未生成
Replace port numbers with stable .localhost URLs for local d
42 Rust
mazrean/dockportless 中文介绍暂未生成
Local service router with automatic port assignment, like ve
30 Zig
ratazzi/coulson 中文介绍暂未生成
Pow-inspired local development gateway. Drop a project, get
29 Rust
biyan113/Portless 中文介绍暂未生成
Local dev service manager: ports → processes → projects → op
19 Dart
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。

项目优势与风险

技术成熟度创建于 2026-02-15,近 30 天仍在推送,发布过 49 个 Release
社区活跃Star 12,892 / Fork 451 / Issue 129(数据支持,可自行核实)
许可证Apache-2.0
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

快速开始(以仓库 README 为准)
git clone https://github.com/vercel-labs/portless.git
cd portless
# 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
阅读原仓库文档
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。