dsh plugins中文
← Back to popular plugin directory

Cost Meter · dsh plugin

Sttrevens/dsh-cost-meter · productivity

dsh plugin: per-turn USD cost badge in the Web UI (session total + per-message footer, hover breakdown) from token usage x a configurable pricing table.

★ 2GitHub stars
0Forks
2026-08-29Last updated
JavaScriptLanguage
MITLicense

Key features

  • Host half (lib/index.js) registers a sessionCost projection on the session-projection seam.
  • The fold tracks the current provider/model from request/header events and accumulates cost from the provider-reported usage buckets (uncached input / output / cache-read / cache-write), reusing token-meter's "replace the same (turn, step) sample instead of double-counting" rule.
  • The view exposes the whole-session totals plus a byTurn map keyed by turn number.

Install command

dsh plugin --profile web add github:Sttrevens/dsh-cost-meter
View GitHub repository ↗Back to popular plugin directory