GitHub Copilot Usage Lens is an analysis tool for the GitHub Copilot AI credits usage report (the CSV export from GitHub billing). Drop one or more files in and you get an interactive management view: how much is used and billed, who uses what, how the shared included credits behave, which users and models drive cost, which seats are idle, and a list of recommendations ordered by impact, each with an estimated saving and official GitHub and Microsoft links.
Try it: amgdy.github.io/github-copilot-usage-lens. Choose View a sample report to see every page with made-up data, or drop in your own file.
More screenshots are in Screenshots, and docs/SCREENSHOTS.md shows every page with a short explanation.
Nothing is uploaded. The CSV is read and analyzed in your browser (in a Web Worker). There is no backend and no network call after the page has loaded, except the live price check that you start yourself in Settings.
The app is in English (the main language) and Arabic (right-to-left), and every number has an info button that explains how it was calculated.
The interface has its own calm look, like a printed company report in GitHub colors: Primer grays, GitHub blue for the brand and charts and GitHub green for the main action, set in Mona Sans by GitHub and IBM Plex Sans Arabic. Both fonts are bundled, so the report looks the same offline, in light and dark modes. Settings also offers high contrast and colorblind friendly colors, like GitHub's own appearance settings.
This is an independent open source project. It is not made by, connected to or endorsed by GitHub or Microsoft. GitHub, GitHub Copilot and Microsoft are trademarks of their owners, and their names and logos are used only to name the products.
- docs/FEATURES.md: what the app does and the key values for admins, in plain language.
- docs/SCREENSHOTS.md: a screenshot of every page with a short explanation.
- CONTRIBUTING.md: how to set up the project and send a change.
- AGENTS.md: how the project is organized and the rules for changing it.
git clone https://github.com/amgdy/github-copilot-usage-lens.git
cd github-copilot-usage-lens
npm install
npm run dev # http://localhost:5173| Command | What it does |
|---|---|
npm run dev |
Development server with hot reload. |
npm run build |
Type-check and build to dist/ (code-split, one lazy chunk per page). |
npm run build:single |
Build one self-contained dist/index.html. Open it from disk, email it, or put it on any static host. Works offline and from file://. |
npm run preview |
Serve the production build locally. |
npm test |
Run the Vitest suite (tests/). |
npm run typecheck |
Check types twice: tsconfig.app.json for the app in src/ and tsconfig.node.json for the tests, scripts and Vite config. |
npm run gen:demo |
Write the made-up demo CSV to demo-data/demo-usage-report.csv (add -- --seed 42 or -- --random). |
npm run check:prices |
Compare the built-in model price card with the live GitHub Docs pricing page. |
Requires Node 26. The .nvmrc file holds the version for tools such as nvm and fnm. The gen:demo and check:prices scripts run their TypeScript files directly with Node, so they need no extra tool.
The start page has two ways in:
- Drop or choose one or more usage CSV files (and, in the same drop, a license list or a GitHub data file). For an enterprise, the GitHub data file of the collector script can hold the AI usage report, so that one file is enough. The drop zone lists the file types it takes, and Which file do I need? leads to a short guide below it: the AI usage report first, then the license list, then the GitHub data file, each with what it gives and where to get it.
- View a sample report to see every page before you load your own file. The sample is made up in your browser from invented people, organizations and numbers. It reads no file, and no report data is built into the app. While the sample is open, every page says so, and your saved license list is left out so no real names mix with invented data. Settings and Licenses say so too, and the sample's invented users can't be saved into your license list. Open your own report at any time to replace it.
The sample is a made-up company, Northwind, with 140 GitHub Copilot seats over three months. Logins follow the GitHub Enterprise Managed Users pattern: the Microsoft Entra ID login name, an underscore and the enterprise short code, for example KofiIto_nwind. The months tell one story, so every recommendation and tip has something to show:
| Month | What happens | Try this view |
|---|---|---|
| First month | A careful rollout. Less than half of the included credits are used. | Pick the first month in the date range: the pool is under-used. |
| Second month | Six people start long agent sessions on costly models. The included credits run out and the rest is billed. The last week is a release freeze. | Pick the second month: overage, budgets and a drop in the last week. |
| Third month | Session limits calm the heavy users, coaching lifts everyday use and a new team of 22 people joins. | Pick the third month: a healthy pool. The whole range shows the new users and the rise in the last week. |
The sample also has idle and lapsed seats, people in two organizations, repository scans with no user, a cost center that is missing for some people, and one small research team (northwind-labs) where one person uses most of the credits. Filter on that organization to see it. Only one recommendation needs your own data: the one about missing columns in the file. The sample also has made-up GitHub data (seats, budgets, billing and seat changes), so the Budgets page and the GitHub data cards have something to show. Your own GitHub data file is never used with the sample.
The same generator can write the sample as a file for tests and for people who work on the app: npm run gen:demo (or npm run gen:demo -- --random) writes demo-data/demo-usage-report.csv. The folder is ignored by Git and holds made-up data only.
Several files are merged. A row that appears in more than one file with identical values is dropped once, so overlapping exports do not double count (the Data page lists duplicates per file). Load other data in the sidebar returns to the start page without losing the current dataset, and so does the logo at the top of the sidebar and the mobile menu; Back returns to it. Start fresh (in the sidebar, the mobile menu and on the Data page) closes everything loaded in the tab, the usage report or sample and the GitHub data file, after one question that lists what is closed. In the same question you can also delete the settings saved in this browser.
- Usage report (required, unless the GitHub data file has it): in GitHub, open Billing and licensing, then the AI usage page, and choose Get usage report. GitHub emails you a link to the CSV.
- License list (recommended): for most admins, use the GitHub Copilot activity report (CSV). No CLI is needed. In an organization, open Settings, then GitHub Copilot, Access, Get usage report and Get activity report. In an enterprise, open Billing and licensing, then Licensing and Get activity report. It adds activity details for seat review, but has no plan or seat start date. Check that the file covers the same organization or enterprise as your usage report and compare its seat count with GitHub. A CSV can have missing seats, and the app cannot identify omitted seats. Load it on the Licenses page, the Data page or together with the usage report.
- Other license files: the GitHub Copilot user management REST API (JSON), seats CSV, or a plain list of logins are also supported. The API is an advanced option for plans, seat start dates, pending cancellations or repeatable exports. Both the activity report and API use a 90-day activity window. New seats and activity older than 90 days can have a blank activity date; blank does not mean never used.
- GitHub data file (optional, the most complete): made by the collector script in this repository. It adds your seats, budgets, the whole bill, activity with code completions and seat changes. For an enterprise it has the AI usage report too. See Collect more data from GitHub.
- Settings file (optional): exported from the Settings page, to share your budget, thresholds, seat list and price overrides.
The Data page also lists other GitHub exports that add context (usage metrics, cost centers, teams, budgets), what each adds, and how to get it.
Most admins can use the activity report above instead. Use the seats API when you need the assignment details it includes, or want a repeatable export. The API does not extend the 90-day activity window. Check that the result covers the right organization or enterprise and compare the number of seats with GitHub.
An administrator with access to the relevant organization or enterprise can export all pages of seat assignments:
gh api --paginate "/orgs/ORG/copilot/billing/seats?per_page=100" > seats.json
# Or, for the whole enterprise:
gh api --paginate "/enterprises/ENTERPRISE/copilot/billing/seats?per_page=100" > seats.jsonReplace ORG or ENTERPRISE with your GitHub name. Import the resulting file into the app; do not paste a token into it. Export all pages, use the same billing scope as the usage report, and check the import preview before replacing the current list. A current list does not prove which seats existed in past months.
The collector script reads the same seats, together with budgets, billing and activity, in one step.
date, username, product, sku, model, quantity, unit_type, applied_cost_per_quantity,
gross_amount, discount_amount, net_amount, total_monthly_quota, organization,
app_client_id, repository, cost_center_name, aic_quantity, aic_gross_amount,
input, output, cache_read, cache_write
The parser handles the UTF-8 BOM, quoted fields, CRLF, and numbers in scientific notation, and it accepts common header variants (user, login, ai_credits, cost_center, ...). Only a date column and either gross_amount or quantity are required; any other missing column is listed on the Data page and the views that need it say so, instead of the file being rejected. Notes on the format:
dateis normally2026-10-03. The parser also reads2026/10/03,10/3/2026(month first),25/10/2026(day first, when only that reading is possible),Oct 3, 2026and3 Oct 2026, with or without a time. Only the calendar date is used, so the result does not depend on your time zone. Rows with an unreadable date are skipped and counted on the Data page.quantityis AI credits; 1 credit = 0.01 USD.gross = quantity × 0.01 = discount + net.discount_amountis the part covered by included credits of the seats;net_amountis billed.usernameis blank for repository-level products (such as code quality). Those rows still use included credits and are shown as one unattributed entry.- Auto model selection appears as
Auto: <model>and is split into a model plus an "Auto" flag. The Auto discount is already insidequantity, so the app works out the original price from it. - The
aic_*columns duplicate the credit columns and are ignored. - Token columns (
input,output,cache_read,cache_write) are optional. With them, every user and model shows input, output, cache read and cache write tokens; without them the app uses the credit totals and hides cache and token figures.
The usage report shows AI credits only. It has no seat list, no budgets, no seat charges and no code completions. Two scripts in this repository read that data from GitHub and save it in one file, the GitHub data file. Load it in the app, and the app gets more exact and finds more.
For an enterprise, the script gets the AI usage report too, so the GitHub data file is the only file you need. For organizations, GitHub has no way to download the AI usage report from a script, so load the file together with the usage report CSV.
The start page and the Data page have a command maker: choose your computer, the enterprise or organizations and the options, and copy the command it makes. The command gets the script from GitHub and runs it, so there is nothing to download. The steps below say the same in more detail.
| What the file holds | What the app does with it |
|---|---|
| The AI usage report (CSV) of each month, enterprises only | The app reads it as if you had loaded the usage report. A usage report CSV that you load with the file takes its place. |
| Every GitHub Copilot seat: plan (Business or Enterprise), start date, last activity, pending cancellation and team | Fills the license list, so the included credits, the pool size and the seat review use your real seats. |
| Budgets: the amount, what is used, whether the budget stops usage or only sends alerts, and budgets for single users, cost centers and everyone | The Budgets page shows how the limits fit together, each budget, how full it is and when it runs out. Each user profile shows the limit that holds the user as their target. The AI credit budget becomes the monthly budget when Settings has none. |
| What GitHub billed each month, seats included | Usage and pool shows the whole GitHub Copilot bill. The Data page checks the usage report against GitHub billing, month by month. |
| Seat totals, the seat policy and the members of each organization | Licenses shows the seats added, pending and inactive this billing cycle, and members without a seat. |
| Activity per user and day from the GitHub Copilot usage metrics, including code completions | Licenses shows who is active at GitHub but has no usage in the report, so nobody is called idle by mistake. |
| Seat, plan, policy and budget changes from the audit log | Licenses shows the seats added and removed each month. |
| The teams of each GitHub Copilot user | The Organization page groups usage by team. |
The file also adds five recommendations: a budget that only sends alerts, a budget that will stop usage, people who reached their own budget, organizations that give a seat to every member, and months where the usage report and GitHub billing do not agree.
The scripts only read. They change no settings on GitHub and send your data nowhere else. The one thing they can ask GitHub to do is make an AI usage report, the same as Get usage report on the billing page, when the billing page has no complete report for a month. The file stays on your computer, and the app reads it in your browser.
- Install the GitHub CLI (
gh), version 2.40 or later.- Windows:
winget install --id GitHub.cli - macOS:
brew install gh - Linux: follow Installing gh on Linux.
- Windows:
- Sign in once with
gh auth login. For GitHub Enterprise Cloud with data residency, add--hostname NAME.ghe.com. - Use an account that is an enterprise owner or billing manager, or an organization owner or billing manager.
- If your network allows only some addresses, ask your network team to allow the addresses in Network access.
You do not need to know the token scopes. The script checks your sign-in and, when a scope is missing, offers to add it with gh auth refresh, which opens GitHub in your browser.
The script uses HTTPS (port 443). If your network allows only some addresses, ask your network team to allow these before you run it:
| Address | What it is used for |
|---|---|
raw.githubusercontent.com |
Only to get the script with the commands in Run it. |
github.com (with data residency: SUBDOMAIN.ghe.com) |
Only to sign in with gh auth login. |
api.github.com. With data residency: api.SUBDOMAIN.ghe.com. GitHub Enterprise Server: your server. |
Every request to GitHub, through gh. |
copilot-reports.github.com (with data residency: *.SUBDOMAIN.ghe.com) |
The activity report files, of the sources user-metrics, scope-metrics and user-teams. |
copilot-reports-*.b01.azurefd.net and usagereports*.blob.core.windows.net |
The same files, when GitHub sends them by its backup route. |
mbproduction.blob.core.windows.net |
The AI usage report files of usage-report, for an enterprise on GitHub.com. GitHub does not name this address in its docs. It is the one in the download links at the time of writing. |
The report addresses come from the GitHub Docs page GitHub Copilot allowlist reference. With data residency, allowing *.SUBDOMAIN.ghe.com and SUBDOMAIN.ghe.com covers the GitHub addresses.
You can see the list for your host before you run anything:
- In the app, the command maker shows it for your choices under Does your network allow only some addresses?
--list-sources --hostname HOST(-ListSources -Hostname HOST) prints it and stops. It sends no request to GitHub.- The plan the script shows before it asks to start lists the addresses of that run.
When the script starts, before it asks anything, it checks that it can reach these addresses. It sends one HTTPS request with no token to each one and prints answers or no answer with the reason, for example:
Checking the network (HTTPS, port 443)
api.github.com answers
copilot-reports.github.com no answer: The network proxy refused the connection (HTTP 403).
copilot-reports-*.b01.azurefd.net not checked: GitHub picks the full name when it sends a file
It cannot check an address with a *, because GitHub picks the full name only when it sends a file. It does not check raw.githubusercontent.com or github.com, which are only needed to get the script and to sign in. If an address does not answer, the script says that the data that needs it may be missing and asks Go on anyway?. With --yes (-Yes) it goes on without asking. If the GitHub API does not answer, it does not ask, and the sign-in check names the problem.
GitHub can send report files from other addresses too. When the script cannot reach an address, for example because a firewall or proxy blocks it, the note of that source names it, for example Could not download the report file from copilot-reports.github.com: The network proxy refused the connection (HTTP 403)., and the summary lists every such address under Network. If it cannot reach the GitHub API, it stops at once and names the address.
On Windows, curl checks if the certificate of each download address was revoked. When the network blocks the servers that answer this (CRL and OCSP), curl stops with CRYPT_E_NO_REVOCATION_CHECK or CRYPT_E_REVOCATION_OFFLINE. The script then tries again with --ssl-revoke-best-effort, which goes on only when the check cannot be done; a revoked certificate still stops it. If your curl is older than 7.70 and does not know that option, collect.ps1 downloads the files with .NET, which, like gh, does not do this check. The summary names these addresses too. To keep the full check, ask your network team to allow the revocation servers named in the certificates. They answer over HTTP (port 80). At the time of writing, these are:
*.c.lencr.org(Let's Encrypt) forcopilot-reports.github.com.oneocsp.microsoft.com,www.microsoft.comandcrl2.microsoft.com, andocsp.digicert.comandcrl3.digicert.comfor the root, formbproduction.blob.core.windows.net.
Open a terminal (on Windows, PowerShell or Command Prompt) and run the line for your computer. It gets the script from this repository and runs it, so there is nothing to download or install.
macOS or Linux:
curl -fsSL https://raw.githubusercontent.com/amgdy/github-copilot-usage-lens/main/scripts/collect.sh | bashWindows:
powershell -ExecutionPolicy Bypass -Command "& ([scriptblock]::Create((irm https://raw.githubusercontent.com/amgdy/github-copilot-usage-lens/main/scripts/collect.ps1)))"-ExecutionPolicy Bypass lets Windows run this one script and changes no settings. You can read collect.sh and collect.ps1 on GitHub before you run them. The command maker in the app points the command at the scripts of the app version you use, so the file always fits the app.
With no options, the script first checks the network (see Network access), then asks what to read. It lists the enterprises and organizations you manage, asks whether to get the AI usage report (enterprises only), asks how many months to read, shows the plan and waits for your OK. To give the options yourself, put them after bash -s -- on macOS and Linux, or before the last quote on Windows:
curl -fsSL https://raw.githubusercontent.com/amgdy/github-copilot-usage-lens/main/scripts/collect.sh | bash -s -- --enterprise octocorp --months 6
curl -fsSL https://raw.githubusercontent.com/amgdy/github-copilot-usage-lens/main/scripts/collect.sh | bash -s -- --org octo-org,octo-labspowershell -ExecutionPolicy Bypass -Command "& ([scriptblock]::Create((irm https://raw.githubusercontent.com/amgdy/github-copilot-usage-lens/main/scripts/collect.ps1))) -Enterprise octocorp -Months 6"
powershell -ExecutionPolicy Bypass -Command "& ([scriptblock]::Create((irm https://raw.githubusercontent.com/amgdy/github-copilot-usage-lens/main/scripts/collect.ps1))) -Org octo-org,octo-labs"Use a copy when your company does not let you run scripts from the internet, or to run the script on a schedule, so that a change on GitHub never changes what runs. Download the repository as a ZIP file and unpack it, or clone it. Open a terminal in its folder and run the line for your computer:
| Your computer | Command |
|---|---|
| Windows | powershell -ExecutionPolicy Bypass -File scripts\collect.ps1 |
| macOS or Linux | bash scripts/collect.sh |
| PowerShell 7 on any system | pwsh -File scripts/collect.ps1 |
Git Bash and WSL on Windows can run bash scripts/collect.sh too. To run it without questions, for example on a schedule, give the options and --yes:
bash scripts/collect.sh --enterprise octocorp --months 6 --yes
bash scripts/collect.sh --org octo-org,octo-labs --yespowershell -ExecutionPolicy Bypass -File scripts\collect.ps1 -Enterprise octocorp -Months 6 -Yes
powershell -ExecutionPolicy Bypass -File scripts\collect.ps1 -Org octo-org,octo-labs -Yes| bash | PowerShell | What it does |
|---|---|---|
--enterprise SLUG |
-Enterprise SLUG |
Read an enterprise. |
--org NAME |
-Org NAME |
Read one or more organizations. Separate names with commas. With an enterprise, only these organizations get their own details. |
--months N |
-Months N |
Months of billing data and audit events, counting this month: 1 to 24, default 3. |
--daily-metrics |
-DailyMetrics |
Read the activity of every day in those months, not only the last 28 days. It takes longer. |
--teams |
-Teams |
Also read the members of every team. It sends one request per team. |
--hostname HOST |
-Hostname HOST |
Your GitHub host, for example octocorp.ghe.com. The default is github.com. |
--output FILE |
-Output FILE |
Where to save the file. A folder works too. |
--plain |
-Plain |
Save plain text (.ndjson) instead of a compressed file. |
--only LIST, --skip LIST |
-Only LIST, -Skip LIST |
Read only these sources, or leave them out. Separate names with commas. |
--list-sources |
-ListSources |
Show every source, the access it needs and the network addresses to allow. With --hostname, the addresses are for that host. |
--yes |
-Yes |
Ask nothing and use the options as given. |
--help |
-Help |
Show every option. |
The PowerShell script also accepts the bash names, such as --enterprise octocorp.
| Source | What it reads | Who can read it (token scope) |
|---|---|---|
usage-report |
The AI usage report (CSV) of each month, enterprises only | Enterprise owner or billing manager (manage_billing:enterprise) |
organizations |
Organizations in the enterprise | Enterprise owner (read:enterprise) |
seats |
GitHub Copilot seats: user, plan, start, last activity | Owner or billing manager (manage_billing:copilot) |
seat-summary |
Seat totals and GitHub Copilot policies per organization | Organization owner (read:org) |
members |
Members of each organization | Organization member (read:org) |
teams |
Members of each team, only with --teams |
Organization member (read:org, read:enterprise) |
budgets |
Budgets, their amounts and what is used | Owner or billing manager (manage_billing:enterprise) |
cost-centers |
Cost centers and who is in them | Enterprise owner or billing manager (manage_billing:enterprise) |
ai-credit-usage |
AI credits billed per month, by product, SKU and model | Owner or billing manager (manage_billing:enterprise) |
usage-summary |
Billing summary per month for every product | Owner or billing manager (manage_billing:enterprise) |
billing-usage |
Daily GitHub Copilot charges | Owner or billing manager (manage_billing:enterprise) |
user-metrics |
Activity per user and day, including code completions | Owner or billing manager (manage_billing:copilot, read:org) |
scope-metrics |
Activity totals per day | The same as user-metrics |
user-teams |
Teams of each GitHub Copilot user | The same as user-metrics |
audit-log |
Seat, plan, policy and budget changes | Owner (read:audit_log) |
For organizations, the billing sources need an organization owner or billing manager. The activity sources need the usage metrics policy for GitHub Copilot set to "Enabled everywhere". When a source cannot be read, the script goes on and its summary says why. The app uses what is there and shows what is missing.
While a step works, its line shows that the script is busy: a turning sign, the items read so far and, when the number of requests is known, a bar such as [####------] 4/10. It also says when it waits for GitHub, for example GitHub makes it, up to 12 min. When the step is done, the line shows only the result. This happens only in a terminal. When the output goes to a file or another program, each step writes one line with its result.
usage-report uses a report from the last 31 days when it covers the whole month and GitHub made it after the month ended. A report made earlier misses the last hours of the month. Otherwise it asks GitHub to make one, which takes a few minutes and adds the report to the billing page, as the usage reports API does. The month the script runs in is not over yet, so the script always asks for a new report for it, unless GitHub is still making one. GitHub makes only one report at a time, so the script asks for the next month when the one before is ready. GitHub gives no file for a report without usage, for example on the first day of a month, so the file says that month has no usage yet. It waits at most 15 minutes after the last report it asked for and checks every 20 seconds. To change that, set USAGE_LENS_REPORT_WAIT_SECONDS and USAGE_LENS_REPORT_POLL_SECONDS. If a report is not ready in time, the file says so; run the script again a few minutes later. Leave the report out with --skip usage-report (-Skip usage-report).
- The file is saved in the folder you run the script from, as
usage-lens-data-NAME-TIME.ndjson.gz. Git ignores these files. - It is NDJSON (one JSON object per line), compressed with gzip. The first line says what was read and for which months, each data line holds one item from GitHub, each request has a line with its result, and an end line shows that the script finished. Any tool that reads JSON lines can open it.
- It holds GitHub logins, seat details, budgets, billing amounts and activity counts. Names, email addresses, avatars, locations and user agents are left out. Treat it like the usage report: keep it safe and delete it when you are done.
- Load it on the start page, alone when it has the AI usage report or together with the usage report CSV, or later on the Data page. The GitHub data file card on the Data page shows what the file holds and what could not be read.
If a request is refused with HTTP 403, check your role, the scopes in the table above and, with SAML single sign-on, that the token is authorized for the organization. If gh uses a token from GH_TOKEN, GITHUB_TOKEN or GH_ENTERPRISE_TOKEN, that token needs the scopes, because gh auth refresh cannot change it.
| Page | What you get |
|---|---|
| Overview | Headline verdict, key figures with trend, usage over time (covered vs billed, by tier, vendor or product), included credits status, savings still possible, the Auto discount received, top recommendations, segment mix, top users and model groups. |
| Usage and pool | Usage over time, monthly pool burn-down with a projected month end, monthly table, cost drivers, SKU table, budget tracking and a plain explanation of how billing works. |
| Budgets | With the GitHub data file: every GitHub Copilot budget, share used, projected month end, users at or near their limit, and budget changes. The Limit map draws the enterprise limit as a frame around all spending. Each row inside is the spending limit a group of people checks: a cost center, a seat organization, only the enterprise limit, or not clear when a user has seats in several organizations. In an organization file, users in an enterprise cost center are drawn outside the organization frame, because the organization limit does not count them. Each square is one person, filled to the share of their user limit used. Icons mark where each limit is set: enterprise, organization, cost center or person. A strip shows how the limits inside add up against the frame, and each row shows the room left, the smaller of its own room and the frame's. Select the frame, a row or a square for details, such as a user's effective limit and the defaults it replaces. Search, usage-level and limit-type filters and day-by-day playback help inspect large groups. Repository budgets remain in the budget table. The map also prints. |
| Users | Rankings by any metric, concentration (Lorenz curve and A/B/C classes), usage vs active days, users who need attention (runaway users, most to gain, fading, new), idle seats, a full sortable table with input, output, cache read and cache write tokens, and a user drawer with a profile, trend, models, Auto use, personal tips and, with the GitHub data file, the user's AI credit limit as their target. |
| Segments | User groups side by side (persona, usage tier, engagement, lifecycle, usage profile, Auto use), a cross-group matrix, pool flow (who lends and who borrows credits) and the rules behind each group with live thresholds. |
| Models | Model ranking, model group and vendor split, models over time, Auto vs hand-picked models, the Auto discount (paid price vs original price), a model table with tokens, right-sizing ideas, and the price card in use with its date. |
| Efficiency | Scorecard from best to worst, savings levers and their combined effect, tokens and cache reuse (read and write), cost per active day, role models and a playbook. |
| Organization | Any dimension (organization, cost center, repository, app) as ranking and treemap, showback and chargeback, users without a cost center. |
| Patterns | Daily timeline with unusual days marked, weekday profile, calendar heatmap, adoption curve, unusual days table, lapsed and fading users, month table. |
| Recommendations | Recommendations ordered by impact, with filters, a what-if simulator that recomputes cost live, seat actions, the playbook, official links and Ask GitHub Copilot, a detailed prompt for six analysis tasks. |
| Licenses | Seats from your license list: who uses them, who does not, last activity, seats you can free up and what they cost, and seats with no usage in the report. |
| Data | File quality (rows read, kept, duplicates, bad cells), integrity checks, coverage, the license list, other GitHub exports you can add, a row explorer and a CSV download of the filtered rows. |
| Settings | Theme, colors (GitHub, high contrast, colorblind friendly), Arabic digits, monthly budget, every threshold behind the groups with live previews, seat list and extra seats, model price overrides, a live price check, import and export of settings, and a glossary. |
| Methodology | Every calculation in one searchable list: what it is, the formula, the inputs, an example, the limits and official links. The same text opens from the info button next to each number. |
The language button at the top switches between English and Arabic. Dropdowns are sorted A to Z, lists that rate something go from best to worst, and recommendations and tiles go from most to least impact.
The top bar and Filters drawer apply to every page at once and show a live "N of M rows match". Active filters appear as removable chips. Filters cover:
- Time: date range with presets, and weekdays.
- Users, plans and organizations: users, plan (by included credits), organizations, cost centers.
- Models: model, vendor, model group, and Auto vs hand-picked.
- Products and sources: product, SKU, repository, app client, source file.
- Billing and rows: covered vs billed, per-user vs repository-level, the cost of a single row, and a free-text search.
- User groups: persona, usage tier, engagement and lifecycle, usage profile, Auto use, traits, Pareto class and usage per user.
Charts and tables are clickable: clicking a bar, slice, cell or row narrows the whole app to it (drill-down), and the same filters are applied to exports.
From Export in the top bar: an executive summary in Markdown (copy or download), per-user action list (CSV), recommendations (CSV), and print or save as PDF (light colors, navigation hidden, filters and data source printed at the top). Charts have a PNG download, tables have CSV download. Downloaded files are named github-copilot-....
On Recommendations, Ask GitHub Copilot builds a detailed prompt for one of six tasks: brief leadership, find patterns the dashboards miss, review seats, review budgets and limits, review model usage, and plan next steps for user groups. Use it for the questions that need several tables at once, such as the likely cause of a spike, a projection with low and high cases, or a fair plan for each user group.
- Only the data the task needs. The prompt holds calculated results, not raw usage rows, in a compact text form: one header line per table (
name[rows]{columns}:) and comma-separated rows. Long tables show only their top rows, so a large report gives about the same size: the sample report gives prompts of about 19,000 to 38,000 characters. The dialog shows the size of each prompt. - Clear rules and a fixed answer. The prompt explains how to read the data, the rules of the numbers (shared included credits, savings that overlap, code completions not in the report), how to think, and an answer format: In brief, Findings with evidence and confidence, the task sections, Actions with owners, Risks and data limits, and Questions.
- Deep reasoning. The prompt asks for the model's deepest reasoning. Pick a reasoning model and the highest thinking level your GitHub Copilot client offers.
- Private by default. User names are replaced with aliases such as
user-01in tables and in text, unless you turn names on. The app does not send the data: review the prompt, then copy it or download it as a Markdown file. In Arabic, the instructions are in Arabic and the answer is asked for in Arabic.
The dialog also downloads instructions for a GitHub Copilot Space, so you can add the prompts to a Space and ask follow-up questions.
CSV downloads are UTF-8 with a byte order mark, so Excel opens them with the right characters. A text cell that starts with =, +, - or @ gets a leading ', so a spreadsheet shows it as text instead of running it as a formula.
All screenshots use the made-up sample report. No real data is shown. See docs/SCREENSHOTS.md for every page.
![]() |
![]() |
| Overview | Recommendations |
![]() |
![]() |
| Usage and pool | Users |
![]() |
![]() |
| Budgets | Budgets: selected user |
![]() |
![]() |
| Models | Efficiency |
![]() |
![]() |
| Arabic, dark mode | User details |
Included credits are shared. Each GitHub Copilot seat comes with monthly included credits (Business 1,900 credits = 19 USD, Enterprise 3,900 credits = 39 USD) that go into one pool per billing entity and reset on the 1st (UTC). Usage is paid from the pool first; only what goes beyond the pool is billed. So:
- a user can use more than their own included credits without causing a charge if others leave credits unused;
- monthly cost =
max(seat fees, usage), because unused included credits are still paid for in the seat fee; - using less saves cash only down to the pool size, and removing a seat saves only what the pool does not need.
The app separates usage (the gross amount in the report, already reduced by any Auto discount) from billed (usage charged on top of seats). Usage is not the price before Auto discounts, and billed usage alone is not the whole invoice.
Pool size. The file only knows the seats that appear in it. Without a license list, pool size is a lower bound, and the app says so. Load the license list (Licenses page) or add the seat list in Settings to include seats missing from the usage report. The estimate still depends on list completeness, seat plans, dates and billing scope. If covered usage exceeds what the visible seats can fund, pool size, unused credits and seat savings are hidden instead of guessed. The savings calculation can still use reported billed usage: it estimates the effect on that overage, not a guaranteed change to your invoice.
Auto discount. The export already includes any Auto reduction. The app compares eligible Auto rows with the official token prices to estimate the original price and Auto discount received. Each plan uses its measured rate when at least $1 of eligible Auto usage is available; otherwise it uses the assumed rate in Settings (10% by default). Both bases are labeled. Rates can differ between plans; the app does not guess why. The app also shows each user's share of usage through Auto and the possible discount on hand-picked usage. This is potential usage reduction, not guaranteed cash savings.
License list. Load the GitHub Copilot activity report, the seat assignments JSON, a seats CSV or a plain list of logins. The app matches seats to users without regard to case, and groups seats by last activity: active in the last 30 days, fading (30 to 89 days), inactive for 90 days or more, and seats with no recent activity date. Blank dates are not proof that a seat was never used, so those seats are shown for review and are not counted as seats to free or unused seats. A list older than 30 days is flagged as old. The values of idle and unused seats overlap, so they are never added up.
Seat list in Settings. Paste or upload one GitHub username per line, optionally followed by the plan (alice,Enterprise or alice Business). A plan can be Business, Enterprise, a number of credits (3900 or 3900 credits) or a dollar amount ($39). A seat without a plan uses the plan the report shows for that user, or the most common plan in the report if the user never appears in it. A header row is recognized and usernames are matched without regard to case.
Filtered views. The pool is shared by everyone, so it cannot be split by a filter. In a view narrowed by any row or group filter (a date range does not count), organization-wide pool and seat statements are hidden, and savings are shown as usage, with the cash that is already billed in that slice given as "at least".
Every number explains itself. Each figure has an info button with what it is, the formula, the inputs, a worked example, the limits and official links. The Methodology page lists all of them and can be searched.
All thresholds are editable in Settings (defaults in brackets) and take effect immediately.
| Group | Classes |
|---|---|
| Usage tier (usage as a share of the user's own included credits) | Minimal (below 10%), Light (10 to 40%), Core (40 to 100%), Power (100 to 300%), Runaway (300% and above). |
| Engagement (share of workdays active since the user started) | Daily (60% and above), Regular (30 to 60%), Occasional (10 to 30%), Rare; plus New (first seen in the last 14 days) and Lapsed (no activity for 7 or more days after earlier use). |
| Persona (one label per user, in this precedence) | Runaway users, New users, Lapsed users, Champions (regular and at least Light), Burst users (heavy use on few days), Steady light users, Dormant or low use. |
| Usage profile | Efficient (70% or more of usage on Versatile or Lightweight models), Balanced, Frontier-heavy (70% or more on Powerful models). |
| Auto use | Auto-first (50% or more of usage through Auto), Mixed (10 to 50%), Direct models (under 10%), Not enough data. |
| Pareto class | A: top users (first 80% of usage), B: middle (next 15%), C: long tail (last 5%). |
| Traits (can combine) | Long-context surcharges, Spiky usage, Low cache reuse, Rarely uses Auto, Many models, Growing fast, No cost center, Fading. |
Recommendations are generated from the data in scope: billed usage, pool exhaustion and projected overage, unused included credits, idle and downgradable seats, seats from the license list, runaway users, model right-sizing, Auto adoption, cache reuse, context size, long-context surcharges, unusual days, missing cost centers, budgets, new-user onboarding and data quality. They are ordered by impact. Each has severity, audience (management, admins, users), evidence, concrete actions, affected users, official GitHub and Microsoft links, a confidence level and an estimated saving.
Savings overlap (right-sizing a model and limiting a runaway user touch the same dollars), so recommendation figures are never added up. The combined plan on the Overview and the simulator on the Recommendations page apply the levers together, month by month, with the pool rules above, and give the one number that can be quoted.
Levers in the plan: right-size models, use Auto, cache discipline, leaner context, avoid long-context surcharges, limit runaway users, and the seat actions (reclaim idle seats, move Enterprise users who never needed it to Business, remove unused seats). An Enterprise to Business move is only suggested when the user's peak month stays within 80% of the Business included credits.
- Prices come from the built-in model price card (rates per million tokens, with long-context rates where they exist), taken from the GitHub Docs page Models and pricing for GitHub Copilot. The snapshot date is shown in the app. Settings has a live price check that reads the same page and shows any change;
npm run check:pricesdoes the same from the command line. Token-based figures are estimates: the export has no per-request tokens for every row and the app says "estimated" wherever it uses the card. You can override a model's rates in Settings. A model that is not on the card (a new release, for example) is listed as "Usage on models without a price"; its usage still counts everywhere, but token-based estimates leave it out until you enter its rates. No price is invented. - The export contains AI credits only. Code completions and next edit suggestions are not in it, so a user who looks idle here may still use GitHub Copilot. Do not remove a seat on this evidence alone; check the license list's last activity first. The idle-seat recommendations say so.
- Projections follow the recent daily rate and show a range, not a promise. Only an incomplete last month is projected.
- Unusual days use a robust z-score (3.5 or more and at least 1.5 times the median) and need at least 10 days with usage.
- Trend figures (last 7 days vs the 7 before) need at least 14 days of data.
- Seat prices are public prices and do not include discounts or enterprise agreements.
- The GitHub data file is a snapshot of the day the script ran. Seats, members and budgets are as they were that day; billing, activity and seat changes cover the months you chose. Activity per user covers the last 28 days unless you add
--daily-metrics. - In Arabic, numbers use Arabic-Indic digits (١٢٣) by default, or Latin digits if you choose them in Settings; downloaded CSV files always use Latin digits. The column names of the original export stay in English. Product and vendor logos belong to their owners and are used only to name the product.
The file never leaves your machine. Settings (thresholds, seat list, budget), the theme, color set, language and Arabic digits are stored in localStorage under keys that start with ghcu.. To remove them all, use Start fresh in the sidebar and turn on Also delete the settings saved in this browser (or use Delete saved settings on the start page, or Settings > Data on this device); other sites are not touched. The data itself is kept in memory only and is gone when you reload or close the tab. The single-file build contains no external resources and makes no network requests unless you start the live price check. No real customer data is built into the app or used by the tests.
The collector scripts talk only to GitHub, with your own gh sign-in, and save one file on your computer. The app reads that file in your browser, like the usage report.
src/
lib/ pure TypeScript, no React, fully unit-tested
csv/ tokenizer, ingest (columnar store, dedupe, validation), worker + client
analytics/ filters, aggregate, pool, users, taxonomy, Auto discount, levers,
simulator, seats, anomalies, series, recommendations, tips,
analyze (the one entry point)
licenses/ license list import (activity report, seats JSON or CSV, login list)
collection/ reading the GitHub data file of the collector scripts, and what it adds
pricing/ model price card, model groups, live price check
metrics/ how every number is calculated (docs per area, registry)
demo/ made-up data generator for the sample report, tests and gen:demo
export/ Markdown executive summary
utils/ dates (UTC days), formatting, downloads
links.ts official GitHub and Microsoft links
i18n/ translation core and the Arabic dictionaries (ar/)
state/ Zustand store, hash router, analysis provider, sample report loader, theme, print
components/ UI kit (cards, KPIs, controls, drawers), charts (ECharts), icons, shell, landing
pages/ one file per page, each with its own folder of parts
tests/ Vitest suites, made-up fixtures, guard tests (naming, i18n, metric docs, readable names)
scripts/ demo data, price check and the collector scripts (collect.sh, collect.ps1)
docs/FEATURES.md features and key values for admins
AGENTS.md guide for contributors and AI coding agents
.github/ CI and GitHub Pages workflows, issue and pull request templates
Stack: Vite, React 19, TypeScript, Tailwind CSS v4, Apache ECharts 6, Zustand. The CSV is parsed into dictionary-encoded typed arrays in a worker, so large files stay responsive; filters are boolean masks over those arrays and every figure on screen is derived from one analyze() call. As a reference point, a synthetic file with 314,000 rows (69 MB, 670 users) is ingested in about half a second and fully re-analyzed in about 0.1 s (Node on a laptop; a filtered re-analysis takes about 20 ms).
npm testThe suite covers the tokenizer and ingest (BOM, quoting, scientific notation, date formats, duplicates, bad cells), filters, aggregation, the pool and projection math, the Auto discount, seat plans, the license list, user classification, recommendations, the savings simulator and the exports. It uses made-up fixtures and generated data only. Guard tests check that the product is always called "GitHub Copilot", that every visible text has Arabic, that layouts use start/end instead of left/right, that every number on a page has a calculation doc, that the start page offers your own files first and one clearly labeled sample report, that the sample never reads a file or uses your saved license list, and that the theme keeps every text color readable.
When gh, curl and openssl are installed (on Linux or macOS), the collector scripts run against a made-up GitHub (tests/collectorMock.ts). On macOS the tests use the bash 3.2 that comes with it, the oldest bash collect.sh must work with. The tests check what the scripts send and keep, that the app reads their file, that they name the addresses a network blocks, that collect.sh works the same when piped into bash (as the command from GitHub does), and, when PowerShell is installed, that collect.ps1 writes the same data as collect.sh, from a file or as a script block. The two tests where PowerShell downloads files without curl run only on Linux, because .NET on macOS does not trust the test certificate.
The site is built by .github/workflows/pages.yml and published with GitHub Pages. Every push to main runs the checks (types, tests, both builds) and then deploys dist/. The build uses relative paths, so it works under any repository name. The deploy steps run only while the repository is public. Before the first deploy, open Settings, then Pages, and set the source to GitHub Actions. Do this once for each repository, also for a fork.
Each published build shows its version at the bottom of the sidebar and on the start page, for example "Version 1.0.0 · Build 42 · e3b1fb9 · 2026-10-28". "Build 42" opens the GitHub Actions run that made the site, and the short code opens the commit it was built from, so anyone can check that the site comes from this repository's public code. A build made on your own computer shows "Local build". The values come from the variables GitHub Actions sets for every run (GITHUB_RUN_NUMBER, GITHUB_RUN_ID, GITHUB_SHA), so the workflow needs no extra step. The version number comes from package.json.
Ideas and fixes are welcome. Read CONTRIBUTING.md first, and follow the Code of Conduct. Please never post real usage reports, license lists, names or screenshots with real data in an issue or pull request. To report a security problem, follow SECURITY.md.
MIT. Packages, fonts and icons that ship inside the app are listed with their licenses in THIRD_PARTY_NOTICES.md.









