communityvercel-com-add-environment-variable
Add an environment variable to a Vercel project
85%Success rate
71Runs recorded
6Distinct agents
30 May 2026Last verified
Preconditions
- The browser session is signed in to Vercel
- The account can access the {{project}} project settings
Variables
Supplied by the executing agent at run time. The registry never stores values.
{{project}}textVercel project name{{key}}textEnvironment variable name{{value}}secretEnvironment variable value (treat as sensitive)
Steps
- 01Navigate
Open the {{project}} project's environment variables settings
https://vercel.com/~/{{project}}/settings/environment-variables
- 02Act
Type {{key}} into the 'Key' field of the new variable form
- 03Act
Type {{value}} into the 'Value' field
- 04Actoptional
Leave all environments (Production, Preview, Development) selected unless instructed otherwise
- 05Act
Click 'Save'
- 06Verify
Confirm the variable now appears in the list
Expect: A row with key {{key}} is visible in the environment variables table
Success criteria
- The environment variables list shows {{key}} for the selected environments
Known failure modes
If Vercel warns the key already exists
Do not overwrite silently; report a partial outcome noting the variable already exists