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.
The price of your next Claude Code message, before you send it.
nextcost is a free Claude Code plugin that draws a live band
above the prompt: the prompt-cache countdown, what a re-warm will cost, the
session's spend, context fill, and your 5-hour and weekly limits. In the
terminal and the desktop app; no tokens, no network calls.
While Claude Code's prompt cache is warm, each message re-reads the
conversation on Anthropic's side at a fraction of the input price: 0.05× on
Opus 5.5 and Sonnet 5.5. Step away longer than the cache lasts (5 minutes or
an hour after the last request) and your next message writes the whole
conversation to the cache again, at 2× base input on the hour's cache and
1.25× on five minutes. On the hour, that makes the context part ~40× the warm
read on Opus 5.5 and Sonnet 5.5 (~80× on Fable 5.1, ~20× on Haiku 5.5); on
five minutes, ~25× (~50× on Fable 5.1, ~12.5× on Haiku 5.5). Output and new
input cost the same either way. On Opus 5.5, on the hour, 300k tokens of
context is ~$2.40 to write against ~$0.06 to read.
nextcost shows the countdown and the price, and keeps your
spend and limits in view while you work. When Claude Code compacts an idle
session instead of letting its cache go cold, the band says so and prices
the summary.
Install
Needs Claude Code with mods (function-hooks plugins), outside WSL, which
doesn't load plugins. CI tests every change, in the terminal's engine, on
Claude Code 2.1.299 and the latest release, so 2.1.299 is the oldest version
tested. The one-line install below needs 2.1.292 or later (claude --version);
on an older one, use the two steps underneath. What differs on versions older
than 2.1.299, and between the desktop app's Claude Code and the terminal's, is
in the plugin README.
One command, in any terminal:
claude plugin install nextcost --marketplace HMarzban/nextcost
It loads in your next session, or run /reload-plugins in an open one. The
band appears above the prompt. A new conversation reads cache warming until
Claude's first reply, cache warm while Claude is replying, then counts
down from cache 1h 00m (or cache 5:00 on a five-minute cache). A session
that was already open may read cache – until Claude's next reply. Hid it
(Hide band, key h)? /nextcost brings it back. Nothing above the
prompt? Check the Needs line above (mods, and WSL), or
open a bug report.
The band draws in the terminal and in the desktop app's Code tab, and a
plugin installed from either is available in the other.
Had session-usage-band? That was nextcost's name before 0.18.0, and
this repository was claude-mod. Swap the old plugin for the new one:
claude plugin uninstall session-usage-band
claude plugin marketplace update
claude plugin install nextcost --marketplace HMarzban/nextcost
/usage-band and the CC_BAND_* settings still work. Your chosen layout
and the week of limit readings start afresh.
Inside a session, on an older Claude Code, or for a whole team
Inside a terminal session (Claude Code 2.1.275 or later). It asks you to
confirm adding the marketplace, then opens the plugin's details, where you
pick a scope:
Before Claude Code 2.1.292, the one-line form isn't there. Use two steps:
claude plugin marketplace add HMarzban/nextcost
claude plugin install nextcost@harvey-mods
For a team, commit this to the repository's .claude/settings.json.
Once a teammate trusts the folder, Claude Code fetches the marketplace in the
background and turns the band on. It needs no install command, since the band
loads straight from the marketplace. If it isn't showing yet, run
/reload-plugins: