Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Copilot Token CostNew to Visual Studio Code? Get it now.
Copilot Token Cost

Copilot Token Cost

Leon Björklund

|
19 installs
| (0) | Free
Local Copilot token usage and AI Credit billing cost.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

GitHub Copilot Tokens and AI Credit Cost

Lightweight Copilot usage viewer for token count and AI credit cost from Copilot log files. Runs locally. Requires github.copilot.chat.agentDebugLog.fileLogging.enabled.

Dollar amounts use GitHub's Copilot usage-based billing docs: 1 AI Credit = $0.01 USD. They are not final billed cost and exclude plans, pooled credits, discounts, taxes, and adjustments.

Only sessions with AI Credits are counted. Older logs that predate usage-based billing are ignored.

Status Bar

Status bar tooltip

Tree View

Usage tree view

Reference

  • Copilot Token Cost: Refresh — re-scans log files and updates totals
  • Copilot Token Cost: Show Scan Diagnostics — shows details about skipped or unreadable files
  • copilotUsage.dataPath — extra local folder to scan for Copilot usage data (absolute path)

Feedback

Open an issue on GitHub

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