> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usebruno.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GitHub Provider

You can search, filter, import and clone collections from public and private repositories on GitHub directly from the app. You can also connect your GitHub account to use your personal access token or GitHub CLI to access private repositories.

## Access and import public repositories

Public repositories on GitHub are searchable from Bruno without signing in.

1. Open **Import collection** dialog box and go to the **GitHub** tab.

![github-preview](https://mintcdn.com/bruno-a6972042/V3LtOSG-Boioz6Xl/images/screenshots/git-providers/github-integration/01-github-preview.webp?fit=max\&auto=format\&n=V3LtOSG-Boioz6Xl\&q=85\&s=81d1961bea39ae87dfac118d3d99defd)

2. Search any public repository by name or keywords.

![search-repo](https://mintcdn.com/bruno-a6972042/V3LtOSG-Boioz6Xl/images/screenshots/git-providers/github-integration/02-search-repo.webp?fit=max\&auto=format\&n=V3LtOSG-Boioz6Xl\&q=85\&s=35d849c7b62d0136eb813552f4fa3448)

3. Select the repository you want to import and click on the **Clone** button.

> [!NOTE]
>
> Bruno by default clone repositories to the `~/Documents/bruno` folder. You can change the location by clicking on the **Browse** button.

![clone-collection](https://mintcdn.com/bruno-a6972042/V3LtOSG-Boioz6Xl/images/screenshots/git-providers/github-integration/03-clone-collection.webp?fit=max\&auto=format\&n=V3LtOSG-Boioz6Xl\&q=85\&s=360d98c003b1455c27f1cb467eee6e63)

4. Select the collections you want to import and click on the **Open** button.

![select-repo](https://mintcdn.com/bruno-a6972042/SU19vsc2FJszEwzj/images/screenshots/git-providers/github-integration/04-select-repo.webp?fit=max\&auto=format\&n=SU19vsc2FJszEwzj\&q=85\&s=bba9733959fdf84db39fddd7d2c010e3)

5. You will see the collections you imported in the sidebar.

![repo-listed-sidebar](https://mintcdn.com/bruno-a6972042/V3LtOSG-Boioz6Xl/images/screenshots/git-providers/github-integration/05-repo-listed-sidebar.webp?fit=max\&auto=format\&n=V3LtOSG-Boioz6Xl\&q=85\&s=06c432d200d1f2bdd7511d5fc2c95f84)

> [!TIP]
>
> After clone, Bruno **scans** the repo and lists **Bruno collections** found inside. Select one or more and click **Open** to add them to your workspace.

***

## Private repositories and authentication PREMIUM

> [!NOTE]
>
> Authentication, searching and importing private repositories at organization and individual level is available in Bruno Pro and Ultimate editions.

Private repositories and **organization-scoped** search need GitHub to know who you are. Bruno supports:

* **Personal Access Token (PAT)** (recommended)
* **GitHub CLI (`gh`)** — sign in with the official GH CLI

After you connect:

* You can import **private** repos and narrow search to **your user** and **organizations** you belong to (dropdown entries such as **you**, **org**).
* You can scope search to an org (for example `your-org`) and see private repos (often shown with a lock icon in the list).

***

## Configure a Personal Access Token (recommended)

Use a PAT when you want predictable, documented access for Bruno on your machine.

### 1. Open Git provider settings

1. Open **Preferences** settings from bottom left corner.
2. Go to **Git providers** in the sidebar.
3. Select **GitHub** and click on **Configure** button.

![git-providers-preferences](https://mintcdn.com/bruno-a6972042/V3LtOSG-Boioz6Xl/images/screenshots/git-providers/github-integration/06-git-providers-preferences.webp?fit=max\&auto=format\&n=V3LtOSG-Boioz6Xl\&q=85\&s=b768543b9e3244c28740b63378846dc1)

### 2. Enable GitHub

1. Turn **Enabled** on.
2. Go to **Personal Access Token** and click on **Generate a token on GitHub** link.

> [!NOTE]
>
> If you already have a token, you can paste it in the **Enter your GitHub personal access token** field.

![enable-pat](https://mintcdn.com/bruno-a6972042/V3LtOSG-Boioz6Xl/images/screenshots/git-providers/github-integration/07-enable-pat.webp?fit=max\&auto=format\&n=V3LtOSG-Boioz6Xl\&q=85\&s=c94bfe6999fff248f8910d5fdfa39508)

### 3. Create and paste the token

1. Click on **Generate a token on GitHub** and sign in to GitHub.

![git-auth](https://mintcdn.com/bruno-a6972042/V3LtOSG-Boioz6Xl/images/screenshots/git-providers/github-integration/08-git-auth.webp?fit=max\&auto=format\&n=V3LtOSG-Boioz6Xl\&q=85\&s=e83fefdc3a9d999aaf39a9e5947638e3)

2. Sign in to GitHub and create a token with the scopes your org requires (repo read for private repos, also follow your company policy for fine-grained vs classic tokens).

3. Copy the token value, return to Bruno, paste it into **Enter your GitHub personal access token**.

4. You should see a **connected** state (eg **Connected as @your-username via Personal Access Token**) with options to **Refresh** or **Clear token** when you need to rotate credentials.

![pat-connected](https://mintcdn.com/bruno-a6972042/V3LtOSG-Boioz6Xl/images/screenshots/git-providers/github-integration/09-pat-connected.webp?fit=max\&auto=format\&n=V3LtOSG-Boioz6Xl\&q=85\&s=60ea714c6ee3a6843d24aa4b5b0ba725)

> [!NOTE]
>
> Advanced options are available to configure the enterprise GitHub API URL.

### 4. Import again from the GitHub tab

1. Return to **Import collection** → **GitHub**.

2. Use the scope dropdown to pick **your user** or an **organization**.

> [!NOTE]
>
> Private repositories should appear in search results; clone and select collections as in [Access and import public repositories](#access-and-import-public-repositories).

![private-repo-access](https://mintcdn.com/bruno-a6972042/V3LtOSG-Boioz6Xl/images/screenshots/git-providers/github-integration/13-private-repo-access.webp?fit=max\&auto=format\&n=V3LtOSG-Boioz6Xl\&q=85\&s=b1d3fd8023dc0245c5f03d8087045a28)

You can add multiple GitHub account (up to 5 users) to your workspace by entering GitHub username on the **Add account** input field.

***

## GitHub CLI (`gh`)

You can authenticate with the [GitHub CLI](https://cli.github.com/) if you prefer not to paste a PAT. Bruno reuses the login from `gh` on your machine, which is useful when you already use the CLI for day-to-day GitHub work.

### Option A: Install and connect from Bruno

1. In **Preferences** → **Git providers** → **GitHub**, open the **GitHub CLI** tab.

![git-cli](https://mintcdn.com/bruno-a6972042/V3LtOSG-Boioz6Xl/images/screenshots/git-providers/github-integration/11-git-cli.webp?fit=max\&auto=format\&n=V3LtOSG-Boioz6Xl\&q=85\&s=82e8a6e7f6074f790f4b55bc607bc643)

2. Click **Install** to install GitHub CLI

3. Authenticate when prompted. You should see a **connected** state (for example **Connected as @your-username via GitHub CLI**) with options to **Refresh** or **Sign out**.

![authenticate-cli](https://mintcdn.com/bruno-a6972042/V3LtOSG-Boioz6Xl/images/screenshots/git-providers/github-integration/12-authenticate-cli.webp?fit=max\&auto=format\&n=V3LtOSG-Boioz6Xl\&q=85\&s=2f981e857862e64d5a6c7dbc5c5286d5)

After you are connected, return to **Import collection** → **GitHub** and search private or org-scoped repos the same way as with a PAT.

We still **recommend a PAT** for straightforward setup, rotation, and use in environments where the CLI is not installed. For creating remotes and cloning with `gh` before opening Bruno, see [Collaboration via GitHub](https://docs.usebruno.com/git-integration/github.md#use-the-github-cli-gh).

***

## GitHub Enterprise and custom API URL

For **[GitHub Enterprise Server](https://docs.github.com/en/enterprise-cloud@latest/admin/overview/about-github-for-enterprises)** (self-hosted) or a different API base than public GitHub, set the REST **API URL** Bruno uses for search and repo metadata.

1. In **Preferences** → **Git providers** → **GitHub**
2. Expand **Advanced**.
3. Replace the default **`https://api.github.com`** with your Enterprise API root. For **GitHub Enterprise Server**, the REST API is often at `https://<your-hostname>/api/v3`. Your administrator or [About GitHub’s REST APIs](https://docs.github.com/en/enterprise-server/rest) for your Enterprise version documents the exact base URL.
4. Connect with PAT or CLI as above.

After saving, org-scoped search and private repos on that host should resolve against your Enterprise instance instead of [api.github.com](https://api.github.com).

***

## Quick comparison

| Goal | What to use |
| - | - |
| Import a **public** repo by search | **GitHub** tab, scope **All of GitHub**, no login |
| Import **private** or **org** repos | Enable **GitHub** under **Git providers** + **PAT** (recommended) or **GitHub CLI** |
| **Enterprise** GitHub host | Same + **Advanced** → set **API URL** to your server’s API base |
| Any Git URL without search | **Git repository** tab + paste URL |

***

## Resources

* [Git integration overview](https://docs.usebruno.com/git-integration/overview.md) — init, remotes, commit, push, pull.
* [Collaboration via GUI — Provider](https://docs.usebruno.com/git-integration/using-gui/provider.md) — remotes and Git workflow with a GitHub remote.
* [Fetch in Bruno](https://docs.usebruno.com/git-integration/embed-bruno-collection.md) — one-click open for a GitHub repo from a README or site.
* [Blog - Git Provider Integration for Effortless Collection Import in Bruno](https://blog.usebruno.com/git-providers-support-in-bruno)
