What is token-bar?
token-bar is a Claude Code mod by santosli that how full the context window and the quota are, and what today cost, above the prompt or behind the conversation. It is listed under Cost & usage and has no public popularity data yet.
| Type | Claude code mod |
|---|---|
| Author | santosli |
| Repository | santosli/claude-mods |
| Popularity | no public popularity data yet |
| Category | Cost & usage |
| Security | High risk (56/100) |
| Rank | #8,253 of 9,397 Claude Code mods; #1,617 in Cost & usage |
| License | MIT |
| Last commit | 2026-11-25 |
| Hooks | 6 events |
| Sees | compaction |
| Draws on | Backdrop, AbovePrompt |
Is token-bar safe to install?
token-bar scores 56/100 on the MCPMods security check: High risk. Things to review: starts processes outside the sandbox; writes files or config; reads environment variables. It passed 3 of 8 checks.
Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts processes outside the sandbox | Review |
| Writes files or config | Review |
| Reads environment variables | Review |
| Only sees the events it hooks | Pass |
| Drives Claude (model calls, prompts) | Note |
| Validator reported problems | Note |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.clock.after | |
$.clock.every | |
$.clock.now | |
$.env.get | reads env vars |
$.fs.read | reads files |
$.fs.write | writes files |
$.process.run | runs processes |
$.session.usage | |
$.state.get | |
$.state.set | |
$.store.get | keeps its own state |
$.store.set | keeps its own state |
$.theme.set | |
$.tool.call | drives Claude |
$.tool.list | |
$.ui.resolve | draws interface |
How do I install token-bar?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/santosli/claude-mods claude plugin validate ./claude-mods/token-bar
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add santosli/claude-mods && claude plugin install token-bar@santos-mods
Or ask Claude to set it up
Paste this into Claude Code and it installs token-bar for you:
Install the "token-bar" Claude Code mod from https://github.com/santosli/claude-mods/tree/main/token-bar. Run claude plugin validate on it first and show me what it can access before you enable it.