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

PatPat399 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.

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
4 months ago
Created
4 months ago
Updates
4 releases
Downloads
399
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

Runs an MCP server inside Obsidian, exposing your vault to external LLM tools with read, search, and edit operations.

Claudian

Embeds Claude Code/Codex and other local Agents as AI collaborators in your vault.

Smart Connections

Find related notes and excerpts while writing. Your AI link building copilot displays relevant content in graph + list view. A local embedding model powers semantic search. Zero setup. No API key.

Fast Note Sync

Real-time sync of your vaults across server, mobile, and web; shareable with anyone; supports REST and MCP integrations to build your personal AI knowledge base.

ChatGPT MD

A seamless integration of ChatGPT, OpenRouter.ai and local LLMs via Ollama into your notes.

Copilot

Run AI agents such as Claude Code, Codex, and OpenCode inside your vault. Turn your second brain into a smart assistant that gets knowledge work done.

Karpathy LLM Wiki

Karpathy's LLM Wiki implementation plugin for Obsidian - turns notes and PDFs into a linked, LLM-powered knowledge base with entity pages, concept pages, graph-powered Q&A, and local-first privacy.

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.