4b6817381b
Benchmark image — build + push to ECR (any adapter) / build + push (push) Waiting to run
CI / quality (ubuntu-latest) (push) Waiting to run
CI / test (tools-runtime) (push) Waiting to run
CI / test (e2e-general) (push) Waiting to run
CI / test (cli-runtime) (push) Waiting to run
CI / test (e2e-provider-and-openclaw) (push) Waiting to run
CI / test (integrations-and-misc) (push) Waiting to run
CI / coverage-report (push) Blocked by required conditions
CI / test-kubernetes (push) Waiting to run
CI / should-run-thorough (push) Waiting to run
CI / test-thorough (cloudwatch-demo) (push) Blocked by required conditions
CI / test-thorough (flink-ecs) (push) Blocked by required conditions
CI / test-thorough (upstream-lambda) (push) Blocked by required conditions
CI / test-thorough (prefect-ecs-fargate) (push) Blocked by required conditions
CodeQL / Analyze (python) (push) Waiting to run
Release / build-binaries (zip, opensre.exe, onefile, windows-latest, windows-x64) (push) Blocked by required conditions
Release / publish-release (push) Blocked by required conditions
Release / publish-main-release (push) Blocked by required conditions
Release / prepare (push) Waiting to run
Release / verify (push) Blocked by required conditions
Release / build-python-dist (push) Blocked by required conditions
Release / build-binaries (tar.gz, opensre, onedir, macos-15-intel, darwin-x64) (push) Blocked by required conditions
Release / build-binaries (tar.gz, opensre, onedir, macos-latest, darwin-arm64) (push) Blocked by required conditions
Release / build-binaries (tar.gz, opensre, onedir, ubuntu-22.04, linux-x64) (push) Blocked by required conditions
Release / build-binaries (tar.gz, opensre, onedir, ubuntu-22.04-arm, linux-arm64) (push) Blocked by required conditions
Synthetic Deterministic Tests / Synthetic offline (deterministic) (push) Waiting to run
Interactive Shell Live (PR + post-merge) / turn-checks (no-LLM) (push) Waiting to run
Interactive Shell Live (PR + post-merge) / turn-live shard ${{ matrix.shard_index }} (push) Waiting to run
CI (OpenClaw E2E) / openclaw test (push) Has been cancelled
94 lines
2.2 KiB
Plaintext
94 lines
2.2 KiB
Plaintext
---
|
|
title: "Vercel"
|
|
description: "Connect Vercel so OpenSRE can check deployment status and runtime logs during investigations"
|
|
---
|
|
|
|
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
|
|
|
|
```bash
|
|
opensre integrations setup
|
|
```
|
|
|
|
Select **Vercel** when prompted and provide your API token.
|
|
|
|
### Option 2: Environment variables
|
|
|
|
Add to your `.env`:
|
|
|
|
```bash
|
|
VERCEL_API_TOKEN=your-vercel-api-token
|
|
VERCEL_TEAM_ID=team_xxxxxxxxx # optional, for team accounts
|
|
```
|
|
|
|
| Variable | Default | Description |
|
|
| --- | --- | --- |
|
|
| `VERCEL_API_TOKEN` | — | **Required.** Vercel API token |
|
|
| `VERCEL_TEAM_ID` | — | Team ID for team/organization accounts |
|
|
|
|
### Option 3: Persistent store
|
|
|
|
```json
|
|
{
|
|
"version": 1,
|
|
"integrations": [
|
|
{
|
|
"id": "vercel-prod",
|
|
"service": "vercel",
|
|
"status": "active",
|
|
"credentials": {
|
|
"api_token": "your-vercel-api-token",
|
|
"team_id": "team_xxxxxxxxx"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
```
|
|
|
|
## Creating a Vercel API token
|
|
|
|
1. In Vercel, go to **Account Settings** → **Tokens**
|
|
2. Click **Create Token**
|
|
3. Give it a name (e.g., `opensre`) and set the scope to **Full Account** or a specific team
|
|
4. Copy the token
|
|
|
|
<Info>
|
|
For team accounts, find your Team ID in **Team Settings** → **General** → **Team ID**.
|
|
</Info>
|
|
|
|
## Verify
|
|
|
|
```bash
|
|
opensre integrations verify vercel
|
|
```
|
|
|
|
Expected output:
|
|
|
|
```
|
|
Service: vercel
|
|
Status: passed
|
|
Detail: Connected to Vercel API and listed 5 project(s)
|
|
```
|
|
|
|
## Troubleshooting
|
|
|
|
| Symptom | Fix |
|
|
| --- | --- |
|
|
| **401 Unauthorized** | Check that the API token is valid and not expired |
|
|
| **403 Forbidden** | The token may not have access to the team — check token scope |
|
|
| **Projects not found** | Ensure `VERCEL_TEAM_ID` is set if using a team account |
|
|
|
|
## Security best practices
|
|
|
|
- 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.
|