Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Copilot UsageNew to Visual Studio Code? Get it now.
Copilot Usage

Copilot Usage

emagin8

|
841 installs
| (0) | Free
A **local-first** analytics dashboard that parses your VS Code Copilot chat session data and visualises token usage, premium request estimates, and model distribution — all without sending any data externally.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Copilot Usage

GitHub Repo stars

Local-first analytics for your GitHub Copilot Chat token usage in VS Code. All processing happens on your machine — no data is sent externally.

Features

  • Workspace Analysis — Token usage, model distribution, and daily trends for the current workspace
  • Global Dashboard — Aggregated stats across all workspaces: KPIs, daily chart, model breakdown, workspace comparison, and repository-level breakdown
  • Cost Estimator (Preview) — Estimate monthly Copilot AI Credits usage and compare model costs
  • Capability-aware Provider Comparison — Compare provider options using model family and tier coverage, capability risk labels, grouped recommendations, and savings-vs-baseline signals with a near-current buffer
  • Status Bar — Live token count for the current workspace; click to open analysis
  • Tool Call Rounds — Track how many agentic tool-call rounds Copilot uses per session
  • Auto-refresh Timer — Set a 30s / 1m / 2m / 5m interval to keep dashboards up to date

Screenshots

Global Dashboard

KPIs, daily token usage chart, model distribution, per-workspace breakdown, and repository-level breakdown across all your projects.

Global Dashboard

Workspace View

Focused analysis for the current workspace — token usage, daily trends, and model stats.

Workspace View

Cost Estimator (Overview)

Estimated monthly impact based on your observed usage window, selected plan, and selected model.

Cost Estimator Overview

Cost Estimator (Model Comparison)

Compare projected monthly cost and AI Credits across available models.

Cost Estimator Model Comparison

Cost Estimator (Provider Comparison - Capability-Aware)

Evaluate provider portfolios with fit score, substitution coverage, capability risk, and savings vs baseline.

Cost Estimator Provider Comparison

Cost Estimator (Provider Comparison - Recommendation View)

See grouped recommendation cards and a decision-oriented table to identify comparable portfolios and cheaper-but-riskier alternatives.

Cost Estimator Provider Recommendations

Status Bar

Always-visible token count in the status bar. Click to open the workspace analysis panel.

Status Bar

Commands

Command Description
Copilot Usage: Workspace Analysis Open workspace-scoped token analysis panel
Copilot Usage: Global Dashboard Open cross-workspace dashboard
Copilot Usage: Cost Estimator (Preview) Open monthly AI Credits cost estimator
Copilot Usage: Refresh Data Manually refresh status bar data

Troubleshooting: Numbers Not Showing

If token numbers are missing, stuck at 0, or much lower than expected:

  1. Open VS Code Settings and search for github.copilot.chat.agentDebugLog.fileLogging.enabled.
  2. Enable GitHub › Copilot › Chat › Agent Debug Log › File Logging.
  3. Reload VS Code (the setting requires reload to fully apply).
  4. Run Copilot Usage: Refresh Data.
  5. Trigger at least one new Copilot Chat request in the target workspace and refresh again.

Enable Copilot debug file logging

If needed, run Copilot Usage: Open Copilot Debug Log Setting to jump directly to the correct setting.

How It Works

Parses JSONL and legacy JSON chat session files from VS Code's workspace storage directory (workspaceStorage/{hash}/chatSessions/). Extracts prompt tokens, output tokens, model identifiers, tool-call rounds, and timestamps — then aggregates everything into interactive dashboards.

Disclaimer

Copilot Usage is an independent, community-built project. It is not affiliated with, endorsed by, sponsored by, or approved by Microsoft or GitHub.

The Cost Estimator uses this project's own methodology based on local usage data and publicly available pricing references. It is not an official Microsoft or GitHub billing calculator and does not constitute billing, accounting, tax, legal, or financial advice.

GitHub and Microsoft names and trademarks are the property of their respective owners.

Links

  • GitHub Repository
  • Report an Issue

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft