VS Code Extensions
Copilot Token Cost

Copilot Token Cost

by leonbjorklund

Local Copilot token usage and AI Credit billing cost.

Downloads

521

Rating

5.0 / 5 (1)

Version

0.0.3

Last updated

Jun 05, 2026

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)

Related extensions