> For the complete documentation index, see [llms.txt](https://docs.walnutai.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.walnutai.ai/getting-started/projects/create-a-new-project/external-data-and-connections/how-to-integrate-github-with-walnutai.md).

# How to Integrate GitHub with WalnutAI?

#### **Steps to Generate a** GitHub Personal Access Token

* Log in to your GitHub account.
* Click on your profile picture and open the User Navigation Menu.

<figure><img src="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2FvlNL5gwhNf1agAXsSIeg%2Funknown.png?alt=media&amp;token=f2685766-49fd-463d-8977-deb528bdaa93" alt=""><figcaption></figcaption></figure>

* Select Settings.
* Navigate to Developer settings.
* Click Personal access tokens.
* Select Tokens and click Generate new token.

<figure><img src="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2F6p3xHFqXOUJqtpORwmnJ%2Funknown.png?alt=media&amp;token=8cefd208-038a-4840-b653-e094a84860b2" alt=""><figcaption></figcaption></figure>

* Choose the required permissions.
* Generate the token and copy it.

<figure><img src="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2FBUj6fWYArfJZcgeOGHDB%2Funknown.png?alt=media&amp;token=7cc05f75-4981-40aa-a825-301d54c41ace" alt=""><figcaption></figcaption></figure>

#### **Connect GitHub to WalnutAI**

* Log in to WalnutAI.
* Go to Integrations and select GitHub.
* Paste the copied Personal Access Token.
* Click Validate and Fetch to verify the token and retrieve repository details.

<figure><img src="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2FSIBrEVeNVNtznP3NNWdb%2Funknown.png?alt=media&amp;token=4dc2405c-9758-4386-b46c-a7544989123a" alt=""><figcaption></figcaption></figure>

* Select the required repositories.
* Choose the relevant branches.

<figure><img src="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2FDyCkYOADaezm7rwatLHB%2Funknown.png?alt=media&amp;token=177fab15-be06-48ae-82a5-b160bc3afaa8" alt=""><figcaption></figcaption></figure>

* Click Save to complete the integration.
* Go to the WalnutAI code editor and clone the project.

To know more about the **Code Editor**, refer to the relevant Code Editor section
