Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By ejklockv0.2.0MITIn 1 marketplace
A Claude Code mod that draws a band above the prompt with the whole session's prompt cache reads and writes, token usage, cost and subscription rate limits.
Code that runs inside Claude Code on every session, as you, unsandboxed.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Showshow
Show each bar and percent as the share used or as the share left.
One of used, left
stringdefault used
Localelocale
Language and number format of the usage band.
One of
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it changes what Claude reads (system prompt, context, reminders).
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
claude-code, plugin, usage, tokens, prompt-cache, cost, rate-limit, statusline
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
enpt-BRstringdefault en
Accountaccount
Show the email of the signed-in Claude Code account at the end of the usage band. masked hides part of it, and full shows the whole address, so it appears in screenshots. It shows after your first message.
One of off, masked, full
stringdefault off
token-usage is a plugin for Claude Code. It draws a band above the prompt that shows the token usage of your whole session. The band shows the prompt cache reads and writes with the cache hit rate, the session cost, and your 5-hour and weekly rate limits. It counts the main loop and every subagent.

Run one command. It adds the marketplace and installs the plugin:
curl -fsSL https://raw.githubusercontent.com/ejklock/claude-usage-mod/main/scripts/install.sh | bash
To use the band in Brazilian Portuguese (pt-BR), pass the locale:
curl -fsSL https://raw.githubusercontent.com/ejklock/claude-usage-mod/main/scripts/install.sh | bash -s -- --locale pt-BR
The script also accepts --scope user|project|local (default: user) and --help.
You can also install from inside Claude Code. Type this at the prompt:
/plugin install token-usage --marketplace ejklock/claude-usage-mod
Claude Code asks Add marketplace?. Answer y. Then choose a scope with Enter. The first scope is user.
Or run the two claude plugin commands yourself:
claude plugin marketplace add ejklock/claude-usage-mod
claude plugin install token-usage@token-usage
Start a new Claude Code session after the install to see the band.
The band adapts to the width of the terminal.

On a wide terminal (100 columns or more) the band fills the full width in two columns. Session usage is on the left. Your rate-limit windows are on the right and follow the left column with exactly 4 spaces, at any width. They are laid out as a table: the labels, the bars, the percents, the forecasts and the countdowns line up, so every bar starts and ends at the same column and the lines are padded to the right edge:
◔ ctx ■□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□ 4% ◷ 5h ■┃■■□□□□□□□□□□□ 24% ↯ 2h 16m ↺ 4h 17m
↻ cache R 56.6k · W 15.5k · ◎ 79% $0.14 ◷ 7d ■■■■■┃■■■■□□□□□ 69% ↯ 1d 4h ↺ 4d 8h
Under 100 columns the band stacks: line 1 is session usage and line 2 is the rate limits, with each part separated by a thin bar. The bars are 6 cells wide down to 80 columns. Under 80 columns the bars are dropped, the icons stay, and the parts that do not fit are left out. A line never goes past the width of the terminal.
Session usage:
◔ ctx is how full the context window is. It shows ◔ ctx — until the first measure arrives.↻ cache R … W … ◎ … is the prompt cache. R is tokens read from the cache. W is tokens written to the cache. ◎ is the cache hit rate. Token counts use k for thousands and M for millions.account option is masked or full (see Configuration). It follows the cost, after 2 spaces, in a soft blue-gray. It appears after your first message, because Claude Code hands the email over only then. On a wide terminal it ends the cache line, and it is left out, with the two columns kept, when it does not fit. When the band stacks it ends line 1 and is the first part left out.Rate limits. They show only when your plan reports them. Without them the band shows the left column only:
◷ 5h is the 5-hour window. ◷ 7d is the weekly window. Any other window kind follows on its own line.↺ with the time left until the window resets, as a countdown: 1d 17h, 4h 17m, 12m or <1m. The same text is used in English and in Brazilian Portuguese. A window with no reset time shows no countdown.┃ on a bar of the 5-hour or weekly window marks how much of the window has passed. It replaces one cell and the bar keeps its length. The spend limit of a gateway has no known length, so it has no marker.↯ in red is a warning. It shows the time left until the limit, when your pace so far in this window would reach the limit before the window resets. It sits between the percent and the countdown, and the column is left out when no window has a warning.The bars use ■ for the used part and □ for the rest. With the show option set to left, they use ■ for the part still free. A reading above 0 always shows at least one ■. On a wide terminal each bar fills its column after the text around it, from 8 up to 60 cells; the context bar stops at 60, and the window bars may grow into the room that frees. If the parts do not fit the two columns, the band stacks.
How the colors work:
npx claudepluginhub ejklock/claude-usage-mod --plugin token-usagePlugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.