/access-protected-vercel-deployment
Access and test Vercel deployments protected by Vercel Authentication, SSO, or Deployment Protection. Use when curl, agent-browser, Playwright, or another automated request reaches a Vercel login or protection page; when a protected preview or production URL returns 401 or 403;
$ npx -y skills add vercel-labs/vercel-plugin --skill access-protected-vercel-deployment --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/access-protected-vercel-deployment
Context preview
The summary Claude sees to decide when to auto-load this skill.
Access and test Vercel deployments protected by Vercel Authentication, SSO, or Deployment Protection. Use when curl, agent-browser, Playwright, or another automated request reaches a Vercel login or protection page; when a protected preview or production URL returns 401 or 403;
SKILL.md
access-protected-vercel-deployment.SKILL.mdname: access-protected-vercel-deployment
description: Access and test Vercel deployments protected by Vercel Authentication, SSO, or Deployment Protection. Use when curl, agent-browser, Playwright, or another automated request reaches a Vercel login or protection page; when a protected preview or production URL returns 401 or 403; when TRUSTED_SOURCES_ENVIRONMENT_MISMATCH appears; or when choosing between `vercel curl` and the `x-vercel-trusted-oidc-idp-token` header.
summary: Access protected Vercel URLs with vercel curl or a short-lived OIDC token
metadata:
priority: 8
docs:
- "https://vercel.com/docs/cli/curl"
- "https://vercel.com/docs/deployment-protection/methods-to-bypass-deployment-protection/trusted-sources"
- "https://vercel.com/docs/oidc#in-local-development"
sitemap: "https://vercel.com/sitemap/docs.xml"
pathPatterns: []
bashPatterns:
# Match vc curl for every hostname, including custom aliases.
- '\b(?:vercel|vc)\s+curl\b'
# Keep raw clients scoped to hostnames that identify themselves as Vercel.
- '\b(?:curl|wget)\b[^\n]*\.vercel\.app\b'
- '\bagent-browser\b[^\n]*(?:open|navigate|goto)[^\n]*\.vercel\.app\b'
# Match custom aliases when the request includes an explicit Vercel protection header.
- '\bx-vercel-(?:trusted-oidc-idp-token|protection-bypass)\b'
importPatterns: []
promptSignals:
phrases:
- "access protected vercel deployment"
- "protected vercel deployment"
- "deployment protection"
- "vercel sso"
- "vercel authentication page"
- "behind vercel authentication"
- "behind vercel sso"
- "x-vercel-trusted-oidc-idp-token"
- "trusted_sources_environment_mismatch"
- "trusted sources environment mismatch"
- "protection bypass"
allOf:
- [vercel, protected]
- [vercel, sso]
- [vercel, "403"]
- [deployment, login]
- [preview, protected]
- [production, protected]
anyOf:
- "deployment"
- "preview"
- "production"
- "curl"
- "browser"
- "authentication"
noneOf:
- "aws deployment protection"
- "github deployment protection"
- "kubernetes deployment protection"
minScore: 6
retrieval:
aliases:
- protected Vercel deployment
- Vercel SSO bypass
- Vercel deployment authentication
- Vercel Trusted Sources
intents:
- access a protected deployment
- test a protected preview
- verify a protected production deployment
- authenticate browser automation to Vercel
entities:
- vercel curl
- VERCEL_OIDC_TOKEN
- x-vercel-trusted-oidc-idp-token
- Trusted Sources
- Deployment Protection
examples:
- preview is behind Vercel SSO
- curl this protected Vercel deployment
- access a protected Vercel deployment through a custom domain
- open the protected production URL in agent-browserAccess Protected Vercel Deployments
Use the caller's existing Vercel authentication. Do not disable Deployment Protection or ask for a long-lived bypass secret as the first solution.
Choose the access path
HTTP requests: use `vercel curl`
For response bodies, headers, health checks, and API calls, replace raw `curl` with `vercel curl` (`vc curl`). It accepts native curl options and uses Vercel authentication to access protected preview and production deployments.
vc curl https://my-app.vercel.app/api/health
vc curl https://app.example.com/api/health
vc curl my-app.vercel.app/api/users -X POST \
-H "Content-Type: application/json" \
-d '{"name":"Ada"}'
vc curl /api/healthThe path-only form targets the linked project's production deployment. Pass a full URL when the exact deployment matters.
If authentication fails, check the local identity and project before changing protection settings:
vc whoami
Inspect `.vercel/project.json` to confirm the linked project and team. Run `vc link` only when the directory is not linked or is linked to the wrong project. Run `vc login` only when the CLI reports that no authenticated user is available.
Browser automation: attach the development OIDC token as a header
Browser requests must include the short-lived local token as a request header:
x-vercel-trusted-oidc-idp-token: <VERCEL_OIDC_TOKEN>
Use a browser tool that supports origin-scoped request headers. With `agent-browser`, inject development variables without printing or persisting the token:
vc env run -- sh -c \
'test -n "$VERCEL_OIDC_TOKEN" && agent-browser open "$1" --headers "{\"x-vercel-trusted-oidc-idp-token\":\"$VERCEL_OIDC_TOKEN\"}"' \
sh https://my-app.vercel.appThen continue the normal browser workflow in the same session. For Playwright or another browser driver, set the same header in the browser context's extra HTTP headers before the first navigation.
If the local CLI version does not provide the token through `vc env run`, refresh local development credentials with:
vc env pull .env.local --yes
Load the file through the project's existing dotenv mechanism. Never print the token, paste its value into source code, or commit `.env.local`.
Use `x-vercel-trusted-oidc-idp-token` for Trusted Sources. Do not substitute `x-vercel-oidc-token`; that header carries an OIDC token into a Vercel Function and serves a different purpose.
Trusted Sources rules
A local development token for a linked Vercel project can access that same project's Preview deployments by default. It does not automatically access protected Production deployments. For protected Production, the project's own Trusted Sources entry must allow `development` → `production`.
Do not ask the user to configure Trusted Sources for the normal same-project Preview case.
Configuration is needed when:
- the target is a protected Production deployment and the caller uses a local development token;
- the caller belongs to another Vercel project or team;
- the ta
Read more
name: access-protected-vercel-deployment
description: Access and test Vercel deployments protected by Vercel Authentication, SSO, or Deployment Protection. Use when curl, agent-browser, Playwright, or another automated request reaches a Vercel login or protection page; when a protected preview or production URL returns 401 or 403; when TRUSTED_SOURCES_ENVIRONMENT_MISMATCH appears; or when choosing between `vercel curl` and the `x-vercel-trusted-oidc-idp-token` header.
summary: Access protected Vercel URLs with vercel curl or a short-lived OIDC token
metadata:
priority: 8
docs:
- "https://vercel.com/docs/cli/curl"
- "https://vercel.com/docs/deployment-protection/methods-to-bypass-deployment-protection/trusted-sources"
- "https://vercel.com/docs/oidc#in-local-development"
sitemap: "https://vercel.com/sitemap/docs.xml"
pathPatterns: []
bashPatterns:
# Match vc curl for every hostname, including custom aliases.
- '\b(?:vercel|vc)\s+curl\b'
# Keep raw clients scoped to hostnames that identify themselves as Vercel.
- '\b(?:curl|wget)\b[^\n]*\.vercel\.app\b'
- '\bagent-browser\b[^\n]*(?:open|navigate|goto)[^\n]*\.vercel\.app\b'
# Match custom aliases when the request includes an explicit Vercel protection header.
- '\bx-vercel-(?:trusted-oidc-idp-token|protection-bypass)\b'
importPatterns: []
promptSignals:
phrases:
- "access protected vercel deployment"
- "protected vercel deployment"
- "deployment protection"
- "vercel sso"
- "vercel authentication page"
- "behind vercel authentication"
- "behind vercel sso"
- "x-vercel-trusted-oidc-idp-token"
- "trusted_sources_environment_mismatch"
- "trusted sources environment mismatch"
- "protection bypass"
allOf:
- [vercel, protected]
- [vercel, sso]
- [vercel, "403"]
- [deployment, login]
- [preview, protected]
- [production, protected]
anyOf:
- "deployment"
- "preview"
- "production"
- "curl"
- "browser"
- "authentication"
noneOf:
- "aws deployment protection"
- "github deployment protection"
- "kubernetes deployment protection"
minScore: 6
retrieval:
aliases:
- protected Vercel deployment
- Vercel SSO bypass
- Vercel deployment authentication
- Vercel Trusted Sources
intents:
- access a protected deployment
- test a protected preview
- verify a protected production deployment
- authenticate browser automation to Vercel
entities:
- vercel curl
- VERCEL_OIDC_TOKEN
- x-vercel-trusted-oidc-idp-token
- Trusted Sources
- Deployment Protection
examples:
- preview is behind Vercel SSO
- curl this protected Vercel deployment
- access a protected Vercel deployment through a custom domain
- open the protected production URL in agent-browserAccess Protected Vercel Deployments
Use the caller's existing Vercel authentication. Do not disable Deployment Protection or ask for a long-lived bypass secret as the first solution.
Choose the access path
HTTP requests: use `vercel curl`
For response bodies, headers, health checks, and API calls, replace raw `curl` with `vercel curl` (`vc curl`). It accepts native curl options and uses Vercel authentication to access protected preview and production deployments.
vc curl https://my-app.vercel.app/api/health
vc curl https://app.example.com/api/health
vc curl my-app.vercel.app/api/users -X POST \
-H "Content-Type: application/json" \
-d '{"name":"Ada"}'
vc curl /api/healthThe path-only form targets the linked project's production deployment. Pass a full URL when the exact deployment matters.
If authentication fails, check the local identity and project before changing protection settings:
vc whoami
Inspect `.vercel/project.json` to confirm the linked project and team. Run `vc link` only when the directory is not linked or is linked to the wrong project. Run `vc login` only when the CLI reports that no authenticated user is available.
Browser automation: attach the development OIDC token as a header
Browser requests must include the short-lived local token as a request header:
x-vercel-trusted-oidc-idp-token: <VERCEL_OIDC_TOKEN>
Use a browser tool that supports origin-scoped request headers. With `agent-browser`, inject development variables without printing or persisting the token:
vc env run -- sh -c \
'test -n "$VERCEL_OIDC_TOKEN" && agent-browser open "$1" --headers "{\"x-vercel-trusted-oidc-idp-token\":\"$VERCEL_OIDC_TOKEN\"}"' \
sh https://my-app.vercel.appThen continue the normal browser workflow in the same session. For Playwright or another browser driver, set the same header in the browser context's extra HTTP headers before the first navigation.
If the local CLI version does not provide the token through `vc env run`, refresh local development credentials with:
vc env pull .env.local --yes
Load the file through the project's existing dotenv mechanism. Never print the token, paste its value into source code, or commit `.env.local`.
Use `x-vercel-trusted-oidc-idp-token` for Trusted Sources. Do not substitute `x-vercel-oidc-token`; that header carries an OIDC token into a Vercel Function and serves a different purpose.
Trusted Sources rules
A local development token for a linked Vercel project can access that same project's Preview deployments by default. It does not automatically access protected Production deployments. For protected Production, the project's own Trusted Sources entry must allow `development` → `production`.
Do not ask the user to configure Trusted Sources for the normal same-project Preview case.
Configuration is needed when:
- the target is a protected Production deployment and the caller uses a local development token;
- the caller belongs to another Vercel project or team;
- the ta
Comprehensive Vercel ecosystem plugin — relational knowledge graph, skills for every major product, specialized agents, and Vercel conventions. Turns any AI agent into a Vercel expert.
Repo: vercel-labs/vercel-plugin
Other skills on vercel.
- /benchmark-agents
Advanced AI agent benchmark scenarios that push Vercel's cutting-edge platform features — Workflow DevKit, AI Gateway, MCP, Chat SDK, Queues, Flags, Sandbox, and multi-agent orchestration. Designed to stress-test skill injection for complex, multi-system builds.
Open skill - /benchmark-e2e
End-to-end benchmark suite for vercel-plugin. Runs realistic projects through skill injection, launches dev servers, verifies everything works, analyzes conversation logs, and produces an improvement report for overnight self-improvement loops.
Open skill - /benchmark-sandbox
Run vercel-plugin eval scenarios in Vercel Sandboxes instead of local WezTerm panels. Provisions ephemeral microVMs with Claude Code + plugin pre-installed, runs benchmark prompts, extracts hook artifacts, and produces coverage reports.
Open skill - /benchmark-testing
Create and launch benchmark test projects to exercise vercel-plugin skill injection across realistic scenarios. Sets up isolated directories, installs the plugin, and spawns WezTerm panes running Claude Code with crafted prompts.
Open skill - /plugin-audit
Audit vercel-plugin performance on real-world projects. Extracts tool calls from Claude Code conversation logs, tests hook matching against actual inputs, identifies pattern coverage gaps, and checks plugin cache staleness. Use when asked to audit, test, or investigate plugin
Open skill - /release
Release vercel-plugin — run gates, bump version, generate artifacts, commit, and push. Use when asked to "release", "ship", "bump and push", or "cut a release".
Open skill

