GitHub
Give AI apps and agents controlled access to repositories, issues, and pull requests.
Install the skill
$ npx skills add vercel/vercel-plugin --skill vercel-connectConnect to GitHub
$ vercel connect create github --name acme-githubUse its data in agents(opens in new tab) and apps(opens in new tab)
import { getToken } from '@vercel/connect';const token = await getToken('github/acme-github');
Use GitHub in apps and agents
GitHub hosts source code and developer workflows. Its APIs expose repositories, commits, issues, pull requests, checks, and organization data.
Read the GitHub developer docs(opens in new tab)Build with GitHub events
Vercel Connect delivers verified GitHub events to your app or agent in real time.
- pull_request
Why use Vercel Connect with GitHub?
Credentials on demand
Request GitHub credentials only when your application or agent needs them instead of copying secrets into application code.
Access for the right subject
Keep app-scoped GitHub access behind a reusable connector controlled by your team.
Managed authorization lifecycle
Centralize GitHub authorization and token exchange rather than rebuilding the provider flow in every application.
Vercel-native controls
Bind connections to the projects and environments that need them while Vercel OIDC authenticates each runtime request.
What you can build with GitHub
Automate issue and pull request work
Create, update, label, and summarize development work from an app or agent.
Review repository context
Read authorized code and metadata before proposing changes or answering questions.
React to GitHub events
Trigger agent workflows from repository and organization activity.
Use GitHub with your stack
Follow a complete setup for the Connect SDK or a supported agent framework.
Add GitHub to an existing Vercel application with the Connect SDK.
Install the Connect SDK
npm install @vercel/connectCreate the GitHub connector
Run these commands from the project that will use the connection.
vercel linkvercel connect create github --name acme-githubvercel env pullRequest GitHub credentials
app/api/route.tsimport { getToken } from '@vercel/connect';const token = await getToken('github/acme-github');