Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Token Count StatusNew to Visual Studio Code? Get it now.
Token Count Status

Token Count Status

Priyatham Kattakinda

|
1 install
| (0) | Free
Shows the token count for the active file in the VS Code status bar.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Token Count Status

This VS Code extension shows the token count for the active editor in the status bar.

It supports OpenAI-family models through js-tiktoken and Claude models through Anthropic's local tokenizer package.

Anthropic Note

Claude model support uses @anthropic-ai/tokenizer for local counting. That package appears to be outdated relative to Anthropic's current model lineup, so Claude token counts in this extension should be treated as best effort rather than authoritative.

Settings

  • tokenCountStatus.model: chooses which model tokenizer to use.
  • tokenCountStatus.showForAllFiles: when false, only shows counts for agent-oriented markdown files such as AGENTS.md and CLAUDE.md.

Development

npm install
npm run compile

Open this vscode folder in VS Code and launch the extension host with F5.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft