Setup GitHub Copilot
Revenium tracks GitHub Copilot Business and Enterprise usage by syncing data from the GitHub Copilot Metrics and Billing APIs. Setup is through the Revenium dashboard, where the backend handles syncing automatically.
Requirements
GitHub Copilot Business or Enterprise active on your organization
A GitHub personal access token owned by an organization owner:
Fine-grained (recommended) — organization permissions Organization Copilot metrics (read-only) and Administration (read-only). Generate at https://github.com/settings/personal-access-tokens; an organization owner must approve the token before it starts working.
Classic — the
admin:organdmanage_billing:copilotscopes. Generate at https://github.com/settings/tokens.
"Copilot usage metrics" policy enabled in your GitHub organization settings (Settings > Copilot > Policies)
Revenium account with access to the Providers page
Connect your provider first: see Connecting Providers.
1. Add GitHub Copilot as a provider
In the Revenium dashboard, go to Integrations > Providers.
Select GitHub Copilot from the list of available providers.
Enter your Organization — the GitHub organization slug that owns the Copilot seats, as it appears in the organization URL (for example
acme, notAcme Corp).For the recommended fine-grained-token path, select Create a pre-filled token on GitHub. GitHub opens with the organization as the resource owner and the required read-only permissions pre-selected. Generate the token, then return to Revenium.
Paste the token into Personal Access Token. You can also paste an existing fine-grained or classic GitHub token that meets the Requirements above.
Save the configuration.
Once saved, Revenium refreshes Copilot usage data automatically once daily. No CLI installation or local configuration is required.
If you start from the AI assistant setup instead, choose GitHub Copilot and select Connect GitHub Copilot. The provider form opens with GitHub Copilot already selected, and you continue from step 3.
2. Verify data is flowing
Saving the credential triggers an immediate historical import covering up to the last 90 days, depending on the data available for your organization. Current usage arrives on two delays that stack: GitHub aggregates Copilot metrics with an approximately 24-hour delay, and Revenium refreshes the Copilot provider once daily. Expect today's numbers tomorrow.
Check Intelligence > AI Assistants > Copilot in the dashboard to confirm usage data is appearing.
The Copilot page also shows Cost by Model for supported date ranges. The table lists Model Name, Total Cost, Credits applied, and % of Total from GitHub's Copilot billing. GitHub does not provide a per-model request count, so the table reports cost, applied credits, and each model's share of the invoiced total.
On the dashboard
Open Intelligence > AI Assistants > Copilot to see usage and costs from GitHub Copilot, including Cost by Model for supported date ranges. Current usage reflects GitHub's aggregation and Revenium's daily refresh.
Troubleshooting
No data appears after adding the provider
GitHub's own 24-hour aggregation delay plus a daily refresh means an empty first day is expected. If nothing shows after 24 hours:
Confirm the token carries the permissions listed under Requirements. A token missing either one cannot read the metrics API. Tokens cannot be inspected after saving: replace it in Integrations > Providers > GitHub Copilot by entering a new token and re-entering the organization slug.
Confirm the "Copilot usage metrics" policy is enabled for your organization under Settings > Copilot > Policies. With the policy off, GitHub returns no metrics even to a correctly-scoped token.
Confirm the organization slug is correct and that the org has Copilot Business or Enterprise active — usage metrics are not available on individual plans.
GitHub token rejected
The token must start with
ghp_(classic) orgithub_pat_(fine-grained).Regenerate it and update it in Integrations > Providers, entering the new token and the organization slug together. A blank organization is rejected.
A token that has expired or had its organization access revoked fails the same way as a mis-scoped one.
Last updated
Was this helpful?