William Hardesty43 downloadsAccurate LLM token counts in the status bar — GLM-5.2/GPT/Qwen/DeepSeek exact, Claude/Gemini approx.
Real LLM token counts for GLM, GPT, Qwen & DeepSeek in Obsidian's status bar — so you know if a note fits the context budget before you send it.

The token count appears in the status bar alongside Obsidian's built-in word and character counts — live, for whatever note you have open.
o200k_base × 1.15, clearly labeled — never silently passed off as exact).main.js, manifest.json, and styles.css..obsidian/plugins/llm-token-count/.On first use with a HuggingFace-sourced model (GLM, Qwen, DeepSeek), the plugin fetches the tokenizer and caches it locally. The first count takes a few seconds; every count after is instant.
Open Settings → LLM Token Count:
fs and fetch for the tokenizer cache, which aren't available on mobile.| Model | Source | Mode |
|---|---|---|
glm-5.2, glm-5, glm-4.6v-flash |
HuggingFace tokenizer.json (pinned SHA) |
exact |
gpt-5, gpt-4o |
js-tiktoken o200k_base |
exact |
gpt-4, gpt-3.5 |
js-tiktoken cl100k_base |
exact |
qwen, deepseek-v3.1 |
HuggingFace tokenizer.json (pinned SHA) |
exact |
claude, gemini |
o200k_base × 1.15 |
approx |
GLM/Qwen/DeepSeek tokenizer SHAs are pinned to a specific HuggingFace commit for reproducible counts across machines and over time.
MIT