Skip to content
Marvex

AI & messaging

GitHub Copilot Integration

Seat and usage data from the Copilot API, placed next to cycle time, pull request size and deployment frequency — so the question "is this changing anything" has evidence behind it rather than a vendor slide.

Marvex reads GitHub Copilot organisation usage metrics and seat assignments through the GitHub Copilot API, and presents them alongside the DORA and pull request metrics for the same teams and the same period.

AuthA GitHub token authorised for the organisation with the copilot scope and organisation admin access — the Copilot metrics and billing seats endpoints both require it. The connector sends the token as a bearer credential with the 2022-11-28 GitHub API version header. GitHub Enterprise Server is supported through a custom domain, which resolves to that host’s /api/v3 base URL. A 403 from GitHub means the token lacks the copilot scope or admin access; a 404 means the organisation was not found or Copilot is not enabled for it.
A laptop on a desk showing lines of code in a text editor

Data Marvex reads

What we pull from GitHub Copilot

  • Organisation Copilot usage metrics from GET /orgs/{org}/copilot/metrics, returned as a series of daily records
  • Copilot seat assignments from GET /orgs/{org}/copilot/billing/seats, covering who holds a seat in the organisation
  • The since and until window on the metrics call, which GitHub limits to a maximum of 100 days in the past
  • Paged daily metrics, up to 100 days per page, so a full window can be assembled across requests

Once connected

What it unlocks

  • Seat utilisation: how many seats are assigned versus how many show activity
  • Copilot usage read on the same timeline as cycle time, pull request size and deployment frequency for the same teams
  • Before-and-after comparison across arbitrary date ranges, rather than only the current month
  • A combined view of AI-assisted development alongside Claude Code authorship data
  • Evidence for a renewal conversation that is drawn from your own delivery data

What the Copilot API gives you, and what it does not

GitHub exposes two things Marvex reads. The metrics endpoint returns a series of daily organisation-level usage records. The billing seats endpoint returns seat assignments — who in the organisation has a Copilot seat. That is the surface, and being clear about it up front saves a disappointing evaluation later.

What the API does not give you is a causal link between Copilot and any delivery outcome. No vendor endpoint can. Usage tells you a tool is being used; it does not tell you that cycle time fell because of it, and any tool claiming otherwise is selling you a correlation with a confident voice.

The useful thing Marvex adds is proximity. Copilot usage sits on the same timeline as the metrics that would have to move for the investment to be paying off — cycle time, pull request size, review time, deployment frequency — for the same teams and the same date ranges. That turns an unanswerable question into a readable one, without pretending the reading is proof.

  • Daily organisation usage metrics
  • Seat assignments from the billing endpoint
  • Both read on a schedule and stored locally
  • No claim of causation between usage and delivery outcomes

The 100-day window, and why it matters for reporting

GitHub limits the Copilot metrics endpoint to a maximum lookback of 100 days. That is a provider constraint, not a Marvex one, and it has a consequence worth planning around: if you want a year of Copilot history, you have to start collecting before you need it.

Marvex syncs on a schedule and stores what it reads, so history accumulates in the platform even though the API window keeps sliding forward. An organisation that connects Copilot today can compare quarters a year from now. One that connects the week before a renewal review can only look back a hundred days, whatever the tool.

The connector pages through the window — up to 100 days per page — rather than taking the first response and stopping, so the stored series is complete for the range it covers.

Seats assigned versus seats used

The single most actionable number in this integration is the gap between seats assigned and seats showing activity. It is also the one most likely to be uncomfortable, which is presumably why it is rarely on the vendor dashboard anyone shows a CFO.

Because Marvex reads both the seat list and the usage series, that gap is visible directly. Unassigning a dormant seat is a decision that pays for itself immediately and needs no methodology debate, which makes it the easiest first use of this connector.

The more interesting version of the question is whether usage is concentrated. A tool used heavily by four engineers and ignored by thirty is a different situation from one used lightly by everybody, and the two call for different responses — one is an enablement problem, the other is a fit problem.

  • Assigned seats, from the billing endpoint
  • Active usage, from the daily metrics series
  • The gap between them, which is the immediate cost lever
  • Distribution of usage, which is the enablement question

Reading Copilot next to Claude Code

Copilot is not the only AI tooling in most engineering organisations, and measuring one in isolation gives a partial picture. Marvex also tracks Claude Code authorship, which it derives from commit trailers rather than from a usage API, and reports both under AI adoption tracking.

The two sources are structurally different and it is worth knowing which is which. Copilot data is organisation-level usage and seat assignment reported by GitHub. Claude Code data is per-commit: which commits carry AI-assisted authorship, by whom, in which repository. One tells you about licensing and activity; the other tells you what actually landed in the codebase.

Read together, they answer a question that neither answers alone: is AI assistance concentrated in the same places where delivery metrics are moving, or somewhere else entirely?

Frequently asked questions

What Copilot data does Marvex read?

Two endpoints. Organisation usage metrics from GET /orgs/{org}/copilot/metrics, which returns a series of daily records, and seat assignments from GET /orgs/{org}/copilot/billing/seats. Marvex pages through the metrics window at up to 100 days per request and stores what it reads, so history accumulates locally. It does not read individual developers’ prompts, suggestions or code — those are not exposed by the Copilot API.

What access does the GitHub Copilot integration need?

A GitHub token with the copilot scope and organisation admin access, because GitHub requires admin access on both the Copilot metrics and the billing seats endpoints. Marvex sends the token as a bearer credential with the 2022-11-28 API version header. A 403 response indicates the token lacks the copilot scope or admin access, and a 404 indicates the organisation was not found or Copilot is not enabled for it. GitHub Enterprise Server is supported by configuring a custom domain.

How far back can Copilot metrics go?

GitHub limits the Copilot metrics endpoint to a maximum of 100 days of lookback, so no tool can retrieve a longer history from the API on first connection. Marvex syncs on a schedule and stores each window it reads, which means history accumulates in the platform beyond the API limit — but only from the point you connect. If you expect to need year-over-year comparison at a renewal, connect well before the review rather than during it.

Can Marvex prove that Copilot improved our delivery metrics?

No, and neither can anything else — the Copilot API reports usage and seats, not causation, and delivery metrics move for many reasons at once. What Marvex does is put Copilot usage on the same timeline as cycle time, pull request size, review time and deployment frequency for the same teams and date ranges, so you can see whether the metrics that would have to move are moving. That is evidence for a judgement, not a proof.

How do we find unused Copilot seats?

Compare the seat assignments Marvex reads from the billing endpoint against the daily usage series it reads from the metrics endpoint. Seats that are assigned but show no activity are the immediate cost lever, and reclaiming them requires no methodology debate. The follow-up question is distribution: usage concentrated in a handful of engineers is an enablement problem, whereas light usage spread across everyone is a question about fit.

Does Marvex track other AI coding tools besides Copilot?

Yes. Marvex also tracks Claude Code, but from a different source: authorship is derived from commit trailers rather than from a usage API, which gives per-commit detail — which commits were AI-assisted, by whom, in which repository. Copilot data is organisation-level usage and seat assignment. Both feed AI adoption tracking, and reading them together shows whether AI assistance is concentrated in the same places where delivery metrics are moving.

Marvex

Connect GitHub Copilot to Marvex

Authorise the GitHub Copilot integration and Marvex builds your delivery views from the history already in it. Integration tokens are encrypted at rest and scoped to your organisation.