GitHub Copilot
Overview
Connect your Copilot environment and get seat, usage, and AI credit cost in the same views as the rest of your spend - per-user usage, chat and completions, agent activity, and daily cost granularity.
Copilot's seat-plus-AI-credit model creates spend variability that per-seat forecasting alone misses. Connecting brings that spend into Umbrella so you can see which teams drive AI credit consumption, tie Copilot cost to engineering output, and set anomaly alerts on Copilot the same way you would for AWS or Azure. For enterprises billed through Azure, Umbrella attributes usage per user without double-counting the invoice.
Umbrella supports two billing models and two GitHub-side connection types. You pick both at the start of the wizard:
How Copilot is billed:
- Billed through Azure - your GitHub enterprise pays through an Azure subscription that Umbrella already tracks. Copilot usage per user flows into a new Copilot account; the cost stays on the Azure invoice, so nothing is counted twice.
- Billed by GitHub - GitHub is paid directly, or the Azure account it's billed through isn't managed in Umbrella. The new Copilot account carries the cost.
Which GitHub level the connection covers:
- GitHub.com (one organization) - a single github.com org that isn't part of an enterprise. Uses a fine-grained token.
- GitHub Enterprise Cloud (every org under one enterprise) - a GitHub-hosted enterprise on github.com or on a GHE.com data residency subdomain. Uses a classic token with billing scopes.
Each connection covers one github.com organization or one enterprise. Add another connection for each additional one.
What gets tracked
Umbrella reads Copilot usage, seat, team, and billing data. The connection does not access repository contents, issues, pull requests, or organization settings.
| Signal | GitHub.com | GitHub Enterprise Cloud |
|---|---|---|
| Copilot seats and usage per user | Yes | Yes |
| Chat, completions, and agent usage | Yes | Yes |
| AI credit cost | Yes | Yes |
| Daily usage granularity | Yes | Yes |
| Coverage | One github.com organization | Every organization in the enterprise (github.com or GHE.com) |
Dimensions
After the connection ingests, Copilot spend and usage is slice-able across Cost & Usage Explorer, Business Mapping, Budgets, and Anomaly Detection by these dimensions:
| Dimension | What it holds |
|---|---|
| User | The Copilot seat holder - member name and email from GitHub. |
| Feature | The Copilot surface used: completions, chat, agent, or PR summaries. |
| Model | The model routing the request (relevant for AI credit cost). |
| IDE | The editor the request came from (VS Code, JetBrains, Visual Studio, etc.). |
| Language | The programming language of the completion. |
| Organization | The github.com organization the seat belongs to. For enterprise connections, every org in the enterprise. |
| Date | Daily granularity. |
Combine these the same way you'd combine any other dimensions - group by Feature within Organization, filter by User, build a Business Mapping that routes AI credit cost by team.
Which Copilot plan is supported
| Your Copilot plan | GitHub.com | Enterprise Cloud |
|---|---|---|
| Copilot Enterprise | - | Yes |
| Copilot Business | Yes | Yes |
| Copilot Pro+ | - | - |
| Copilot Pro | - | - |
| Copilot Free | - | - |
Individual plans (Pro, Pro+, Free) are not supported - they don't expose the organization or enterprise billing APIs Umbrella needs.
Before you start
- Billed through Azure? The Azure subscription that bills your GitHub enterprise must already be onboarded in Umbrella Cost.
- For GitHub.com (one organization): GitHub organization owner access. The
Copilot usage metricsorganization policy must be enabled. - For GitHub Enterprise Cloud: GitHub enterprise owner or billing manager access on github.com or on your GHE.com data residency subdomain. The
Copilot usage metricspolicy must be enabled everywhere in the enterprise. A dedicated service account is recommended for the token.
Step 1: Onboarding method
| Option | Pick this when |
|---|---|
| Billed through Azure (Enterprise only) | Your GitHub enterprise pays through an Azure subscription, and that Azure subscription is already connected to Umbrella Cost. The Copilot charges continue to arrive on the Azure invoice; Umbrella creates a separate Copilot account that shows usage per user at the amounts GitHub reports, while the cost stays on the Azure invoice. |
| Billed by GitHub | GitHub is paid directly, or the Azure account it's billed through isn't managed in Umbrella. The new Copilot account carries the cost, read from GitHub's billing data. Works for both github.com and GitHub Enterprise Cloud (including GHE.com). |
Why "Billed through Azure" is separateIf Copilot's cost already arrives on an Azure invoice you've connected to Umbrella, the Azure connection reports the dollar amount and the GitHub connection reports the per-user usage. Picking Billed through Azure keeps those two in sync so cost isn't double-counted.
Click Continue.
Step 2: Account details
| Field | What it is |
|---|---|
| Onboard this account to | Choose A customer (then pick the customer name) or My organization. |
| Display account name | Label this connection carries in Umbrella (e.g. Acme GitHub Copilot). This label identifies the connection throughout Umbrella Cost. |
| GitHub connection type | Choose GitHub.com or GitHub Enterprise Cloud. |
The side panel shows what each connection tracks and the role you'll need. Click Continue.
The remaining step depends on the connection type you chose. Follow the matching section below.
Step 3: GitHub.com setup
Open github.com/settings/personal-access-tokens in another tab, then follow the four token-creation steps.
Must be a fine-grained tokenClassic tokens are rejected for GitHub.com connections. They cannot read the billing data. Use Generate new token (fine-grained), not Generate new token (classic).
Create the fine-grained token
- Sign in as an organization owner. Open github.com as an organization owner.
- Create a fine-grained token. Choose Generate new token (fine-grained). Set the resource owner to the organization. Name it (e.g.
Umbrella Cost). - Grant three organization permissions, all Read. Under Organization permissions, set the following to Read:
- Administration
- GitHub Copilot Business
- Organization Copilot metrics
- Enable usage metrics and copy the token. In your organization settings, confirm that the Copilot usage metrics policy is enabled - without it, GitHub refuses the usage reports. Generate the token; it's shown only once, so copy it before leaving the page.
Fill in the connection fields
| Field | Value | Where to find it |
|---|---|---|
| Organization slug | The slug segment of your org URL | The <login> part of github.com/orgs/<login>. Lowercase, case-sensitive. |
| Fine-grained token | The github_pat_... value from the step above | Encrypted at rest by Umbrella. |
Read-only accessUmbrella Cost only reads Copilot usage, seat, team, and billing data with this token.
Click Create connection.
Step 3: GitHub Enterprise Cloud setup
Open github.com/settings/tokens in another tab (or your enterprise's equivalent on a GHE.com data residency subdomain), then follow the token-creation steps.
Must be a classic token for enterpriseEnterprise Cloud connections require a classic personal access token with billing scopes. Fine-grained tokens cannot carry the enterprise billing scopes Umbrella needs.
Create the classic token
- Sign in as an enterprise owner or billing manager. A dedicated service account is recommended so token rotation isn't tied to a person. If you're on GHE.com, sign in on your data residency subdomain.
- Generate a classic token. Choose Generate new token (classic), name it (e.g.
Umbrella Cost - Copilot Enterprise), and set an expiration. - Select the required scopes:
manage_billing:enterprise- read enterprise billing data.manage_billing:copilot- read Copilot billing data.
- Enable usage metrics everywhere. In your enterprise settings, confirm that the Copilot usage metrics policy is set to Enabled everywhere. Without it, GitHub refuses the usage reports.
- Copy the token. It starts with
ghp_and is shown only once.
Fill in the connection fields
| Field | Value | Where to find it |
|---|---|---|
| Enterprise slug | The slug of your enterprise | The slug segment of github.com/enterprises/<slug> on github.com, or the equivalent on your GHE.com data residency subdomain. Lowercase. |
| Classic token | The ghp_... value from the step above | Encrypted at rest by Umbrella. |
Click Create connection.
After you connect
Umbrella pulls the last 30 days of Copilot data on first ingest, then refreshes daily within 24 hours of GitHub's own metering. The connection first appears in Pending Data state and flips to Healthy once the first batch lands.
Copilot seat cost comes from GitHub billingUmbrella does not ask for a seat contract. Billed seat cost is read from GitHub's billing data directly, so amortized and net-amortized views reflect what GitHub actually invoiced. For connections marked Billed through Azure, cost stays on the Azure invoice and the Copilot account carries usage-per-user only.
Common use cases
Investigate an AI credit cost spike
- Open the AI Cost & Usage Explorer.
- Set the date range to cover the spike period and a few days before it.
- Group by Feature (completions, chat, agent, PR summaries) to see which surface drove the increase.
- Click the spike bar to drill down by the Next Drill dimension (e.g. User or Organization) and identify who or which team drove the increase.
- Optionally, filter by Model to narrow to specific model routing.
Run a seat chargeback report
- Set Group by to Organization (for Enterprise Cloud connections) or the dimension that maps to your cost center structure.
- Set the date range to the billing period (e.g. the previous calendar month).
- Review the Details table - each row shows one organization's or team's total Copilot cost, including seat cost and AI credit consumption.
- Export the table for your chargeback workflow.
Track adoption trends
- Group by User and set the date range to the last 90 days.
- Compare active-user counts to total assigned seats to measure utilization.
- Drill down by Feature to see which capabilities teams actually use - low chat or agent adoption on paid seats often indicates onboarding gaps.
- Set an Anomaly Alert on seat utilization to flag drops that may signal disengagement before renewal.
Token rotation
Fine-grained tokens (GitHub.com) expire on the date you set at creation. Classic tokens (Enterprise Cloud) also carry an expiration. To avoid data gaps:
- Create a replacement token in GitHub with the same scopes and resource owner.
- Update the token in Umbrella under Cloud Connections → [your connection] → Edit.
- Revoke the old token in GitHub.
Set a calendar reminder a few days before expiry so there's time to rotate cleanly.
Troubleshooting
"Classic tokens are rejected for organizations." The GitHub.com connection requires a fine-grained token. Regenerate using Generate new token (fine-grained) with the organization as the resource owner.
"GitHub refuses the usage reports." The Copilot usage metrics policy is off. Enable it in organization settings (or Enabled everywhere in enterprise settings) and retry.
Wrong resource owner on the fine-grained token. For GitHub.com connections, the token's resource owner must be the organization itself - not a personal account. If you created the token with your personal account as the resource owner, delete it and regenerate.
Missing permission on the fine-grained token. All three organization permissions must be set to Read: Administration, GitHub Copilot Business, and Organization Copilot metrics. GitHub silently returns empty results for any missing scope.
Wrong slug. Organization slugs and enterprise slugs are case-sensitive. Copy them from the GitHub URL rather than typing them. For GHE.com, use the slug from your data residency subdomain.
Enterprise token missing a scope. The classic token needs both manage_billing:enterprise AND manage_billing:copilot. Easy to miss - both scopes are grouped under collapsed sections on GitHub's token screen.
Cost appears twice (Azure-billed enterprise). The connection should be onboarded as Billed through Azure, not Billed by GitHub. If you picked the wrong option, delete the Copilot connection and recreate it with the correct onboarding method.
Related
Updated about 3 hours ago
