Home / Claude Code mods / Cost & usage / token-almanac

token-almanac

token-almanac is a Claude Code mod by CookPiu that session and machine-wide token usage, plan limit meters with reset countdowns, and an estimate of how long each limit lasts, fitted to your own history.

Updated 2026-11-21

What is token-almanac?

token-almanac is a Claude Code mod by CookPiu that session and machine-wide token usage, plan limit meters with reset countdowns, and an estimate of how long each limit lasts, fitted to your own history. It is listed under Cost & usage and has 1 GitHub stars.

TypeClaude code mod
AuthorCookPiu
RepositoryCookPiu/token-almanac
Popularity1 GitHub stars
CategoryCost & usage
SecurityReview before installing (72/100)
Rank#3,460 of 9,397 Claude Code mods; #551 in Cost & usage
LicenseMIT
Last commit2026-11-21
Hooks7 events
Seesclassic hooks
Draws onAbovePrompt, Pane

Is token-almanac safe to install?

token-almanac scores 72/100 on the MCPMods security check: Review before installing. Things to review: starts processes outside the sandbox; reads environment variables. 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.

CheckResult
No network accessPass
Starts processes outside the sandboxReview
Writes no files or configPass
Reads environment variablesReview
Only sees the events it hooksPass
Doesn't drive ClaudePass
Validator reported problemsNote
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.after
$.clock.every
$.clock.now
$.clock.sleep
$.command.register
$.env.getreads env vars
$.fs.readreads files
$.process.runruns processes
$.session.id
$.session.root
$.session.usage
$.settings.readreads settings
$.state.get
$.state.set
$.store.getkeeps its own state
$.store.setkeeps its own state
$.ui.closedraws interface
$.ui.invalidatedraws interface
$.ui.logdraws interface
$.ui.opendraws interface
$.ui.resolvedraws interface

How do I install token-almanac?

  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/CookPiu/token-almanac
    claude plugin validate ./token-almanac/.
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add CookPiu/token-almanac && claude plugin install token-almanac@token-almanac

Or ask Claude to set it up

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

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