API referenceConsole
Cloud provider
Polylane watches your Vercel projects, reads request logs and function metrics to find errors and failed deploys, and writes the fix in your code.

Connect

Connect Vercel from the terminal. Pass --help for the flags Vercel accepts, plus --no-browser for headless environments.

Terminal
polylane cloud connect --provider vercel

How it works

Infrastructure graph

Polylane maps each project in the selected scope, and for each project:

  • The deployment that serves production. When preview monitoring is on, Polylane keeps the latest deployment of any target instead.
  • Domains with their DNS records and certificates, aliases, custom environments, cron jobs, Vercel Services, Workflows, sandboxes and feature flags.
  • The names of environment variables. Polylane reads values only to find which databases and services a project connects to, and Vercel redacts secret values.

At the account level, it maps Edge Config stores, Blob stores, drains, webhooks, AI Gateway, shared environment variables, Secure Compute networks and microfrontends groups.

Vercel sends a webhook to Polylane for deployments, project and domain changes, environment variable changes, rolling releases, flag changes and changes to the integration scope. Polylane collects the webhooks for two minutes, then syncs the account once. You can also sync the account from its page.

Deploys and rollbacks

Each finished deployment (ready, error or canceled) becomes a deploy event that agents compare with errors. An instant rollback also becomes a deploy event, and the graph follows production back to the older deployment.

Metrics, logs and checks

Every 30 minutes by default, Polylane checks the deployment failure rate of each account. It covers production deployments, and preview deployments too when preview monitoring is on.

With the access token, Polylane also reads request logs and the Vercel Observability API. It then checks requests, function errors and duration, cron errors, Workflow failures, AI Gateway errors and cost, and firewall activity. Charts and these checks need Observability Plus on the team. Request logs work without it.

Alerts

When Vercel sends an anomaly alert to the integration, Polylane turns it into an issue, and a new issue starts an investigation. Repeats of the same alert go to the same issue.

Agents and writes

During an investigation, agents read deployments, build events, metrics and the Vercel API. The account starts as Read-only in Polylane. A workspace admin can turn it off, so that agents can request writes such as a redeploy, an alias change or an environment variable change. Each write needs a safety review and your approval before it runs.

Disconnecting

Remove the Polylane integration from your Vercel account under Settings → Integrations. Polylane then deletes the account and its graph data.

If you disconnect the account in Polylane instead, Polylane deletes the account and stops syncing, but the integration stays installed in Vercel. Remove it there too. Also delete the access token in Vercel if you added one.

Disconnect

Disconnecting stops every sync and check and deletes the credentials Polylane held. Polylane removes what Vercel's API lets it remove. The following stays until you remove it yourself:

  • Vercel integration configuration
Terminal
polylane cloud disconnect <id>

Tools

3

Operations agents can perform in threads.

Api
Call Vercel REST endpoints
Get Logs
Get logs from a Vercel deployment
Query Metrics
Query Vercel observability metrics (requests, errors, function duration)

Supported resources

30

Resource types that show up in your infrastructure graph.

Project
Deployment
Domain
Edge Config
Postgres
KV Store
Blob Store
Log Drain
Custom Environment
Firewall
Webhook
Integration
Sandbox
Workflow
Cron Job
Service
Daemon
Shared Environment Variable
Sandbox Drive
KMS Issuer
Connect Connector
PrivateLink Endpoint
Secure Compute Network
CI Pipeline
Feature Flag
AI Gateway
Microfrontends Group
Access Group
Drain
Container Repository