dsh plugins中文
← Back to popular plugin directory

Dsh Token Cost Meter

YZz-S/dsh-token-cost-meter · productivity

Community plugins for DeepSeek Harness (DSH) Web GUI: session token cost meter with official dynamic pricing, DeepSeek & Volcengine billing balance, and update checker.

★ 3GitHub stars
0Forks
2026-08-25Last updated
JavaScriptLanguage
MITLicense

Key features

  • Real usagereads the session projection tokenUsage (provider-reported cumulative usage: cache-miss input / cache-hit input / output — same source as DSH's built-in stats line)
  • Price unitCNY / million tokens, taken from the official pricing page
  • Official dynamic pricingthe Host fetches and parses the official DeepSeek pricing page every 6 hours (including peak/off-peak price tables, auto-switching by Beijing time)
  • Graceful degradationif the official page fetch fails, automatically falls back to the built-in price snapshot, prefixing amounts with ≈ and noting the reason in the hover tooltip
  • Three-level model detection fallback: recent request provenance → requestConfig → Host agents.options.model

Requirements

  • DSH (Web mode, dynamic Cordis plugins supported
  • verified on DSH 0.1.0-rc.6 + Node.js v22 + Windows)

Install command

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