What is token-window?
token-window is a Claude Code mod by pokhriyal-anmol that see how many input and output tokens you used in the current 5-hour Claude Code window, per session, in a docked dashboard pane. It is listed under Cost & usage and has no public popularity data yet.
| Type | Claude code mod |
|---|---|
| Author | pokhriyal-anmol |
| Repository | pokhriyal-anmol/claude-token-window |
| Popularity | no public popularity data yet |
| Category | Cost & usage |
| Security | Review before installing (72/100) |
| Rank | #7,866 of 9,397 Claude Code mods; #1,531 in Cost & usage |
| License | MIT |
| Last commit | 2026-10-11 |
| Hooks | 4 events |
| Sees | only the events it hooks |
| Draws on | AbovePrompt, Pane |
Is token-window safe to install?
token-window scores 72/100 on the MCPMods security check: Review before installing. Things to review: starts processes outside the sandbox; writes files or config. It passed 5 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 |
| Doesn't read environment variables | Pass |
| Only sees the events it hooks | Pass |
| Doesn't drive Claude | Pass |
| Validator reported problems | Note |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.command.register | |
$.fs.write | writes files |
$.process.run | runs processes |
$.session.usage | |
$.state.get | |
$.state.set | |
$.ui.log | draws interface |
$.ui.open | draws interface |
$.ui.resolve | draws interface |
$.ui.status | draws interface |
How do I install token-window?
- 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/pokhriyal-anmol/claude-token-window claude plugin validate ./claude-token-window/.
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add pokhriyal-anmol/claude-token-window && claude plugin install token-window@token-window
Or ask Claude to set it up
Paste this into Claude Code and it installs token-window for you:
Install the "token-window" Claude Code mod from https://github.com/pokhriyal-anmol/claude-token-window. Run claude plugin validate on it first and show me what it can access before you enable it.