Skip to content
vercel avatar

Env Vars

Vercel environment variable guidance covering .env file hierarchy, the vercel env CLI, and OIDC token lifecycle.

CCM score
72 of 100
skills.sh installs
422
GitHub stars
353
last updated
Jun 3, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers .env file load order, vercel env pull, add, update, ls, rm, and run commands with Secret and Config variable types
  • Includes a bootstrap flow for fresh clones, a .env.example key check, and rules for keeping secrets out of tracked files
  • Enforces that NEXT_PUBLIC_* and VITE_* variables are always Config, since they are exposed to browser bundles
  • Designed for developers managing Vercel project secrets, local .env.local setup, and short-lived OIDC tokens for AI Gateway access

Install

$ npx -y skills add vercel/vercel-plugin --skill env-vars -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Vercel Environment Variables

You are an expert in Vercel environment variable management — .env file conventions, the vercel env CLI, OIDC token lifecycle, and environment-specific configuration.

.env File Hierarchy

Vercel and Next.js load environment variables in a specific order. Later files override earlier ones:

FilePurposeGit-tracked?
.envDefault values for all environmentsYes
.env.localLocal overrides and secretsNo (gitignored)
.env.developmentDevelopment-specific defaultsYes
.env.development.localLocal dev overridesNo
.env.productionProduction-specific defaultsYes
.env.production.localLocal prod overridesNo
.env.testTest-specific defaultsYes
.env.test.localLocal test overridesNo

Load Order (Next.js)

  1. .env (lowest priority)
  2. .env.[environment] (development, production, or test)
  3. .env.local (skipped in test environment)
  4. .env.[environment].local (highest priority)

Critical Rules

Details

Repository
github.com/vercel/vercel-plugin
Categories
DevOps & Cloud, Backend & APIs
First seen
Jun 3, 2026

Questions

What does the env-vars skill do for Vercel projects?

The env-vars skill gives expert guidance on Vercel environment variable management, covering .env file conventions, the vercel env CLI, OIDC token lifecycle, and environment-specific configuration. It applies when working with .env files, Secret or Config variable types, or vercel env commands.

How do I install the env-vars skill?

Run npx -y skills add vercel/vercel-plugin --skill env-vars -y inside a project to install the env-vars skill. Once installed, the agent can use its guidance on pulling, adding, listing and removing Vercel environment variables.

Where does env-vars stand in the DevOps & Cloud category?

The env-vars skill is listed in the DevOps & Cloud category on Claude Marketplaces, alongside azure-diagnostics, azure-prepare, azure-deploy, azure-validate and azure-storage. Its focus is narrower than those, centered on Vercel environment variables rather than Azure services.

Does env-vars cover Secret and Config variable types?

Yes, env-vars explains the Secret and Config variable types, including which one to use for passwords and tokens versus readable values. It also covers the CLI flags that set the type and the rule that NEXT_PUBLIC_ variables are always Config.

More from vercel/vercel-plugin

All 25

Similar to Env Vars

More DevOps & Cloud