> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trydepth.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# GitHub

> Connect your GitHub repositories to Depth AI

To use Depth AI with your GitHub repositories, you'll need to first connect and authorize your GitHub account. This guide walks you through the setup process.

<Steps>
  <Step title="Connect GitHub Account">
    Navigate to [GitHub Integration Settings](https://app.trydepth.ai/new-settings/integrations/github) and click the "Connect" button to start the authorization process.

    <Frame>
      <img src="https://mintcdn.com/depthai/EGK_mLAbRrvUxRQF/images/github/connect.png?fit=max&auto=format&n=EGK_mLAbRrvUxRQF&q=85&s=1dceb271ebbf1a591dc55c254eb267a7" alt="GitHub Connect Button" width="1165" height="517" data-path="images/github/connect.png" />
    </Frame>
  </Step>

  <Step title="Configure GitHub App">
    After authorizing, click the "Configure" button to set up the GitHub App installation.

    <Frame>
      <img src="https://mintcdn.com/depthai/EGK_mLAbRrvUxRQF/images/github/configure.png?fit=max&auto=format&n=EGK_mLAbRrvUxRQF&q=85&s=e4fa548d82c6bf5aa767d4b3daefb6a1" alt="GitHub Configure Button" width="1161" height="506" data-path="images/github/configure.png" />
    </Frame>
  </Step>

  <Step title="Set Repository Permissions">
    On the GitHub page, select which repositories you want to grant access to. You can choose:

    * All repositories
    * Only select repositories

    <Frame>
      <img src="https://mintcdn.com/depthai/EGK_mLAbRrvUxRQF/images/github/add-permissions.png?fit=max&auto=format&n=EGK_mLAbRrvUxRQF&q=85&s=460b6107d7da94628295de8757d8bb60" alt="GitHub Repository Permissions" width="938" height="1279" data-path="images/github/add-permissions.png" />
    </Frame>

    <Info>
      Make sure to grant read access to the repositories you want to chat with using Depth AI.
    </Info>
  </Step>
</Steps>

## Next Steps

Now that you've connected GitHub, you can:

<CardGroup cols={2}>
  <Card title="Add Your First Repository" icon="book-bookmark" href="/guides/adding-a-new-repository">
    Learn how to add and index your repositories
  </Card>

  <Card title="Setup GitHub Copilot Integration" icon="robot" href="/integrations/github-copilot">
    Use Depth AI directly in your IDE with GitHub Copilot
  </Card>
</CardGroup>
