vercel/vercel-plugin/vercel-connect
Claude Code and agent skill by vercel/vercel-plugin
- vendor
Checking that the SKILL.md file is still in the repository.
Vercel Connect expert guidance for securely obtaining scoped credentials for third-party services on behalf of apps or users. Use when wiring up provider API access, OAuth, API-key services, MCP servers, triggers, framework adapters, eve agent connections, or provider tokens for Passport-authenticated users.
Install
npx vskill@latest install vercel/vercel-plugin/vercel-connectSKILL.md
The same SKILL.md was published earlier as vercel/vercel-plugin/vercel-connect.
Vercel Connect Skill
Overview
Vercel Connect gives applications short-lived provider credentials without storing provider API keys or refresh tokens in project environment variables. A Vercel deployment authenticates with its project OIDC token. External CI or non-Vercel runtimes can pass a scoped Vercel access token through options.vercelToken.
Connectors are owned by a Vercel team. A consuming project and environment must be linked to the connector before it can request credentials. The connector UID, such as slack/acme-slack, is the stable identifier used by the SDK and CLI. Always use the UID or scl_... ID returned by create or list.
When to Use Vercel Connect
Use Vercel Connect when you need to:
- Send messages via Slack (as a bot or on behalf of a user)
- Access GitHub repositories or APIs
- Connect to any third-party system that requires OAuth tokens or API credentials
- Obtain scoped, short-lived provider credentials for authenticated API calls
- Forward provider events to applications through Vercel Connect triggers
Modes of tokens
The SDK supports four subject types. Pick based on what's acting:
- `user`: actions performed on behalf of a specific end user (e.g., post a Slack message as the user). Requires a user
idand optionalissuer. - `app`: actions performed as the app itself (e.g., post as a Slack bot or use a GitHub installation). It skips per-user consent but may still require a provider installation or supported app grant.
- `jwt-bearer`: federated identity through the OAuth JWT-bearer grant. Pass
sub(required), plus optionaliss,aud, andadditionalClaims. - `token`: token exchange. Pass
{ token }with an existing subject token; the SDK inferstype: "token"in@vercel/connect2.4.0+.
For user subjects, derive subject.id from a stable identity in the authenticated server-side session. Never accept it from a request body or other client input. Keep getToken(), Connect auth providers, and MCP clients on the server.
CLI
The vercel connect CLI operates in the selected Vercel team and supports machine-readable output with --json (CLI 58.1+; older CLIs use --format=json or -F json).
Use the full lifecycle instead of assuming connector creation also authorizes a project:
The CLI also supports discover, categories, detach, update, remove, revoke-tokens, and open (discover and categories need CLI 64.1.0+). Run vercel connect <command> --help before using optional installation, scope, trigger, branch, or custom-environment flags.
Use current-project behavior from a Vercel-linked project directory. Creating a connector and attaching it are distinct operations. Connector creation or token authorization may open a browser. Show the returned URL and wait for the person to finish the provider flow. --yes permits automatic browser opening; it does not force reauthorization.
vercel connect create <service> supports 1000+ services (for example slack, github, microsoft, linear, snowflake, salesforce, notion, okta), plus any OAuth or MCP server URL. Run vercel connect discover [query] (CLI 64.1.0+) to find a service's name, then vercel connect create <service> --help to see that service's products, connection methods (oauth, api-key, mcp, custom-server, etc.), and required credentials before registering it.
For MCP servers there are two ways to register. For a known service, run vercel connect create <service> and pick the MCP connection method (e.g. vercel connect create linear --name my-agent gives the connector linear/my-agent). For any other OAuth-protected server, pass its URL (e.g. vercel connect create mcp.linear.app --name linear): Vercel discovers the OAuth endpoints from the URL and creates a custom OAuth connector (mcp.linear.app/linear). Either way, attach it to the project with vercel connect attach <connector> before requesting tokens. The service name or URL you pass to create is not necessarily the MCP runtime URL; that goes in the connection's url.
JavaScript/TypeScript SDK (@vercel/connect)
For JavaScript/TypeScript code, use the @vercel/connect package directly:
On Vercel, the SDK reads VERCEL_OIDC_TOKEN automatically. For local development, run vercel link followed by vercel env pull. Development OIDC tokens expire, so pull again when authentication fails. For external CI or non-Vercel hosting, pass a scoped Vercel access token through the third options argument.
Use getToken() immediately before calling the provider and let the SDK cache identical requests. Scope each SDK request to what it needs with installationId, scopes, audience, resources, or authorizationDetails. The CLI supports subject, installation, and scopes, but not every SDK field. Do not invent CLI flags for SDK-only parameters.
Use these root APIs when needed:
getTokenResponse()for token metadata such as expiry and connector details.getConnectorMetadata()to inspect connector metadata and provider-specific public configuration.startAuthorization()afterUserAuthorizationRequiredErrorto begin user consent.revokeToken()anddeleteTokenCacheEntry()for revocation and cache eviction.forceRefreshandvalidityBufferMsonly when the default cache behavior does not fit the call.
Passport-authenticated users: @vercel/passport
If the application already authenticates users with Passport, pass the identity returned by requireIdentity() directly as the Connect subject. There is no need to manually construct a separate user subject:
Keep both calls on the server. Replace slack/xaa-slack with your linked connector UID and request only the scopes needed by the operation; users:read is the scope used in this example. Passport supplies the authenticated user identity, while Connect supplies the provider API token. Connector attachment and provider authorization requirements still apply.
eve agents: @vercel/connect/eve
When the project is built on eve, prefer the connect helper over calling getToken directly inside connection definitions. It wires token requests and interactive authorization into eve's connection runtime:
Key points for the agent:
- Omit
principalTypefor the default per-user OAuth flow, or setprincipalType: "app"for app-scoped tokens. - Pass the connector UID directly with
connect("linear/my-agent"), or useconnect({ connector: "linear/my-agent" })when you need options. - For scopes, audiences, or
authorizationDetails, pass them throughtokenParams. For a custom challenge prompt, passinstructions. Both are optional. eveis an optional peer dependency, so the rest of@vercel/connect(CLI,getToken, etc.) is unaffected for non-eve consumers.
Slack channel: connectSlackCredentials
For eve Slack channels (agent/channels/slack.ts), use connectSlackCredentials(connector) from @vercel/connect/eve. It returns a complete SlackChannelCredentials object. Both the bot token and inbound webhook verification are handled by Vercel Connect, so you do not need SLACK_BOT_TOKEN or SLACK_SIGNING_SECRET env vars:
What the helper wires up:
botToken: a function that requests an app token when the channel needs it. Connect stores and refreshes installation credentials.webhookVerifier: a Vercel OIDC verifier (vercelOidc()). Vercel Connect forwards verified Slack webhooks to your app as signed Vercel OIDC requests; the helper verifies that signature instead of the raw Slack signing secret.
Without an explicit installationId, a channel helper uses the connector's default installation. It does not infer the correct installation from an inbound workspace or organization. Multi-tenant applications must resolve a trusted installation mapping and pass the resulting ID as the helper's second argument.
Use this whenever the project is on eve + Vercel Connect. It is the one-liner for both outbound posts and inbound webhook auth.
GitHub channel: connectGitHubCredentials
For eve GitHub channels (agent/channels/github.ts), use connectGitHubCredentials(connector) from @vercel/connect/eve. It returns a complete GitHubChannelCredentials object. eve uses the installation token directly, while Vercel Connect stores and refreshes provider credentials. Pass an explicit trusted installationId for multi-tenant routing. You do not need GITHUB_APP_PRIVATE_KEY, GITHUB_APP_ID, GITHUB_INSTALLATION_ID, or GITHUB_WEBHOOK_SECRET env vars:
What the helper wires up:
installationToken: a function that callsgetToken(connector, { subject: { type: "app" } }). The helper pinssubjectto"app"because GitHub installation tokens are app-scoped.webhookVerifier: a Vercel OIDC verifier (vercelOidc()). Vercel Connect forwards verified GitHub webhooks to your app as signed Vercel OIDC requests; the helper verifies that signature instead of the raw GitHub webhook secret.
Linear channel: connectLinearCredentials
For eve Linear channels (agent/channels/linear.ts), use connectLinearCredentials(connector) from @vercel/connect/eve. It returns a complete LinearChannelCredentials object. Vercel Connect manages the Linear app access token and webhook auth, so you do not need LINEAR_ACCESS_TOKEN or LINEAR_WEBHOOK_SECRET env vars:
What the helper wires up:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 24 Nov 2026.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/vercel-connect/SKILL.md
Popularity
- Repository stars
- 349
- Repository forks
- 83
- 7-day trend score
- 28
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/vercel/vercel-plugin/vercel-connect)