[← All connectors](/connect/browse)

Developer

# GitHub

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

[Create Connector](https://vercel.com/d?to=%2F%5Bteam%5D%2F~%2Fconnect%3Fcreate%3Dgithub&title=Vercel+Connect)

1.  ## Install the skill

    ```
    $ npx skills add vercel/vercel-plugin --skill vercel-connect
    ```

2.  ## Connect to GitHub

    Via CLI[Vercel Dashboard(opens in new tab)](https://vercel.com/d?to=%2F%5Bteam%5D%2F~%2Fconnect%3Fcreate%3Dgithub&title=Vercel+Connect)

    ```
    $ vercel connect create github --name acme-github
    ```

3.  ## Use its data in [agents(opens in new tab)](https://github.com/vercel-labs/eve-slack-agent-template) and [apps(opens in new tab)](https://github.com/vercel-labs/nextjs-linear-connect-template)

    ```
    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)](https://docs.github.com/en/rest)

## 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](/docs/connect/concepts/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](/docs/connect/ts-sdk-reference).

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

## More connectors like GitHub

- [![](/static/connex/linear.svg)Linear](/connect/linear)
- [WorkOS](/connect/workos)
- [CircleCI](/connect/circleci)
- [Clerk](/connect/clerk)

[Browse all connectors](/connect/browse)