cache-meter

cache-meter is a Claude Code mod by baselane-sh that a band above the prompt with the share of prompt tokens the cache served this session (cache 87%). A high share means cheaper, faster turns.

Updated 2026-10-06

What is cache-meter?

cache-meter is a Claude Code mod by baselane-sh that a band above the prompt with the share of prompt tokens the cache served this session (cache 87%). A high share means cheaper, faster turns. It is listed under Cost & usage and has 1 GitHub stars.

TypeClaude code mod
Authorbaselane-sh
Repositorybaselane-sh/mods
Popularity1 GitHub stars
CategoryCost & usage
SecurityLow risk (100/100)
Rank#1,519 of 5,272 Claude Code mods; #271 in Cost & usage
LicenseMIT
Last commit2026-10-06
Hooks3 events
Seesonly the events it hooks
Draws onAbovePrompt

Is cache-meter safe to install?

cache-meter 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
$.clock.after
$.clock.every
$.clock.now
$.session.usage
$.state.get
$.state.set
$.ui.logdraws interface
$.ui.resolvedraws interface

How do I install cache-meter?

  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/baselane-sh/mods
    claude plugin validate ./mods/plugins/cache-meter
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add baselane-sh/mods && claude plugin install cache-meter@baselane-mods-dev

Or ask Claude to set it up

Paste this into Claude Code and it installs cache-meter for you:

Install the "cache-meter" Claude Code mod from https://github.com/baselane-sh/mods/tree/main/plugins/cache-meter. Run claude plugin validate on it first and show me what it can access before you enable it.

More from baselane-sh/mods

This repository has at least 9 Claude Code mods on MCPMods.

  • achievements: Unlocks eight badges once each (first session, first green test run, 100 and 1,000 tool calls, 7-day streak, 10 blocked (Low risk)
  • agent-firewall: A live pane of every tool call the agent makes: green when it ran, red when it was blocked, with counters. Open it with (Low risk)
  • ahead-behind: A band above the prompt with the commits ahead and behind the upstream (↑2 ↓1), read with git status after each Bash cal (Low risk)
  • audit-pack: Three read-only audit commands in one mod: /secret-scan, /conflicts and /licenses. They read git, project files and depe (Low risk)
  • authors: Adds /authors: the top 15 contributors by commit count with their last commit date, from git log. Names only, never emai (Low risk)
  • auto-format: Runs your project's own formatter on each file Claude writes or edits, only when the project has a formatter config, and (Low risk)
  • auto-lint: Runs your project's own linter fix (eslint, ruff or golangci-lint) on each file Claude writes or edits, only when the pr (Low risk)
  • band-pack: The first six Baselane band meters in one row above the prompt: session cost, lattes, context bar, today's spend, the fo (Low risk)