> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/cloud-cost-management/integrations/ai-providers/github-copilot.md).

# GitHub Copilot

Connecting GitHub Copilot brings your GitHub Copilot spend into Harness Cloud & AI Cost Management alongside your cloud costs. The connector uses an Admin key with read-only access to pull usage and cost data from your GitHub Copilot account. You can analyze AI spend in Cost Explorer, attribute it with Views and Cost Categories, and govern it with budgets and anomaly detection, the same way you manage cloud costs.

### Before You Begin <a href="#before-you-begin" id="before-you-begin"></a>

**GitHub Copilot Admin key:** An Admin key with read-only access from your GitHub organization. The key lets Harness ingest billing and usage data. Go to the [GitHub Copilot user management API documentation](https://docs.github.com/en/rest/copilot/copilot-user-management?apiVersion=2026-03-10) to generate one.

### Set Up the GitHub Copilot Connector <a href="#set-up-the-github-copilot-connector" id="set-up-the-github-copilot-connector"></a>

To connect GitHub Copilot, go to **Cloud & AI Cost Management** > **Account Settings** > **AI Providers** and click **AI Provider**, and then select **GitHub Copilot**.

#### Step 1: Name the Connector <a href="#step-1-name-the-connector" id="step-1-name-the-connector"></a>

1. On the **Overview** panel, enter a **Name** for the connector.
2. Optionally, add a **Description** and **Tags** to organize and filter connectors.

<figure><img src="/files/lRy4xwobFi3UF4EF0axP" alt=""><figcaption><p>Click to view full size image</p></figcaption></figure>

3. Click **Continue**.

#### Step 2: Add the API Key <a href="#step-2-add-the-api-key" id="step-2-add-the-api-key"></a>

On the **Connector Details** panel, provide the GitHub Copilot Admin key as a Harness secret. Do the following:

<figure><img src="/files/Ou7XqslkZTMNhSgJHW7R" alt=""><figcaption><p>Click to view full size image</p></figcaption></figure>

1. In the **API Key** field, click **Create or Select a Secret**.
   * To use an existing secret, select it from the list, then click **Apply Selected**.
   * To add a new secret, click **New Secret Text**, enter a **Secret Name**, and provide your GitHub Copilot Admin key as the **Secret Value**.

     <figure><img src="/files/tTA4vOp66aAEofjjS3C4" alt=""><figcaption><p>Click to view full size image</p></figcaption></figure>

     Go to [Add and reference text secrets](/harness-ai/use-harness-platform/secrets/add-use-text-secrets.md) to review all secret creation options.
2. Click **Continue**.

#### Step 3: Verify the Connection <a href="#step-3-verify-the-connection" id="step-3-verify-the-connection"></a>

On the **Connection Test** panel, Harness validates the API key against your GitHub Copilot account. Once the verification is successful, click **Finish** to create the connector.

<figure><img src="/files/5sNjSWwsXjaw5IisaCES" alt=""><figcaption><p>Click to view full size image</p></figcaption></figure>
