# GitHub Copilot integration

Read more about Swarmia's other [AI coding tool integrations](/settings/integrations/ai-coding-tool-integrations.md) and [measuring the productivity impact of AI tools](/features/ai-tools.md).

## Enabling GitHub Copilot metrics

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

[**Grant Swarmia read access**](/settings/integrations/code-hosting-platforms/github/troubleshooting/github-permissions.md) to these permissions:

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

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

To see [Copilot activity metrics](/features/ai-tools/github-copilot-activity.md), 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="/files/oIAhI1noRm7kcxEWwxIj" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Copilot metrics API** stopped working on April 2nd, 2026. It was used in Swarmia's [old Copilot activity breakdown](/features/ai-tools/github-copilot-activity-old.md).
{% 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](/settings/integrations/code-hosting-platforms/github/multiple-github-organizations.md), 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.swarmia.com/settings/integrations/ai-coding-tool-integrations/github-copilot-integration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
