nextcost

nextcost is a Claude Code mod by HMarzban that 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.

Updated 2026-11-08

What is nextcost?

nextcost is a Claude Code mod by HMarzban that 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. It is listed under Cost & usage and has 5 GitHub stars.

TypeClaude code mod
AuthorHMarzban
RepositoryHMarzban/nextcost
Popularity5 GitHub stars
CategoryCost & usage
SecurityReview before installing (60/100)
Rank#1,334 of 9,397 Claude Code mods; #222 in Cost & usage
LicenseMIT
Last commit2026-11-08
Hooks11 events
Seesclassic hooks, compaction, every prompt
Draws onAbovePrompt

Is nextcost safe to install?

nextcost scores 60/100 on the MCPMods security check: Review before installing. Things to review: starts processes outside the sandbox; reads environment variables; watches every prompt or event. It passed 4 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 processes outside the sandboxReview
Writes no files or configPass
Reads environment variablesReview
Watches every prompt or eventReview
Doesn't drive ClaudePass
Validator reported problemsNote
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.after
$.clock.every
$.clock.now
$.command.register
$.env.getreads env vars
$.fs.readreads files
$.fs.statreads files
$.process.runruns processes
$.session.id
$.session.model
$.session.repo
$.session.root
$.session.usage
$.settings.readreads settings
$.state.get
$.state.set
$.store.getkeeps its own state
$.store.setkeeps its own state
$.ui.invalidatedraws interface
$.ui.resolvedraws interface
$.ui.toastdraws interface

How do I install nextcost?

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

Or ask Claude to set it up

Paste this into Claude Code and it installs nextcost for you:

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