VSCode AI Cost Tracker 🐾
Real-time AI API cost tracking for VS Code. Monitor your Copilot Chat and Language Model usage costs without leaving your editor.

📸 Screenshots
| Dashboard View |
Status Bar |
 |
 |
🚀 Features
- 💰 Real-time cost tracking — automatically captures every Copilot Chat and
vscode.lm API call
- 📊 Status bar indicator — see total cost and call count at a glance (
$(graph) AI: $0.00)
- 📈 WebView dashboard — detailed breakdown by provider and model, with average cost per call
- 🔍 Provider auto-detection — supports 23 providers (OpenAI, Anthropic, Google, DeepSeek, Meta, Mistral, Qwen, xAI, and more)
- 💾 Persistent storage — call history survives VS Code restarts (up to 10,000 records)
- 🔌 Zero configuration — works out of the box, no API keys needed
- 🕵️ Privacy first — all data stays local, no external network calls
📦 Installation
From VS Code Marketplace
- Open VS Code
- Press
Ctrl+P to open the Command Palette
- Paste:
ext install lijustin655.vscode-tracker
- Press Enter
From Marketplace Website
Click here to install
🎯 Usage
- Install the extension
- Use Copilot Chat or any
vscode.lm-based AI feature as usual
- See costs automatically tracked in the status bar:
$(graph) AI: $0.00
- Click the status bar to open the detailed cost dashboard
- Explore per-provider and per-model breakdowns
Commands
| Command |
Description |
VSCode-Tracker: Show Cost Panel |
Open the cost dashboard WebView |
VSCode-Tracker: Refresh Status Bar |
Refresh the status bar display |
VSCode-Tracker: Clear All Data |
Remove all tracked call history |
🔒 Privacy
- No external network calls — all data stays in your local VS Code
- No data collection — no analytics, no tracking, no telemetry
- No API keys required — works with existing Copilot/Chat setup
- No response modification — reads metadata only, never alters AI responses
All tracked data is stored in VS Code's globalState and can be cleared at any time via the Clear All Data command.
📋 Requirements
- VS Code 1.96 or higher
- Copilot Chat or any extension using the
vscode.lm API
📄 License & Privacy
Made with ❤️ by 小小抓
| |