protected-vercel-deployments
Ce qu’il fait
Cette skill aide l'IA à accéder aux déploiements Vercel qui exigent une connexion Vercel, avec votre propre identité. Elle s'adresse aux développeurs qui ont besoin de tester des prévisualisations privées.
Quand l’utiliser
- ✓Quand un lien de prévisualisation vous renvoie vers une page de connexion Vercel et que vous devez le tester.
- ✓Quand une page renvoie une erreur 401 ou 403 à cause de la protection de déploiement Vercel.
- ✓Quand vous voulez éviter de rendre un site de prévisualisation public juste pour le tester.
Lien du skill
https://github.com/vercel-labs/agent-browser/blob/main/skill-data/protected-vercel-deployments/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Mon lien de prévisualisation redirige vers une page de connexion Vercel. Pouvez-vous m'aider à l'ouvrir avec le navigateur et faire une capture d'écran ?”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
L'IA utilise votre identité de la CLI Vercel pour créer un jeton de courte durée pour le projet, puis transmet ce jeton à la session du navigateur pour que la page s'ouvre.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis 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
Questions fréquentes
Cela modifie-t-il les paramètres de déploiement ?
Non. La skill indique de ne pas désactiver la protection de déploiement et de ne pas rendre le déploiement public.
Quelle version de la CLI Vercel est nécessaire ?
La skill exige la version 53.3.0 ou plus récente de la CLI Vercel avant de créer un jeton.
Ai-je besoin d'un secret de contournement statique ?
Non. La skill déconseille d'en demander un d'abord et utilise à la place un jeton OIDC de courte durée.
Détails
Description originale de l’auteur
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.
Popularité
- Étoiles GitHub
- 45k
- Position au classement
- #6360
- Licence
- Apache-2.0
- Mis à jour
- 01/11/2026
Commentaires
- …
Autres skills de ce dépôt
technical-writer
45kApprend à votre agent à rédiger et corriger une documentation pour développeurs, comme des guides, des références d'API et des pages de dépannage, claire et exacte.
agentcore
45kPermet à votre agent d'automatiser un navigateur dans le cloud AWS Bedrock AgentCore, avec votre connexion AWS existante et les mêmes commandes que Chrome.
core
45kApprend à votre agent à piloter un navigateur web avec des instantanés et des références d'éléments, pour ouvrir des pages, cliquer, remplir des formulaires et lire du contenu.
derive-client
45kApprend à votre agent à enregistrer une fois le trafic réseau d'un site web, puis à construire un client autonome qui appelle son API interne sans navigateur.
Skills similaires
openclaw-update
394kAide votre agent à mettre à jour une passerelle OpenClaw existante, en choisissant la méthode adaptée à son installation et en gardant votre session active.
diagnose-gateway
394kAide votre agent à trouver pourquoi votre passerelle OpenClaw échoue, en vérifiant les paramètres, les canaux et les ports sans rien modifier.
crabbox-apps
394kAide votre agent à ouvrir et exécuter une application sur une machine cloud temporaire, puis à afficher sa vue dans le panneau latéral de votre chat.