Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>AI Token MeterNew to Visual Studio Code? Get it now.
AI Token Meter

AI Token Meter

AI Token Meter

|
1 install
| (0) | Free
Estimate AI token usage locally for active editors and selected text.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

AI Token Meter

AI Token Meter estimates token usage for the active editor or selected text in VS Code. It is designed for quick local checks before using AI coding tools or sharing code with an AI assistant.

Features

  • Estimate tokens for the active editor.
  • Count tokens for selected text.
  • Show a compact status bar shortcut.
  • Optionally sync coarse usage events when an account is connected.
  • Respect VS Code's global telemetry setting.

Privacy

AI Token Meter does not collect source code or selected text. When sync is connected and telemetry is enabled, it sends only minimal usage metadata such as event name, extension version, VS Code version, and coarse token-count buckets.

It does not collect prompts, completions, chat transcripts, file paths, repository names, branch names, environment variables, secrets, terminal history, installed extension lists, or raw customer user IDs.

Commands

  • AI Token Meter: Connect Account
  • AI Token Meter: Disconnect Account
  • AI Token Meter: Show Token Estimate
  • AI Token Meter: Count Selected Text

Settings

  • aiTokenMeter.showStatusBar: show or hide the status bar shortcut.
  • aiTokenMeter.enableTelemetry: allow minimal usage event sync when an account is connected.

Development

pnpm --filter ai-token-meter typecheck
pnpm --filter ai-token-meter build
pnpm --filter ai-token-meter check
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft