# GitHub Copilot integration

Read more about Swarmia's other [AI coding tool integrations](https://help.swarmia.com/getting-started/integrations/ai-coding-tool-integrations) and [measuring the productivity impact of AI tools](https://help.swarmia.com/features/measure-the-productivity-impact-of-ai-tools).

## Enabling GitHub Copilot metrics

### 1. Grant Swarmia read access to Copilot Business

[**Grant Swarmia read access**](https://help.swarmia.com/getting-started/integrations/code-hosting-platforms/github/troubleshooting/github-permissions) to these permissions:

* **Organization Copilot seat management**: Used for [Copilot adoption metrics](https://help.swarmia.com/features/measure-the-productivity-impact-of-ai-tools/ai-adoption-metrics) and [PR attribution](https://help.swarmia.com/features/measure-the-productivity-impact-of-ai-tools/ai-impact-on-pr-metrics) in Swarmia. You’ll get access to data from this point onward (no backfill of historical data).&#x20;
* **Organization Copilot metrics**: Used for [Copilot activity breakdown](https://help.swarmia.com/features/measure-the-productivity-impact-of-ai-tools/github-copilot-activity-breakdown) in Swarmia. Requires enabling also the corresponding policy — see below.

### 2. Enable Copilot metrics in your organization's policies

To see [Copilot activity metrics](https://help.swarmia.com/features/measure-the-productivity-impact-of-ai-tools/github-copilot-activity-breakdown), enable the **"Copilot usage metrics"** policy in **GitHub → Organization settings → Copilot → Policies**. You'll get historical activity data starting from December 12th, 2025.

<figure><img src="https://2772466312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMa8uBmGhQgR7MTPq9yh7%2Fuploads%2FkwXpivLQHnTSjT8eFdAf%2F003984.png?alt=media&#x26;token=170108a1-81e6-4c01-99c9-07792a2ee3cf" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Copilot metrics API** will stop working on April 2nd, 2026. It was used in Swarmia's [old Copilot activity breakdown](https://help.swarmia.com/features/measure-the-productivity-impact-of-ai-tools/github-copilot-activity-breakdown-old).
{% endhint %}

## Frequently asked questions

### What if my Copilot licenses are in a different GitHub organization than my repositories?

You can [connect both GitHub organizations to Swarmia](https://help.swarmia.com/getting-started/integrations/code-hosting-platforms/github/multiple-github-organizations), and we can track the users' licenses across organizations.

### Why can't I see the feature toggles for enabling Copilot Metrics APIs even though I am an organization admin?

If the organization is part of a GitHub enterprise, the features are managed through enterprise policies. To enable these features for a GitHub organization within a GitHub enterprise the feature policies must be set to "Enabled everywhere" for the enterprise.
