Vercel CLI Can Now Deploy From CI Without a Stored Token
Swap the VERCEL_TOKEN secret in CI for a short-lived OIDC token, and check the policy's scopes, since one allowed command can enable others.

Vercel CLI can now authenticate from CI by trading the job’s OpenID Connect token for a short-lived Vercel access token, so a GitHub Actions workflow no longer needs a long-lived personal access token stored as a secret. Teams that switch take a stored credential that can deploy to production out of their repository settings (Vercel changelog, Dec. 4, 2026).
What Changed
Vercel calls the feature Workload Identity Federation. A team creates a Vercel CLI policy under Settings, Build and Deployment, OIDC Policies, or with the new vercel oidc-policies create command. The policy names the CI provider and the workload it trusts, such as one GitHub repository, workflow or branch, along with the projects and CLI commands it allows. Vercel’s docs say every policy must match the token’s aud claim plus at least one claim that identifies the workload.
In GitHub Actions, the vercel/authenticate-cli-action step requests the job’s OIDC token, exchanges it and sets VERCEL_TOKEN and VERCEL_ORG_ID for later steps. The job needs the id-token: write permission. Other providers can make the same exchange with a curl call to Vercel’s token endpoint once the policy names their issuer URL as a custom provider.
Unlike a personal access token, the exchanged token is short-lived, never stored and limited to what the policy grants, Vercel’s docs say. It also belongs to the team rather than a person, so CI keeps working after the engineer who set it up leaves. Vercel’s changelog said “some CLI commands still require a user token.”
Check the Scopes, Not the Command List
Vercel’s docs say a policy does not restrict the token to the commands selected. Each command maps to the permissions it needs, and the token gets all of them, “so enabling one command can enable others.” Read-write permissions include read access.
The policy form marks commands a selection turns on as “implicitly enabled” and shows the exact scopes the token receives. For an existing policy, vercel oidc-policies inspect prints the same list.
The Same Move Elsewhere
Supabase took on the same long-lived-token problem from the other side. On Oct. 6, Supabase made scoped personal access tokens generally available, limited by project and capability with an expiry of up to one year. Those tokens still sit in a secret store. Vercel’s exchange stores nothing.
The Take
Every Vercel team deploying from GitHub Actions should make this switch. Until now the VERCEL_TOKEN secret was a personal access token tied to one team member’s account. A policy pinned to one repository, the main branch and the deploy command means no other repository or branch can get a token from it.
Run vercel oidc-policies inspect before trusting a policy, because the scopes are what the token gets. That goes for the docs’ own example, which picks only deploy and env pull (production). Then revoke the old personal access token and delete the secret. Left in place, it still deploys.
Key Takeaways
- Since Dec. 4, Vercel CLI exchanges a CI job’s OIDC token for a short-lived team token, so no
VERCEL_TOKENsecret is stored. - GitHub Actions uses
vercel/authenticate-cli-actionwithid-token: write. Other providers can call the token endpoint withcurl. - Policy commands map to scopes, and one command can enable others. Check with
vercel oidc-policies inspect. - Some CLI commands still need a user token, Vercel said.


