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 HMarzban Verifiedv0.22.0MITIn 2 marketplaces
See what your next message costs: a live band above the prompt with the prompt-cache countdown, the re-warm price, session cost, context and your 5h/7d limits.
Trending plugins
7-day copy clicks
Code that runs inside Claude Code on every session, as you, unsandboxed.
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it runs programs; reads files; reads environment variables (CC_BAND_APPEARANCE, CC_BAND_GLYPHS, CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS, CLAUDE_CODE_PROMPT_CACHE_TTL, CLAUDE_CODE_SUBAGENT_PROMPT_CACHE_TTL, DISABLE_AUTO_COMPACT, DISABLE_COMPACT, ENABLE_PROMPT_CACHING_1H, FORCE_PROMPT_CACHING_5M, HOME, LANG, LC_ALL, LC_CTYPE, NEXTCOST_APPEARANCE, NEXTCOST_GLYPHS, NO_COLOR); reads your settings; reads or rewrites your prompts.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
2 marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
The price of your next Claude Code message, before you send it. This Claude Code plugin draws a calm band above the prompt that answers: is my cache still warm, what will the next message cost if it isn't, what is this session costing, and am I close to a limit? It spends no tokens and makes no network calls. By default it is one row of chips:

Two more layouts draw the same readings in other shapes:
pulse (the session's trace, for trends) and departures (a split-flap
board, for times). Try every state live on the website,
and see the changelog for what changed in each version. Found
something off? Open an issue.
claude plugin install nextcost --marketplace HMarzban/nextcost
It loads in your next session, or run /reload-plugins in an open one.
The band needs Claude Code with mods (function-hooks plugins). CI tests
every change on 2.1.299 and the latest release, so 2.1.299 is the oldest
version tested. The one-line form needs Claude Code
2.1.292 or later; on an older one, add the marketplace first
(claude plugin marketplace add HMarzban/nextcost), then
claude plugin install nextcost@harvey-mods.
Older than 2.1.299 isn't tested. Known differences there: before 2.1.290,
Claude Code doesn't tell a mod how many tool calls Anthropic ran, so for a
session that uses the advisor the band's re-warm quotes run about 58% high
(replayed on real transcripts), which makes 2.1.290 the floor for an accurate
price; idle compaction is also a 2.1.290 feature, so older versions never
compact an idle session; before 2.1.275, /plugin install inside a session
isn't there.
The desktop app bundles its own Claude Code, so a surface's version can differ from the terminal's. What counts is the version the surface you use runs.
It draws in the terminal and the desktop app's Code tab, which are the surfaces with a band above the prompt. WSL sessions don't load plugins. The repository README covers installing inside a session or for a whole team, updating and uninstalling.
| Command | Effect |
|---|---|
/nextcost | Toggle visibility |
/nextcost more / less | Open or close the expanded view, and show the band if hidden |
/nextcost show / hide | Set visibility explicitly |
/nextcost layout <name> | Draw the band in another layout, for every session, and show it if hidden |
/nextcost layout | Name the layout in use and list them all |
| Variable | Effect |
|---|---|
NEXTCOST_APPEARANCE | dark (default), light or plain; see Appearance |
NO_COLOR | Forces plain |
NEXTCOST_GLYPHS | ascii or unicode, in the terminal only; see Glyphs in the terminal |
CLAUDE_CODE_PROMPT_CACHE_TTL | 5m or 1h, so the band doesn't guess the cache's lifetime; see Cache lifetime |
FORCE_PROMPT_CACHING_5M=1 | The same, for 5 minutes |
ENABLE_PROMPT_CACHING_1H=1 | The same, for an hour |
The promptCacheTtl setting in settings.json pins the lifetime too; see Cache lifetime.
Set them in the shell you start Claude Code from (export NEXTCOST_APPEARANCE=light,
then claude). The band reads them when a session starts. Their names before
0.18.0, CC_BAND_APPEARANCE and CC_BAND_GLYPHS, still work.
This section describes chips, the default layout; the others are under Layouts.
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.
Plugins from other owners that cover similar ground
npx claudepluginhub hmarzban/nextcost --plugin nextcost