protected-vercel-deployments
Qué hace
Esta skill ayuda a la IA a llegar a despliegues de Vercel que requieren un inicio de sesión de Vercel, usando tu propia identidad. Es para desarrolladores que necesitan probar vistas previas privadas.
Cuándo usarla
- ✓Cuando un enlace de vista previa te lleva a una página de inicio de sesión de Vercel y necesitas probarlo.
- ✓Cuando una página devuelve un error 401 o 403 por la protección de despliegues de Vercel.
- ✓Cuando quieres evitar hacer público un sitio de vista previa solo para probarlo.
Link de la skill
https://github.com/vercel-labs/agent-browser/blob/main/skill-data/protected-vercel-deployments/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Mi enlace de vista previa redirige a una página de inicio de sesión de Vercel. Ayúdame a abrirlo con el navegador y hacer una captura.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La IA usa tu identidad de la CLI de Vercel para crear un token de corta duración para el proyecto, y luego pasa ese token a la sesión del navegador para que la página pueda abrirse.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Protected Vercel deployments
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:
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:
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. 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; interactivevc loginrequires the user; - the installed Vercel CLI is older than
53.3.0and 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 protectioninstead 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:
x-vercel-trusted-oidc-idp-token: <VERCEL_OIDC_TOKEN>
Do not substitute x-vercel-oidc-token. That header carries workl
Preguntas frecuentes
¿Esto cambia la configuración del despliegue?
No. La skill dice que no hay que desactivar la protección de despliegues ni hacer público el despliegue.
¿Qué versión de la CLI de Vercel se necesita?
La skill requiere la versión 53.3.0 o posterior antes de crear un token.
¿Necesito un secreto de bypass estático?
No. La skill desaconseja pedirlo primero y usa en su lugar un token OIDC de corta duración.
Detalles
Descripción original del autor
Access and test Vercel deployments protected by Vercel Authentication, SSO, or Deployment Protection with agent-browser. Use when a preview or production URL redirects to a Vercel login page, returns a protection 401 or 403, or needs short-lived Trusted Sources OIDC authentication instead of a static bypass secret or public exception.
Popularidad
- Estrellas en GitHub
- 45 mil
- Posición en el ranking
- #6360
- Licencia
- Apache-2.0
- Actualizada
- 1/11/2026
Comentarios
- …
Más skills de este repositorio
technical-writer
45 milEnseña a tu agente a escribir y editar documentación para desarrolladores, como guías, referencias de API y páginas de solución de problemas, con una estructura clara y ejemplos precisos.
agentcore
45 milPermite que tu agente ejecute automatización de navegador en los navegadores en la nube de AWS Bedrock AgentCore, usando tu inicio de sesión de AWS, con los mismos comandos que Chrome local.
core
45 milEnseña a tu agente a controlar un navegador web con instantáneas y referencias de elementos, para abrir páginas, hacer clic, rellenar formularios y leer contenido.
derive-client
45 milEnseña a tu agente a grabar una vez el tráfico de red de un sitio web y después crear un cliente independiente que llame a su API interna sin navegador.
Skills parecidas
openclaw-update
394 milAyuda a tu agente a actualizar una Gateway de OpenClaw que ya existe, eligiendo el método de actualización que encaja con cómo se instaló y manteniendo tu sesión activa.
diagnose-gateway
394 milAyuda a tu agente a averiguar por qué falla tu Gateway de OpenClaw, revisando ajustes, canales y puertos sin cambiar nada.
crabbox-apps
394 milAyuda a tu agente a abrir y ejecutar una app en una máquina temporal en la nube y mostrar su vista en el panel lateral de tu chat.