> For the complete documentation index, see [llms.txt](https://docs.hivel.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hivel.ai/integrations/ai-tools/github-copilot-integrations/enterprise-plan-integration.md).

# Enterprise plan (Integration)

Hivel integrates with GitHub Copilot Enterprise to track adoption and usage metrics. You enable the Metrics API, create a Personal Access Token (PAT), and connect in Hivel. Then metrics flow automatically.

### **Prerequisites**

* Your organization has GitHub Copilot Enterprise
* You have an enterprise or organization owner account, or a custom role with "View organization Copilot metrics" permission
* You have your enterprise's URL slug (the unique name that appears after `/enterprises/` in your GitHub Enterprise URL. For Example, `github.com/enterprises/<slug>`)

### **In GitHub, Enable Metrics API:**

1. Log in to GitHub and go to your Enterprise account.
2. In the enterprise navigation bar, click **AI Controls**.
3. In the left sidebar, click **Copilot**.
4. Scroll to the **Metrics** section and find **Copilot usage metrics**.
5. Set it to **Enabled everywhere** and save.

### **In GitHub, Create Personal Access Token:**

1. In the upper-right corner, click your profile photo → **Settings**.

![](https://3057781534-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5KAIOUWph0JLSgQqbzyT%2Fuploads%2FyXfCt06tHAT9PjFU3Eho%2Funknown.png?alt=media\&token=a52c5ce6-4756-4a24-a40d-b0b66bf3068c)

2. In the left sidebar, click **Developer settings** → **Personal access tokens** → **Tokens (classic)**.

![](https://3057781534-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5KAIOUWph0JLSgQqbzyT%2Fuploads%2FT85BZkkMP9YMF7vKKzdi%2Funknown.png?alt=media\&token=931915aa-ade6-40ca-8560-349ced5baf30)

![](https://3057781534-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5KAIOUWph0JLSgQqbzyT%2Fuploads%2F4jhsHU1UmTbbZhl8FqLN%2Funknown.png?alt=media\&token=e924efd3-0a8f-4e9e-8f16-4d79db4d1930)

3. Click **Generate new token (classic)**.
4. Name it (e.g., "Hivel Copilot Enterprise").
5. Set an expiration date if needed.
6. Select these scopes:
   * **Copilot:** `manage_billing:copilot`
   * **Admin Enterprise:** `manage_billing:enterprise`, `read:enterprise`
   * **Admin Org:** `read:org`, `read:user`
7. Click **Generate token** and copy it.

### **In Hivel:**

1. Go to **Settings** → **Integrations** tab.
2. Find **Copilot** and click **Connect**.

<figure><img src="https://3057781534-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5KAIOUWph0JLSgQqbzyT%2Fuploads%2FHlc5XTSrYndJ9IidwDFR%2FScreenshot%202026-08-19%20at%203.47.25%E2%80%AFAM.png?alt=media&amp;token=0712ee94-cdd0-45bc-afb9-718732d4adb2" alt=""><figcaption></figcaption></figure>

3. Select **Enterprise plan** and click **Continue**.

<figure><img src="https://3057781534-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5KAIOUWph0JLSgQqbzyT%2Fuploads%2FR2oVTFvA144PQZhOjYbm%2FScreenshot%202026-08-31%20at%207.03.09%E2%80%AFPM.png?alt=media&amp;token=685de53a-175a-4724-b71d-64a376fdd0b5" alt=""><figcaption></figcaption></figure>

4. Paste the PAT and your enterprise slug, verify GitHub admin access, and click **Continue**.

<figure><img src="https://3057781534-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5KAIOUWph0JLSgQqbzyT%2Fuploads%2FwbeEVn332lC73mEWHms0%2FScreenshot%202026-08-31%20at%207.02.05%E2%80%AFPM.png?alt=media&amp;token=422f7820-c01b-45de-a5e8-6758274043a8" alt=""><figcaption></figcaption></figure>

5. GitHub Copilot is integrated

<figure><img src="https://3057781534-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5KAIOUWph0JLSgQqbzyT%2Fuploads%2FZCs68GBQ0t4mn51655Zw%2Fimage%20(6).png?alt=media&amp;token=fac0c4e7-3834-4392-8b22-d40880137684" alt="" width="375"><figcaption></figcaption></figure>

### **Important**

Data syncs within 24 hours for the past 90 days.

### **What Happens Next**

You'll see adoption metrics in your Copilot dashboard once sync is complete.

#### **To continue setting up your integrations** → [Back to Integrations](/integrations.md)
