token-warn

token-warn is a Claude Code mod by AliakbarNateghi that status entry with the session's running token total, plus toasts when it passes thresholds or one subagent or Workflow run uses a lot.

Updated 2026-10-09

What is token-warn?

token-warn is a Claude Code mod by AliakbarNateghi that status entry with the session's running token total, plus toasts when it passes thresholds or one subagent or Workflow run uses a lot. It is listed under Cost & usage and has no public popularity data yet.

TypeClaude code mod
AuthorAliakbarNateghi
RepositoryAliakbarNateghi/cc-token-warn
Popularityno public popularity data yet
CategoryCost & usage
SecurityLow risk (100/100)
Rank#4,829 of 9,397 Claude Code mods; #840 in Cost & usage
LicenseMIT
Last commit2026-10-09
Hooks2 events
Seessubagent spawns
Draws onnothing

Is token-warn safe to install?

token-warn scores 100/100 on the MCPMods security check: Low risk. No checks raised a concern. It passed 8 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.

CheckResult
No network accessPass
Starts no processesPass
Writes no files or configPass
Doesn't read environment variablesPass
Only sees the events it hooksPass
Doesn't drive ClaudePass
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.state.get
$.state.set
$.ui.statusdraws interface
$.ui.toastdraws interface

How do I install token-warn?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/AliakbarNateghi/cc-token-warn
    claude plugin validate ./cc-token-warn/.
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add AliakbarNateghi/cc-token-warn && claude plugin install token-warn@cc-token-warn

Or ask Claude to set it up

Paste this into Claude Code and it installs token-warn for you:

Install the "token-warn" Claude Code mod from https://github.com/AliakbarNateghi/cc-token-warn. Run claude plugin validate on it first and show me what it can access before you enable it.