Skip to content
Dashboard
← All connectors
Developer

GitHub

Give AI apps and agents controlled access to repositories, issues, and pull requests.

Create Connector
  1. Install the skill

    $ npx skills add vercel/vercel-plugin --skill vercel-connect
  2. Connect to GitHub

    $ vercel connect create github --name acme-github
  3. Use 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
Learn how to configure triggers

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.

  1. Install the Connect SDK

    npm install @vercel/connect
  2. Create the GitHub connector

    Run these commands from the project that will use the connection.

    vercel link
    vercel connect create github --name acme-github
    vercel env pull
  3. Request GitHub credentials

    app/api/route.ts
    import { getToken } from '@vercel/connect';
    const token = await getToken('github/acme-github');
Browse all connectors