> 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/test-and-quality-management/introduction-to-custom-methods/connect-a-repository-for-custom-methods.md).

# Connect a Repository for Custom Methods

Before creating a Custom Method, connect a Git repository to your WalnutAI project. This repository is used to create, manage, and synchronize Custom Methods.

* Open the required **Project** and navigate to **External Data and Connections**.
* Click **Connect Code Repository** and switch to the **Custom Methods** tab.

<figure><img src="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2F3FVjPe1TOaosb4go1q3N%2FScreenshot%202026-10-07%20at%205.03.54%E2%80%AFPM.png?alt=media&amp;token=2ab57dc0-a40b-40f4-961f-9c67039e688e" alt=""><figcaption></figcaption></figure>

* Choose how you want to connect the repository:
  * **Connect with a separate token:** Select this option when you want to connect a **new repository that is not already connected**. Choose the required Git platform and follow the steps to connect the repository.&#x20;

{% hint style="info" %}
For detailed instructions, refer to[ **External Data and Connections** ](/getting-started/projects/create-a-new-project/external-data-and-connections.md)to learn how to connect a repository to your project.
{% endhint %}

* **Use a connected code repository:** Select this option when you want to use a **repository that is already connected** to the project.

<figure><img src="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2FqMWT1QERz1h5dE4sCm6S%2FScreenshot%202026-10-07%20at%205.05.15%E2%80%AFPM.png?alt=media&amp;token=1f285525-0ea8-473e-a19f-dba607572073" alt=""><figcaption></figcaption></figure>

* Once the repository is successfully connected, select it under **Custom Methods Repository**

{% hint style="info" %}
**Note:** Only **one repository** can be connected for Custom Methods.
{% endhint %}

Once the repository has been successfully connected and configured, you can access and work with it through the **WalnutAI VS Code extension**.
