Disclaimer
Is this plugin open source? Yes
Is this plugin completely free? Yes
Is this plugin vibe-coded beyond the author’s ability to comprehend how it works? No
Community Directory: Token Usage
Hey everyone,
I’ve been using Claude Code daily for months and wanted to see my token consumption without leaving Obsidian or opening a separate dashboard. There was no plugin for that, so I built one.
The problem I solved
Claude Pro subscribers don’t have an organization API key, so you can’t pull usage data directly from Anthropic. Third-party dashboards exist, but they’re just another tab on another screen — exactly what I didn’t want.
How it works
Claude Code stores all session data as local JSONL files on your machine. Every message contains the model, timestamp, session ID, and token counts. Token Usage reads those files directly — no API key, no external requests, no data leaving your device.
What it shows
Directly in your sidebar, in real time:
- Last Action — model, input, output and cache tokens for your most recent command
- This Session — running total for the current Claude Code session
- Today — all sessions combined
- 7 Days — color-coded bar chart (green = low, red = high)
- 30 Days — monthly overview
Install
Settings → Community Plugins → Browse → search for “Token Usage”
Or: GitHub - beolatn/TokenUsage: Live token usage tracking for Claude Code inside Obsidian · GitHub
One honest note
The concept, design and use case came from me. The actual code was written with Claude Code assistance — felt right to be transparent about that in a plugin that tracks Claude Code usage.
This is my first Obsidian plugin. Happy to hear feedback, bug reports or feature ideas.






