TechDeveloper toolsNotable

Vercel CLI can now authenticate CI jobs with OIDC tokens instead of long-lived personal access tokens

GitHub Actions and other CI/CD providers can exchange the OIDC token they issue for a short-lived Vercel CLI access token, limited by a team policy. Vercel recommends moving CI/CD off personal access tokens, but some commands still need a user token.

Promptea Editorial2 min read

Vercel announced on its changelog on December 4, 2026 that Vercel CLI now supports OIDC token exchange. Trusted workloads, including GitHub workflows, can exchange the OpenID Connect (OIDC) token their CI/CD provider issues for a short-lived Vercel CLI access token. Vercel calls the approach Workload Identity Federation (WIF) and describes it as a "more secure alternative to long-lived Personal Access Tokens." All the details in this article come from Vercel: the changelog entry and two pages of its documentation.

How it works

A team creates a Vercel CLI policy, an OIDC policy that states which workloads may authenticate and what they may do. Policies are added in the dashboard under Settings → Build and Deployment → OIDC Policies, or with the new vercel oidc-policies command, which has list, inspect, create, update and delete subcommands. Every policy must match the aud (audience) claim plus at least one claim that identifies the workload, such as repository for GitHub Actions, whose issuer is https://token.actions.githubusercontent.com. A policy can be narrowed to a workflow or branch and to specific projects; without --project it applies to all projects, current and future.

In a GitHub Actions job, the documented route is the vercel/authenticate-cli-action action (v1.0.0 in Vercel's example). The job needs the id-token: write permission; the action requests a GitHub OIDC token, exchanges it and sets VERCEL_TOKEN and VERCEL_ORG_ID for later steps. On other providers, the token can be exchanged with a POST to https://api.vercel.com/login/oauth/token using the OAuth token-exchange grant. The team ID (team_…) is required; Vercel CLI does not accept a team slug in VERCEL_ORG_ID.

What changes for teams that deploy from CI

  • No long-lived secret to store, leak or rotate in the CI provider: the token is short-lived, according to Vercel.
  • The token belongs to the team, not to a member, so it keeps working when people leave. Actions taken with it are attributed to Vercel CLI on the team.
  • Permissions are granted per command. Vercel notes that each selected command maps to the scopes it needs and the policy grants their union, so enabling one command can enable others. vercel oidc-policies inspect shows the exact permissions.
  • If more than one policy matches a token, the exchange fails with "Multiple OIDC policies matched." The policy ID can be passed to pick one.

The same OIDC policies also issue tokens for two other Vercel built-in apps, Turborepo CLI (Remote Cache) and Vercel Container Registry, according to the vercel oidc-policies documentation.

What is not covered

Vercel says it recommends moving CI/CD workflows from personal access tokens to OIDC, but that some CLI commands still require a user token. The changelog does not list those commands. Managing OIDC policies is one of them: the documentation says it requires a team member's credentials, so a token obtained through an OIDC exchange cannot run vercel oidc-policies. The announcement gives no minimum CLI version, no plan restrictions and no date for any change to personal access tokens. There is no independent coverage yet.

Why this matters

  • Deployment tokens stored as CI secrets are a common target in supply-chain attacks; a short-lived token scoped by repository, branch and project limits what a leaked credential can do.
  • Because permissions are the union of the scopes each command needs, teams should run vercel oidc-policies inspect instead of assuming a policy only allows the commands they ticked.
  • Exchanging CI identity tokens for cloud credentials is already the pattern on large clouds; Vercel's CLI now follows it, which simplifies pipelines that deploy AI apps from GitHub.

Key takeaways

  • Vercel CLI supports OIDC token exchange (Workload Identity Federation) since December 4, 2026.
  • Policies are managed in Settings → Build and Deployment → OIDC Policies or with vercel oidc-policies.
  • GitHub Actions jobs need id-token: write and the vercel/authenticate-cli-action action, which sets VERCEL_TOKEN and VERCEL_ORG_ID.
  • Some CLI commands still need a user token, including managing OIDC policies themselves.
Tags:
  • ci-cd
  • oidc
  • security
  • cli
  • github-actions
Companies:
  • Vercel