Skip to main content

Overview

OpenSRE queries Vercel to retrieve deployment status and runtime logs — helping identify whether a recent deployment caused an incident or surface errors from serverless function executions.

Prerequisites

  • Vercel account with project access
  • Vercel API token

Setup

Option 1: Interactive CLI

Provide your API token (and optional team ID) when prompted.

Option 2: Environment variables

Add to your .env:

Option 3: Persistent store

Credentials

  1. In Vercel, go to Account SettingsTokens
  2. Click Create Token
  3. Give it a name (for example opensre) and set the scope to Full Account or a specific team
  4. Copy the token
For team accounts, find your Team ID in Team SettingsGeneralTeam ID. Set VERCEL_TEAM_ID (or store team_id) so OpenSRE can list team projects.
OpenSRE calls the Vercel API at https://api.vercel.com.

Investigation tools

Verify

Expected output:
Inside the REPL: /integrations verify vercel or /verify vercel.

Troubleshooting

Security

  • Create a dedicated read-only token for OpenSRE — do not reuse deployment tokens.
  • Store the token in .env, not in source code.
  • Rotate tokens periodically.