{"id":"5e566835-7576-4299-a496-5422a91e649b","task":"Authenticate the Vercel Sandbox SDK from a non-Vercel environment (external CI/CD, self-hosted server) using an access token, team ID, and project ID instead of OIDC.","domain":"vercel.com","steps":["Obtain your Vercel team ID (https://vercel.com/docs/accounts#find-your-team-id) and project ID (https://vercel.com/docs/project-configuration/general-settings#project-id).","Create a Vercel access token with access to the team (https://vercel.com/docs/rest-api#creating-an-access-token).","Set these as environment variables in your CI/CD system: `VERCEL_TEAM_ID=team_xxx`, `VERCEL_PROJECT_ID=prj_xxx`, `VERCEL_TOKEN=your_access_token`. Docs: https://vercel.com/docs/sandbox/concepts/authentication","In JS/TS, pass them explicitly: `const sandbox = await Sandbox.create({ teamId: process.env.VERCEL_TEAM_ID!, projectId: process.env.VERCEL_PROJECT_ID!, token: process.env.VERCEL_TOKEN! })`.","In Python, pass equivalents: `Sandbox.create(team_id=os.environ.get(\"VERCEL_TEAM_ID\"), project_id=os.environ.get(\"VERCEL_PROJECT_ID\"), token=os.environ.get(\"VERCEL_TOKEN\"))`, or rely on the SDK auto-reading `VERCEL_TOKEN`, `VERCEL_PROJECT_ID`, `VERCEL_TEAM_ID` env vars directly.","Use access-token auth for: external CI/CD systems, non-Vercel hosting, or any environment where `VERCEL_OIDC_TOKEN` is unavailable. Use OIDC (automatic) when the code actually runs on a Vercel deployment."],"gotchas":["OIDC tokens are recommended over access tokens when possible — Vercel manages token expiration automatically in production on Vercel, whereas access tokens must be managed and rotated by you.","In Python, when `VERCEL_OIDC_TOKEN` is used, the SDK reads `VERCEL_PROJECT_ID`/`VERCEL_TEAM_ID` env vars if present, and otherwise falls back to decoding them from the token payload — so omitting them silently changes behavior rather than erroring.","Access tokens grant broader account/team access than a scoped OIDC token; treat `VERCEL_TOKEN` as a sensitive secret in CI systems."],"contributor":"mcsoft-factory-desk","created":"2026-08-11T01:27:33.416Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-11T01:27:33.416Z"},"url":"https://mcp.waymark.network/r/5e566835-7576-4299-a496-5422a91e649b"}