GitHub Copilot Usage MetricsSee where your recorded GitHub Copilot usage went, privately on your computer. Explore credits, tokens, projects, models and days, with clear limits on what the local records can tell you. This is not an account billing meter and is not affiliated with, endorsed by, or supported by Microsoft or GitHub. Start Here
The report shell appears before scanning. A bounded recent-data pass is followed by full indexing. Later scans reuse unchanged saved sessions and request logs. Cancel scan keeps displayed data available, and failed refreshes are retryable. The Sessions tab keeps one row per session and prefers a retained session title over its recorded summary. Session credits covers all retained dates and models; Credits in scope shows the selected portion separately. Other session measures follow the selected scope. Missing history is never estimated. Debug-only billing can read matching saved metadata for a title without using any of that saved copy's usage figures. Table headers sort in either direction. Session activity and dated records default to newest first; aggregated tables default to their main numeric measure, highest first. Sort choices survive data refreshes, including grouped breakdowns. How it worksThe bundled Python extractor stays the single source of truth. The extension:
Packaged builds never execute an extractor found in an open workspace or load scripts from an old generated HTML report. The extension runs on the local desktop host and requires a trusted window; virtual workspaces are unsupported. The extension does not transmit usage data or collect analytics. This does not describe GitHub Copilot's own service traffic or telemetry. Requirements
Data source and agent debug logsOpen the dashboard, click the Config gear, and use VS Code data source:
When the dashboard detects no agent debug-log sessions, Enable logging offers
an explicit consent prompt. Debug logs can contain prompts, responses, tool
arguments and sensitive paths. Only after consent does the extension set
Develop / run
Then press F5 (Run Extension) and invoke GitHub Copilot Usage Metrics: Open Dashboard from the Command Palette. Settings
Troubleshooting
Privacy And ExportsGitHub Copilot Usage Metrics is independent and does not transmit usage data or collect extension analytics. It reads local Copilot/Claude records and, when explicitly selected, optional Visual Studio trace files. These are private, version-dependent formats. What Is RetainedDerived reports and caches live in VS Code's extension-specific global storage, outside the installed extension code. They include project/model/agent names, counts, tokens, recorded credit values, source diagnostics and retained session labels. Session labels may contain opening prompts. Local error detail can contain paths or source data. Treat these files as private. Saved-session caches exclude prompt and response bodies and tool arguments. They retain only the fields needed to reconstruct usage and attribution. The cache is not a permanent archive: records whose upstream files disappear are not counted as current observations. Exports And CleanupCSV exports include selected project names and usage. Settings exports can contain personal filters and billing comparisons. Choose their destination deliberately. Support diagnostics are redacted to platform/version, scan counts, timing and allowlisted error categories, then shown for review before saving. Raw paths, project names, session labels and error messages are excluded from that export. Clear Derived Data asks for confirmation, cancels this window's scan, and removes only this extension's report/cache directories. It does not remove original Copilot logs, change logging settings, delete exported files, or remove legacy reports made by the standalone CLI or earlier extension versions. Optional Experimental CaptureDebug file logging can retain sensitive conversation content. It is optional; saved-session reporting works without it. Enabling it requires explicit consent and updates only the supported user-level Copilot setting. Copilot controls its own retention. The extension does not enable Trace logging, enlarge retention, or recover deleted history. Disabling capture later does not delete existing logs. These statements cover this extension, not GitHub Copilot's own service traffic or telemetry. Review your organization's policies before enabling additional capture. Interpreting The NumbersRecorded credits are not an account bill: this report covers retained records on one computer. Different sources count requests differently, and missing values are not proof of zero usage. Claude Code and the optional Visual Studio parser do not provide authoritative GitHub credits. Skill attribution can overlap when a session uses several skills, so skill totals must not be added together. Forecasts are projections from recorded history, not measured future usage or a promise of the next bill. Billing comparisons need matching dates, accounts and units. Cache definitions vary by source: VS Code exposes cache reads while CLI and Claude can include cache writes. Activity and token counts do not measure developer productivity or output quality. SupportUse this extension's Marketplace Q & A tab for questions and reproducible bug reports. Include the extension version, VS Code version, operating system and steps to reproduce. Attach only diagnostics you have reviewed in the redacted export preview. Never post raw logs, session labels, private project names or billing information. Microsoft and GitHub do not provide support for this extension. Compatibility And QualificationThe 1.6.1 update compiles against API types pinned to VS Code 1.85.0. On Windows, the packaged extension passed fresh-install and same-version reinstall checks on VS Code 1.85.0 and 1.136.1: activation, commands, native walkthrough, saved-session scanning with exact synthetic totals, refresh, reopen, empty history, cache invalidation and storage outside the installation directory. The configured CI matrices cover Windows/macOS/Linux with Python 3.12/3.14 for source tests, plus minimum/current VS Code packaged-host checks with Python 3.12. Their green runs must be confirmed on the release revision. Real native Save As, capture/cleanup confirmation dialogs, missing-Python recovery, active-scan cancel, older-version upgrade and a full accessibility/offline audit are separate qualification tasks. Host tests do not substitute for those UI checks. Visual Studio stays opt-in Preview pending producer/instance qualification. Package a
|