Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By grant-unwinv1.4.0MITIn 1 marketplace
Tracks input and output token usage across a session, displaying a running total after each response.
You run one by typing its /name in Claude Code.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Displays a running count of input and output tokens after every Claude response, with an estimated session cost.
After each response, this appears in your Claude Code terminal:
┌─ Token Usage ────────────────────────────────────────┐
│ Model : Opus 4.6 │
│ Input : 4,821 Output : 1,203 │
│ Cache↑ : 0 Cache↓ : 0 │
│ Total : 6,024 tokens ~ $0.0326 │
└──────────────────────────────────────────────────────┘
At session end, it shows the same box labelled Session Final.
claude --plugin-dir /path/to/claudecode-plugin-token-usage-status-bar
In Claude Code, run:
/plugin marketplace add grant-unwin/claudecode-plugin-token-usage-status-bar
/plugin install token-tracker@token-usage-status-bar
Use /token-tracker:usage at any time to display the current session totals inline.
Add to ~/.tmux.conf:
set -g status-interval 2
set -g status-right '#(cat ~/.claude/token-stats.txt.compact 2>/dev/null || echo "–") | %H:%M '
Then reload: tmux source-file ~/.tmux.conf
Run in a split terminal pane for a live updating view:
watch -n 1 cat ~/.claude/token-stats.txt
The plugin automatically detects which Claude model is being used and applies the correct pricing. Prices are per 1M tokens (source: Anthropic pricing):
| Model | Input | Output | Cache Write | Cache Read |
|---|---|---|---|---|
| Opus 4.6 | $5 | $25 | $6.25 | $0.50 |
| Opus 4.5 | $5 | $25 | $6.25 | $0.50 |
| Opus 4.1 | $15 | $75 | $18.75 | $1.50 |
| Sonnet 4.6 | $3 | $15 | $3.75 | $0.30 |
| Sonnet 4.5 | $3 | $15 | $3.75 | $0.30 |
| Haiku 4.5 | $1 | $5 | $1.25 | $0.10 |
If the model can't be detected, Sonnet pricing is used as a fallback.
/plugin uninstall token-tracker
Clean up status files:
rm -rf ~/.claude/token-tracker ~/.claude/token-stats.txt ~/.claude/token-stats.txt.compact
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub grant-unwin/claudecode-plugin-token-usage-status-bar --plugin token-trackerPlugins from other owners that cover similar ground