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

# How to Integrate GitLab with Walnut?

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

* Log in to GitLab
* Click your Profile Avatar

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

* Go to Preferences

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

* Click Access Tokens
* Fill in the details and choose the required permissions.
* Generate the token and copy it.

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

#### **Connect GitLab to Walnut**

* Log in to Walnut.
* Go to Integrations and select GitLab.

<figure><img src="/files/4rDWsP3DaNXUkDuroWEU" alt=""><figcaption></figcaption></figure>

* Paste the copied Personal Access Token.
* Click Validate and Fetch to verify the token and retrieve repository details.

<figure><img src="/files/5Ptg2UoLC5W1fxvvnJU6" alt=""><figcaption></figcaption></figure>

* Select the required repositories.

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

* Choose the relevant branches.

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

* Click Connect to complete the integration.

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

* Go to the Walnut code editor and clone the project.


---

# 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-gitlab-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.
