> 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-walnut.md).

# How to Integrate GitHub with Walnut?

#### **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>

#### &#x20;**Connect GitHub to Walnut**

* Log in to Walnut.
* 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 Walnut code editor and clone the project.

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.walnutai.ai/getting-started/projects/create-a-new-project/external-data-and-connections/how-to-integrate-github-with-walnut.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
