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 pleaseai Verified Orgv0.1.0MIT OR Apache-2.0In 1 marketplace
Shows how much of a shunt gateway's shared account pool is used and when each window resets, in a band above the prompt. Needs shunt's usage endpoint enabled and early-access CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1.
Trending plugins
7-day copy clicks
You run one by typing its /name in Claude Code.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Usage bandusageBand
Show usage above the prompt: the shunt pool's, refreshed every minute and after each turn, or the session's own rate limits off shunt. Off, the mod polls nothing and /shunt:usage still answers.
booleandefault true
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it runs programs; makes network requests; reads environment variables (ANTHROPIC_API_KEY, ANTHROPIC_AUTH_TOKEN, ANTHROPIC_BASE_URL, HOME, SHUNT_BASE_URL, SHUNT_TOKEN, USERPROFILE); reads your settings.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
llm-gateway, usage-monitoring, rate-limits, quota-tracking, status-band, function-hooks, token-usage, shunt ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A Claude Mod — a Claude Code plugin whose behaviour is a
function hooks module —
that shows usage in a band above the prompt — the
shunt gateway's shared account pool on
shunt, the session's own Claude rate limits otherwise — and answers
/shunt:usage with the pool's full breakdown.
shunt · 5H 5% ↻1h 41m · WK 46% ↻1d 7h · Fable 31% ↻1d 7h ⚠ anthropic degraded
> /shunt:usage
shunt: pool — degraded http://127.0.0.1:3001
5h ▓▓▓▓▓▓░░░░ 62% left resets 04:11
7d ▓▓▓▓▓▓▓▓░░ 81% left resets Sun 01:11
fable ▓▓░░░░░░░░ 19% left resets Sun 01:11
claude ok 5h 71% 7d 84% fable 19%
codex exhausted 5h 0% 7d 40% fable —
headroom left, averaged over the pool's accounts; a shared figure, not a promise about your next request
The mod reads the gateway's GET /usage
endpoint and prints it. It answers the command itself — the hook returns without
calling next, so nothing is sent to the model and the answer costs no tokens.
On a shunt gateway the band shows the pool, tagged shunt ·. Each figure is
how much of the window is used — 1 - remaining, the same pool-wide mean
the command reports as headroom — followed by the time to that window's
earliest reset. Used rather than left, so it reads the same way as Claude
Code's own /usage and as the band reads off shunt. A figure turns amber from
70% and red from 90%. Each pooled provider whose status is not ok is flagged
at the end (⚠ anthropic degraded: amber for degraded, red for exhausted
or capped), or the pool itself when no provider is listed. A window no
account reports is left out.
Off shunt — no gateway set, a gateway that answers GET /usage with 404, a
successful response that is not a pool report, or one that pools no provider — the
band shows the session's own rate limits instead, untagged, as
$.session.usage() and session.measure report them:
5H 5% ↻1h 41m · WK 46% ↻1d 7h
On shunt it reads GET /usage when the session starts, every minute after,
and after each turn — the moment the pool has just been spent from — and
ignores the session's own limits, which come from whichever pool account
answered last. A refused token (401 or 403), an unreachable gateway, another
error status, or a shunt gateway token helper that fails is a fault on shunt,
so it is flagged rather than replaced: shunt · ⚠ credential refused, or
shunt · ⚠ gateway login unavailable for the helper. With neither a gateway nor rate limits (an
API key sent straight to Anthropic) the band draws nothing. Whatever another
plugin draws in the band stays on its left.
Collapse the band for the session with its [-] (ctrl+x ctrl+a), or turn it
off with the usageBand option below.
remaining is the fraction of the pool's combined capacity still usable, so
62% means 62% of the headroom is left, not that 62% is spent. It is
mean(clamp(cap - utilization, 0, 1)) over the non-disabled accounts that report
the window, where cap is the account's max_utilization hard cap for that
window (100% when none is set): nine exhausted accounts plus one fresh uncapped
one read 10%, not 100%, and an account at 44% under a 50% cap counts only 6%.
An account a cap already excludes from the window's requests counts zero; a 5h or
7d cap excludes it from every request, Fable ones included.
It is a pool-wide aggregate, not a prediction — routing also weighs
availability, model, session affinity and priority, so a healthy figure is not a
promise that your next request is admitted. For the routing-aware worst case, use
GET /api/oauth/usage instead.
| Window | What it covers |
|---|---|
5h | The rolling 5-hour session window |
7d | The shared weekly window |
fable | The Fable-scoped weekly window (7d_oi) |
A window reads — when no non-disabled account reports it. ChatGPT/Codex
accounts populate 5h and 7d from x-codex-* response headers and have no
Fable-scoped signal of their own.
pool is the aggregate across every pooled provider; the rows beneath it are the
same aggregate per pooled provider, so a session routed to one provider can read
that provider's headroom instead of the blended figure. The endpoint never
carries account names, counts, priorities or per-account numbers — that detail
stays behind the admin-only GET /admin/api/pool.
Point Claude Code at your gateway, as you already do to route through it:
export ANTHROPIC_BASE_URL=http://127.0.0.1:3001
export ANTHROPIC_AUTH_TOKEN=<your client token>
7-day copy clicks
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