vercel
Deploy and manage applications on Vercel, including preview deployments and deployment protection. Use when working with Vercel-hosted projects or configuring Vercel deployments.
How do I install this agent skill?
npx skills add https://github.com/openhands/extensions --skill vercelIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill provides a comprehensive guide for managing Vercel deployments, including authentication bypass for preview environments and standard CLI command usage. It carries a low risk of indirect prompt injection through the processing of deployment logs and preview content.
- Socketpass
No alerts
- Snykfail
Risk: HIGH · 1 issue
- Runlayerpass
2/2 files flagged
What does this agent skill do?
Vercel Deployment Guide
Deployment Protection and Agent Access
Vercel deployments may have Deployment Protection enabled, which requires authentication to access preview deployments. This can block automated testing and agent access to preview URLs.
Identifying Protected Deployments
If you encounter a login page or authentication requirement when accessing a Vercel preview URL, the deployment has protection enabled. Signs include:
- Redirect to
vercel.com/loginor SSO login page - 401/403 errors when accessing the deployment
- Preview URLs that require Vercel team membership
Enabling Agent Access with Protection Bypass
To allow agents and automated systems to access protected deployments, users need to set up Protection Bypass for Automation:
-
Navigate to Project Settings
- Go to the Vercel Dashboard
- Select the project
- Click on Settings → Deployment Protection
-
Generate a Protection Bypass Secret
- Under "Protection Bypass for Automation", click Generate Secret
- Copy the generated secret securely
-
Using the Bypass Secret
The secret can be used in two ways:
As a Header:
curl -H "x-vercel-protection-bypass: <secret>" https://your-preview-url.vercel.appPowerShell equivalent:
Invoke-WebRequest -Headers @{ "x-vercel-protection-bypass" = "<secret>" } -Uri https://your-preview-url.vercel.appAs a Query Parameter:
https://your-preview-url.vercel.app?x-vercel-protection-bypass=<secret> -
For Browser-Based Testing
- Append
?x-vercel-protection-bypass=<secret>to the preview URL - The secret will be stored in a cookie for subsequent requests
- Append
Alternative: Disable Protection for Previews
If protection bypass is not suitable, users can disable protection for preview deployments:
- Go to Settings → Deployment Protection
- Set "Vercel Authentication" to Only Production Deployments or Disabled
Do NOT repeatedly attempt to access protected URLs without the bypass secret. </IMPORTANT>
Environment Variables
Set environment variables in Vercel Dashboard under Settings → Environment Variables, or use the Vercel CLI:
vercel env add MY_SECRET
Access in your application:
const secret = process.env.MY_SECRET;
Vercel CLI Commands
Common Vercel CLI commands:
# Login to Vercel
vercel login
# Deploy to preview
vercel
# Deploy to production
vercel --prod
# List deployments
vercel ls
# View deployment logs
vercel logs <deployment-url>
# Pull environment variables locally
vercel env pull
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/openhands/extensions/vercel">View vercel on skillZs</a>