Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Token Count

PatPat22 downloads

Count tokens for the active note in the status bar next to word count (GPT, Claude, Gemini).

Add to Obsidian
Token Count screenshot
  • Overview
  • Scorecard
  • Updates4

Count tokens for the active note in the status bar, using the same tokenizers as popular LLM APIs (GPT, Claude, and Gemini). Desktop only.

Token count in the Obsidian status bar

Install

From Obsidian (recommended)

  1. Open Settings → Community plugins.
  2. Turn on Community plugins and Browse.
  3. Search for Token Count and install.
  4. Enable the plugin.

Manual install

  1. Download main.js and manifest.json from the latest GitHub release.
  2. Create a folder in your vault: .obsidian/plugins/token-count/
  3. Copy both files into that folder.
  4. Enable Token Count under Settings → Community plugins.

Usage

Open any Markdown note. The status bar shows the token count for the full note, for example:

1,234 tokens · gpt-5

The count updates as you edit. It appears after Obsidian’s built-in word and character count when the core Word count plugin is enabled.

Settings

Settings → Token Count

Option Description
Model gpt-5, gpt-4o, gpt-4, claude, or gemini
Show model in status bar Show the model name after the count (e.g. · gpt-5)

Notes

  • Counts the entire editor content, including YAML frontmatter.
  • Useful for estimating how much of a note fits in an LLM context window; system prompts or chat wrappers are not included.
  • Gemini: the first count may download a vocabulary file once (requires network).
  • Empty when no Markdown editor is active.

Development

Requires Node.js 18+.

npm install
npm run build

Symlink or copy this repo into <Vault>/.obsidian/plugins/token-count/ for local testing. Use npm run dev to rebuild on save.

See RELEASING.md for publishing a new version.

License

MIT — see LICENSE.

96%
HealthExcellent
ReviewSatisfactory
About
Display token counts for the active Markdown note in the status bar on desktop using the same tokenizers as GPT, Claude, and Gemini. Update counts in real time as you edit, count the entire editor content (including YAML frontmatter), and optionally show the selected model name.
Status barAI
Details
Current version
1.0.3
Last updated
21 hours ago
Created
2 days ago
Updates
4 releases
Downloads
22
Compatible with
Obsidian 1.0.0+
Platforms
Desktop only
License
MIT
Report bugRequest featureReport plugin
Author
PatPatlemondepat
GitHublemondepat
  1. Community
  2. Plugins
  3. Status bar
  4. Token Count

Related plugins

Vault as MCP

MCP server connecting Open WebUI, Claude Desktop, and other LLMs to your vault.

Copilot

Your AI Copilot: Chat with Your Second Brain, Learn Faster, Work Smarter.

Claudian

Embeds Claude Code/Codex as an AI collaborator in your vault. Your vault becomes agent's working directory, giving it full agentic capabilities: file read/write, search, bash commands, and multi-step workflows.

Smart Connections

AI link discovery copilot. See related notes as you write. Lookup using semantic (vector) search across your vault. Zero-setup local model for embeddings, no API keys, private.

Agent Client

Chat with Claude Code, Codex, Gemini CLI, and more via the Agent Client Protocol — right from your vault.

Text Generator

Generate text content using GPT-3 (OpenAI).

Smart Composer

AI chat with note context, smart writing assistance, and one-click edits for your vault.

HiNote

Add comments to highlighted notes, use AI for thinking, and flashcards for memory.

Smart Second Brain

Interact with your privacy focused assistant by leveraging Ollama or OpenAI and making your second brain even smarter.

Khoj

An AI personal assistant for your digital brain.