ClaudeCodeMod

All shelves / Mods / Usage

usage-pane

By T-AI-Labs

usage-pane is a Claude Code usage mod by T-AI-Labs.

Opens a /tokens pane that adds up tokens, cache hit rate, and API price by day, model, and project, and lists each session's prompts by cost and why.

Draws

Install

The marketplace name is T-AI-Labs.

In your shell
claude plugin marketplace add T-AI-Labs/claude-code-mods
claude plugin install usage-pane@T-AI-Labs
Open the repo

It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.

Version
0.3.0
License
MIT
Repo stars
5
Last change
2026-11-02

What it can reach

  • Draws in the session
  • Reads usage or context figures
  • Sees tool calls

The commands also work inside Claude Code with /plugin in place of claude plugin, and new sessions load the changes. /tokens opens the pane in the desktop app and in the terminal; /tokens today, /tokens month, or /tokens prompts opens that tab. Usage is counted from the install of the mod on, in every session that runs it, and kept for 31 days; the details of each prompt are kept for 7 days. Model time and output speed are counted from version 0.3.0 on. The limits fill in once Claude Code reports them, on a subscription plan with each response.

The marketplace name is T-AI-Labs. The marketplace also lists context-usage, cache-meter, context-meter, usage-limits, and catalog-pane, each installed on its own. Adding up where the tokens went is why this page files it under usage. usage-stats, by omeerdvrn, opens a pane of this machine's Claude Code tokens over 7 days, 30 days, or all time, by day, project, and model. session-receipt, by VedantAndhale, opens a pane of every turn's tokens, with the five that spent the most. This one has a tab for Last turn, Session, Today, 7 days, and 30 days, each with tokens split into uncached input, output, cache reads and cache writes, cache hit rate, API price as /cost totals it, turns, tool calls, model time, and output speed, by model and by project, and the current 5-hour and weekly windows with the peak each earlier window reached in the last 8 days. Sessions lists the last 30 days by price, and Prompts lists a session's prompts, most expensive first, with where the cost went and up to three hints for next time. On a subscription, the API price is what the same usage would cost on the API.

Demo

The author's drawing of the usage pane: tabs for Last turn, Session, Today, 7 days and 30 days with 7 days selected; totals of 48.2M tokens split into input, output, cache read and cache write, a 94% cache hit rate, an API price of $61.40, 412 turns, 3180 tool calls, 6h 31m of model time and 81 tokens a second; the tokens and price by model and by project; and the 5-hour and weekly limits with the current window and the last peak. The figures, models and projects are the author's samples.
From the author's repo.

What it hooks into

  • session.startWhen a session starts
  • command.runWhen you run its slash command
  • turn.startWhen Claude starts a turn
  • turn.stepAt each step of a turn
  • turn.completeWhen a turn ends
  • tool.callAround a tool call, where it can hold one
  • session.measureWhen usage is measured
  • ui.renderDraws into the sessionPane

Read from the on() calls in its hook modules. Open its source under Files to check what each one does.

Files

The author's source, 3 files. They load when you open them.

Facts

Author
T-AI-Labs
Category
Usage
Marketplace
T-AI-Labs
Repo
T-AI-Labs/claude-code-mods
Folder
usage-pane
Version
0.3.0
License
MIT
Repo stars
5
Last change
2026-11-02
Language
TypeScript
Files
6

Other mods in Usage

ribbonrobonuggetsDraws a slim band above the prompt with the 7-day and 5-hour usage left and when each resets, and whether the prompt cache is warm or cold with the next cost.hudlycfyiDraws a heads-up display above the prompt: context fill, repo state, turn progress with time estimates, and a recap with an automatic /whats-next after a break.automodemralexivyHolds a commandPicks the model and effort for each prompt, draws a bar above the prompt with context, cache countdown, cost, and savings, and denies git writes from subagents.agent-tracekrika2810Draws a pane beside the chat that lists every step after a prompt: each model request, tool call, and subagent, with time, tokens, context, and API-rate cost.idle-compactdavidarCompacts an idle session after 50 minutes, while the prompt cache is still warm, and pins a status line under the prompt with the before and after sizes.compact-timinglbzepoqoLets the model mark task boundaries and compacts at the end of a turn once the context passes 200k tokens, then resumes the work; a toast shows each compaction.context-metervumichienDraws a band above the prompt with what fills the context window by category, a countdown to when the prompt cache expires, and a Compact button.usage-meterhamzaferDraws the 5-hour and 7-day plan limits as small bars above the prompt, with the reset countdown and what this session cost.context-barhamzaferDraws the context window as one stacked bar, a color per category, with token counts and the compaction point.token-weatherAnthropicDraws a one-line forecast of the context window above the prompt. Fuller goes from clear toward a storm.token-weatherhamzaferDraws the context-window forecast above the prompt, plus how long the prompt cache has left.cache-clockhamzaferDraws a prompt-cache line under the status line: time left while warm, hits and misses, and how many tokens the next message re-caches once it goes cold.
All 183 in Usage