> 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="/files/PXhXK4DNiQGQLeIV2rFD" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/VnmwgN2Xj4XSh9Wugln6" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/yr9a8mkg5Cm8r8WCVEza" 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="/files/PdKwXYI0GoLT8725UKnm" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/J09HCUWKfwBeLImQQqzc" 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
