2026-12-04 18:21 UTC
DANGMUAAI & Developer Tools, Decoded
BackDev Tools

Vercel CLI Now Takes OIDC Tokens Instead of Long-Lived PATs

Vercel's CLI can now exchange OIDC tokens from trusted workloads for short-lived access tokens. One caveat decides how big your migration actually is.

DangMua EditorialDec 04, 20263 min read
Vercel CLI Now Takes OIDC Tokens Instead of Long-Lived PATs

Vercel shipped OIDC token exchange for its CLI on December 4, 2026, letting trusted workloads trade an OIDC token for a short-lived CLI access token instead of carrying a long-lived Personal Access Token.

The changelog names GitHub workflows as one of those trusted workloads, and calls the pattern by its standard name: Workload Identity Federation (WIF). Vercel describes it as "a more secure alternative to long-lived Personal Access Tokens (PATs)," and recommends migrating CI/CD workflows from PATs to OIDC.

What actually changed

The unit of trust moves. In Vercel's words, "Your team's OIDC policies control what these tokens can do, not a specific team member or their role, and each token grants only what its policy allows."

That sentence is the whole release. A PAT in CI is a person's credential doing a machine's job: it inherits that member's role, it outlives the job that used it, and it keeps working after the person changes teams or leaves. An exchanged token is scoped by a policy you wrote for the workload, and it is short-lived by construction.

Turning it on

Vercel points to two entry points. You add a Vercel CLI policy under Settings → Build and Deployment → OIDC Policies, or you use the new vercel oidc-policies command. The policy is the thing that defines what an exchanged token may do, so it is where the review effort belongs — not in the exchange step, which is mechanical.

The caveat worth reading before you rip out PATs

Vercel states plainly that some CLI commands still require a user token. It does not enumerate which ones in the changelog, so treat that as the thing to test rather than assume.

The practical consequence for a migration: this is not a one-line swap of an environment variable in your workflow file. Inventory what your pipelines actually run through the Vercel CLI, move the commands that work under an exchanged token first, and keep a narrowly scoped PAT alive only for the commands that still demand one — with a note in the repo explaining why it survived, so it does not quietly become permanent.

Why this keeps showing up

This is analysis rather than anything Vercel claimed: long-lived platform tokens in CI are one of the most durable soft spots in a deployment pipeline, because they sit in a secret store, they are rarely rotated, and nothing about them expires on its own. Any vendor that offers a federated, policy-scoped alternative is removing a standing credential from your repo's blast radius. The migration cost is mostly inventory work, and the reward is that a leaked build log stops being a long-term liability.

What to do this week

Open your deploy workflow and find the Vercel PAT. Then add a CLI policy under Settings → Build and Deployment → OIDC Policies, run your pipeline against an exchanged token in a branch, and log which commands reject it. That list is your real migration scope, and it is the detail the changelog leaves for you to discover.

More from DangMua