Promptcountant
See how much your GitHub Copilot chat conversations are costing you — directly inside VS Code. Promptcountant reads GitHub Copilot's on-disk chat history, adds up the tokens you've sent and received per model, and shows the estimated dollar cost for every session, every workspace, and your machine as a whole.
What it doesPromptcountant adds a sidebar to the Activity Bar with three things:
Double-click any session to open a detail panel showing each turn: the model used, the duration, tokens sent, tokens received, and the estimated cost for that turn. Getting started
That's it. There is nothing to configure to get started. Key featuresPer-session cost breakdown — every turn shows the model used, duration, input/output token counts, and the estimated dollar cost using current Copilot pricing. Reports at any scope — see totals for a single session, an entire workspace, or all your activity together. Each report groups results by model so you can tell which models are driving spend. Use the time range selector in the report header to narrow totals to the last 7, 30, or 90 days. Accurate token counts when telemetry is enabled — if you turn on Copilot's debug logging (
Live pricing with offline fallback — pricing is pulled from GitHub's public Copilot pricing table once a day. If you're offline, a bundled price list is used so costs still calculate. Per-model price overrides — if you want to model a different rate (custom enterprise pricing, a "what if" comparison, etc.), set
Values are USD per 1 million tokens. Fast search — the sidebar filters as you type so you can jump to a session by name. Quiet by default — no popup notifications when things are working. Promptcountant only speaks up when something actually goes wrong. Background processing — large scans run on a worker thread with CPU yielding, so the UI stays responsive even when there are thousands of sessions to crunch through. CommandsAll commands are available from the Command Palette under the Promptcountant category:
The Refresh, Collapse All, and Recompute Costs commands are also available as icons in the sidebar's title bar. Where the data comes fromPromptcountant reads files that GitHub Copilot already writes to your machine — it does not call any external API for your chat content and does not send your prompts anywhere. The only network call is fetching the public Copilot pricing table from Your aggregated session data is stored locally in a small SQLite database inside the extension's storage folder. Issues & FeedbackFound a bug or have a feature request? Open an issue on GitHub. |
