woodfood111/dsh-token-live

dsh-token-live adds a live reading row under the DSH composer: draft token estimate, session cost and cost per hour, context-window pressure, cached share - and a comparison pill showing what the same token buckets would have cost on the priciest other model in the price list.

dsh-token-live puts live readings under the DSH composer: the draft's approximate token count and character count, updated on every keystroke; the session's cost in yuan plus a cost-per-hour rate; the context window used against its limit with a bar; and the session total with the cached percentage. Its distinguishing feature is a comparison pill: it prices your exact token buckets - the same cache hits, cache misses and output - on the costliest other model in the price list at the same billing tier, so you can see what the expensive route would have cost for this exact work, and hovering lists every model against the session with the current one marked. The README's argument is that every other cost plugin answers 'what did I spend', which already has a dozen good answers, while choosing a model is the different question a price list exists to answer.

Usage & Billing ★ 1
View on GitHub ↗

Install

dsh plugin --profile web add dsh-token-live

Copied verbatim from the README's Install block. The README notes the browser bundle reloads on its own when a client bundle changes, while the server-side row needs the plugin tree to re-compose (a dsh web restart). npm package dsh-token-live at 0.1.0 (registry check 2026-10-16; the registry repository field resolves back to this repo).

Compatibility

The plugin adds one entry to the composer dock (conversation.composer.dock) and the README states it does not replace the harness's own stats pill. Every reading comes from existing harness surfaces rather than extra requests: the draft estimate from the session-scoped input hook (InputState.draft), cost from the tokenUsage projection times DeepSeek's published price list, the context bar from the contextPressure projection. The README notes the plugin was written after surveying the 197 entries in the awesome-dsh-plugin usage category, so its positioning is deliberate rather than accidental.

Details

Alternatives

940842546/dsh-usage-billing · AlfredChaos/dsh-usage-panel · dingyi222666/dsh-wakatime

More plugins in Usage & Billing

Browse more in Usage & Billing

Guides for Usage & Billing plugins