Tokenometer for VS Code & Cursor
Most "token counter" extensions stop at counts. Tokenometer adds the dollar value, using the same pricing the
InstallMarketplace (coming with v1.0.0)The Marketplace install button arrives with the v1.0.0 cut — Phase I owns that publish step. Track it on the milestones page.
Build locally now (
|
| Setting | Default | Description |
|---|---|---|
tokenometer.model |
claude-opus-4-7 |
Model id to count and price against. Run Tokenometer: Switch model for the full registry list. |
tokenometer.format |
text |
Format conversion before counting (text, markdown, json, yaml, xml). |
tokenometer.warnOnCostAbove |
0 |
If non-zero, the status bar turns warning-colored when the file's input cost exceeds this USD value. |
Settings can be changed per-workspace (Workspace Settings) or globally (User Settings) — switching via the command saves to the workspace if one is open, otherwise globally.
Commands
- Tokenometer: Switch model — quick-pick over every model in
@tokenometer/core's registry. - Tokenometer: Show details for current file — modal with the full breakdown.
Both commands appear under the Tokenometer: prefix in the command palette.
Supported files
The extension activates only on prompt-shaped content: .md, .markdown, .txt, .json, .jsonc, .yaml, .yml, .xml (matched by language id or extension). Anything else gets a hidden status bar item — no work, no noise.
Files larger than 1 MB are skipped to keep the editor responsive (— shown in place of the count).
How it works
Under the hood the extension reuses @tokenometer/core's tokenize() function — the same path the CLI takes. Counts, pricing, and tokenizer choices are identical to the rest of the suite.
Links
- Root README — methodology, findings, and the full project overview.
tokenometerCLI on npm- Live playground
License
MIT
