vercel 是什么?
vercel 指导agent-browser访问受Deployment Protection保护的Vercel页面,并在当前浏览器测试功能开关变体。优先使用现有身份签发短期OIDC令牌,认证与变体覆盖作用于当前请求,不为截图改变所有用户看到的项目配置。
中文说明由本站依据来源整理;英文原文保留在页面下方。
怎么接入你的 Agent?
- 定位完整 Skill 目录
打开本项目来源,核对
SKILL.md及其引用的脚本和资料。 - 交给你正在用的 Agent
在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。
- 确认识别,再做具体任务
让 Agent 回报安装目录和识别到的名称
vercel,然后按本页使用示例提供材料。
展开并复制给 Codex 的安装指令
安装并检查 vercel
请在 Codex 的当前工作环境中安装并检查 vercel 这个 Skill。
项目身份:vercel-labs/agent-browser / vercel
来源:https://github.com/vercel-labs/agent-browser/blob/53384771fbafc261ba67608ac806dd5aa70b84f0/skill-data/vercel/SKILL.md
已定位的源文件:skill-data/vercel/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Claude Code 的安装指令
安装并检查 vercel
请在 Claude Code 的当前工作环境中安装并检查 vercel 这个 Skill。
项目身份:vercel-labs/agent-browser / vercel
来源:https://github.com/vercel-labs/agent-browser/blob/53384771fbafc261ba67608ac806dd5aa70b84f0/skill-data/vercel/SKILL.md
已定位的源文件:skill-data/vercel/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Cursor 的安装指令
安装并检查 vercel
请在 Cursor Agent 的当前工作环境中安装并检查 vercel 这个 Skill。
项目身份:vercel-labs/agent-browser / vercel
来源:https://github.com/vercel-labs/agent-browser/blob/53384771fbafc261ba67608ac806dd5aa70b84f0/skill-data/vercel/SKILL.md
已定位的源文件:skill-data/vercel/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 当前 Agent 的安装指令
安装并检查 vercel
请在 当前 Agent 的当前工作环境中安装并检查 vercel 这个 Skill。
项目身份:vercel-labs/agent-browser / vercel
来源:https://github.com/vercel-labs/agent-browser/blob/53384771fbafc261ba67608ac806dd5aa70b84f0/skill-data/vercel/SKILL.md
已定位的源文件:skill-data/vercel/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。装好以后,具体怎么用?
准备哪些材料
- 确认目标项目、团队scope、部署环境和现有CLI身份。OIDC签发要求Vercel CLI至少53.3.0,旧版本存在令牌输出风险;变体覆盖流程要求更高CLI版本。
会得到什么
- 授权部署在指定会话中的实际页面检查与变体证据,或明确的身份/环境阻碍。
实际使用顺序
- 先检查whoami和CLI版本,核对已有项目关联;不要为取token擅自link。以短期令牌通过
x-vercel-trusted-oidc-idp-token请求头打开受保护URL,使用同一具名session继续。 - 同项目开发身份访问预览通常走默认self-access;跨项目/团队、生产或环境不匹配时,明确需要的Trusted Sources规则,交给有权限的人调整。
- 区分部署保护拒绝与应用自己的401/403。要查看其他flag变体时使用当前浏览器的加密override cookie,不直接改全环境的flag值。
- 核对实际页面出现目标变体;密钥环境不匹配时cookie可能被静默忽略。清cookie或关闭session后重新建立受保护访问。
从一个具体任务开始
本站根据源文件编写的使用示例,未在本站实际运行。示例中的文件由你提供。
复制一个具体任务
教学示例:请用vercel指南检查我已授权项目的受保护preview首页。先核对CLI版本和项目scope,使用短期OIDC访问并截图,不关闭Deployment Protection、不创建公开例外,也不改生产flag。预期区分保护层和应用层结果,密钥不出现在日志与截图中。本站未访问部署。
使用条件与边界
- Trusted Sources权限调整和静态secret启用/轮换都是访问控制变更,需要独立授权。
- 用于入站保护的header不同于传递给Function的x-vercel-oidc-token,不能互换。
常见问题
跳到Vercel登录页就是应用登录坏了吗?
未必。先看Deployment Protection是否接受请求,通过保护后应用自己的认证仍可能单独拒绝,两层不能混为一谈。
来源原文与资料状态
- 源文件
- 已保存 SKILL.md,抓取于 2026-11-16T12:36:35.145Z
- 中文使用说明
- 已针对下方源文件版本整理用途、用法和常见问题
- 安装与任务测试
- 本站未执行安装或任务测试
- 来源复核
- 本页中文用法已对照保存版本的完整 SKILL.md 阅读整理
展开 SKILL.md 原文、章节与历史收录资料
skill-data/vercel/SKILL.md · 抓取时间 2026-11-16T12:36:35.145Z
以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。
抓取成功不代表已完成安装或任务测试。
Access and test Vercel deployments with agent-browser, behind Deployment Protection or at a different feature flag variant. Use when a preview or production URL redirects to a Vercel login page, returns a protection 401 or 403, needs short-lived Trusted Sources OIDC authentication instead of a static bypass secret or public exception, or must be viewed with a Vercel feature flag set to another variant.
查看源文件章节 / Source sections
- 原文:Vercel deployments
- 原文:Deployment Protection
- 原文:Same-project preview
- 原文:Other environments and callers
- 原文:Human intervention boundaries
- 原文:Use the correct header
- 原文:Diagnose failures
- 原文:Static-secret fallback
- 原文:Feature flags
- 原文:Avoid dead ends
原文:Vercel deployments
Reach a Vercel deployment as the user asked to see it without changing what anyone else sees. Pass protection and flag overrides on this browser's requests; changing project settings or a flag's served variant needs explicit approval.
原文:Deployment Protection
Use the caller's existing Vercel identity and a short-lived OIDC token. Do not disable Deployment Protection, make the deployment public, or ask for a static bypass secret first.
原文:Same-project preview
A local development token for the target project can access that project's protected Preview deployments through the default Trusted Sources self-access rule. No Trusted Sources configuration is normally required. Confirm the local identity and Vercel CLI version: ```bash vc whoami vc --version ``` Require Vercel CLI `53.3.0` or newer before running `vc project token`. Versions `50.25.0` through `53.2.x` write the token to stderr, so command substitution captures nothing and the credential can appear in logs. If the installed version is older, stop and ask the user to upgrade it. Do not attempt to capture or recover the token from stderr. Set the target project and scope explicitly. If they cannot be inferred safely, ask the user. In a directory whose existing `.vercel/project.json` link has been verified against the target, `vc project token` without a project name is also valid. Do not run `vc link` merely to get an OIDC token: current Vercel CLI versions also pull development variables into `.env.local` when linking. Create a named browser session, mint a development OIDC token with the Vercel CLI, then inject it without printing or persisting it: ```bash export AGENT_BROWSER_SESSION="$(agent-browser session id --scope worktree --prefix vercel-preview)" export VERCEL_PREVIEW_URL="https://my-app.vercel.app" export VERCEL_PROJECT="my-app" export VERCEL_SCOPE="my-team" ( TOKEN="$(vc project token "$VERCEL_PROJECT" --scope "$VERCEL_SCOPE")" test -n "$TOKEN" agent-browser open "$VERCEL_PREVIEW_URL" --headers \ "{\"x-vercel-trusted-oidc-idp-token\":\"$TOKEN\"}" ) agent-browser snapshot -i ``` Continue the normal workflow in that same session. If your harness runs each command in a new shell, the exported `AGENT_BROWSER_SESSION` is gone afterwards, so pass the same name with `--session` on later commands. The header is scoped to the target origin and applies to the document, scripts, styles, fonts, and in-page requests. If the browser session is closed or restarted, repeat the authenticated `open` command. Never print the token, paste it into source, or save it in an environment file.
原文:Other environments and callers
Trusted Sources configuration is needed when: - a local development token must reach a protected Production deployment; - the caller belongs to another Vercel project or team; - the target project's self-access rules were customized; or - Vercel returns `TRUSTED_SOURCES_ENVIRONMENT_MISMATCH`. There is no supported Vercel CLI or public REST API for editing Trusted Sources rules. An authorized human must open the target project's **Settings → Deployment Protection → Trusted Sources** and add only the required caller and environment mapping. A local token has the `development` environment, so protected Production access requires `development` to `production`. Stop and hand off the exact rule to the human. Do not use browser automation to change access control, and do not broaden unrelated environment mappings. Retry the authenticated `open` after the human confirms the rule is saved.
原文:Human intervention boundaries
The same-project development to Preview path should run without human intervention when the Vercel CLI is already authenticated and the target project and scope are known. A human is needed only when: - the Vercel CLI has no authenticated identity and no existing `VERCEL_TOKEN`; interactive `vc login` requires the user; - the installed Vercel CLI is older than `53.3.0` and must be upgraded before token minting; - the correct target project or scope cannot be inferred safely for token minting; - a Trusted Sources rule must be added or changed; the dashboard is the only supported management surface, and this changes access control; - Secure Backend Access with OIDC Federation was disabled on the calling project and must be re-enabled in **Settings → Security**; or - the static-secret fallback must be enabled or rotated and the agent needs explicit authorization for that access-control change. After approval, the agent can use `vc project protection` instead of requiring dashboard interaction. The agent can diagnose each case and state the exact action required, then continue after the user confirms completion.
原文:Use the correct header
Send the Vercel-issued token as: ```text x-vercel-trusted-oidc-idp-token: <VERCEL_OIDC_TOKEN> ``` Do not substitute `x-vercel-oidc-token`. That header carries workload identity into a Vercel Function; it does not authenticate an inbound request through Deployment Protection.
文件 SHA256:43320c97b3817f2253990ef92576f65cf6f8208d4ec6b9b62b3402deda7d9bd9
仓库许可证记录:Apache-2.0;repository-license-recorded-scope-unverified,查看来源。
Access and test Vercel deployments with agent-browser, behind Deployment Protection or at a different feature flag variant. Use when a preview or production URL redirects to a Vercel login page, returns a protection 401 or 403, needs short-lived Trusted Sources OIDC authentication instead of a static bypass secret or public exception, or must be viewed with a Vercel feature flag set to another variant.
历史收录数据
| 来源仓库 | vercel-labs/agent-browser |
|---|---|
| Skill源路径 | skill-data/vercel/SKILL.md |
安装前请让使用的Agent先读取这个SKILL.md及其所在目录,确认依赖和所需权限。此页不生成未经来源验证的安装命令。
