DSH Plugins Marketplace

DSH Plugins

Plugins

/

dsh-usage-panel

q

dsh-usage-panel

Manifest valid

Session-level token usage & cost panel plugin for DeepSeek Harness (DSH)

UI (client)hasBundlePatch

dsh-usage-panel

DeepSeek Harness(DSH)会话级 Token 用量与费用统计面板插件:解析本机会话存档,在 Web GUI 内回答「今天/本月烧了多少 token、多少钱、烧在哪」。

功能

  • 三面 UI(Apple 风格)
    • 侧栏主看板:时间筛选(今日/本周/本月/全部)、每日趋势图、模型 × Provider 分解、会话消耗 Top(子 Agent 派生用量归并主会话)、主/子 Agent 拆分、cache 命中率、调用级明细表(分页 + 筛选)、web-router 账本区
    • Composer 底部状态条:今日 token 与估算费用,点击展开看板
    • 常驻 Dock:今日 / 本月两组数字
  • 费用四态计价,口径透明、绝不静默按 0 计:
    • official 官网牌价快照(cache 分档计价,来源与更新时间可见)
    • community 社区源可选刷新(OpenRouter / LiteLLM,显式手动触发)
    • shadow 订阅/中转线按背后模型官方牌价折算,标注「订阅线·影子成本」
    • unpriced 显式未定价,绝不显示 ¥0
  • web-router 账本整合:付费检索渠道调用次数与人民币折算(按渠道单价表),账本缺失时优雅空态
  • usage_query 工具:agent 可在对话中直接查询用量(since / until / group_by)
  • 本地优先:只读本机会话存档与账本,聚合数据存于本机 DSH 数据目录;无遥测、无数据外发(社区价格刷新为显式操作,仅拉取价格数字)

安装

dsh plugin add github:qikairo7/dsh-usage-panel --profile <你的profile>

安装后刷新 Web GUI,侧栏出现「用量」面板。

数据与口径说明

  • 数据源:DSH 会话存档(zstd 多帧 JSONL),增量水位扫描,全量历史回溯;聚合数字可逐级对回明细求和
  • 计价是牌价折算的核算口径,不代表订阅制通道的真实账单支出
  • 价格快照带 _caveats 字段记录注意事项(如限时价到期时间、待确认模型)

开发

npm run check        # lint(tsc strict) && test && build
node scripts/smoke-corpus.mjs   # 真实全库冒烟(读取本机 DSH 数据目录)

English

dsh-usage-panel is a session-level token usage & cost dashboard plugin for DeepSeek Harness (DSH). It parses local session archives (multi-frame zstd JSONL) with incremental watermark scanning and renders an Apple-style UI in the DSH Web GUI: a sidebar dashboard (daily trends, model × provider breakdown, session top-N with sub-agent rollup, main/sub-agent split, cache hit rate, call-level detail table, web-router ledger section), a composer status bar, and a persistent dock.

Costs use a four-mode pricing model — official snapshot, optional community refresh (OpenRouter/LiteLLM), shadow pricing for subscription/relay lines, and explicit unpriced (never silently zero). An agent-facing usage_query tool is included. Local-first: no telemetry, no data leaves your machine.

Install: dsh plugin add github:qikairo7/dsh-usage-panel --profile <profile>

License

MIT

Comments

Loading…

Similar plugins

dsh-billing

by Wanbinyu

Local per-model cost, token usage, and session quota plugin for DeepSeek Harness

UI & ExperienceManifest valid

★ 3

MIT

TypeScript

Sep 25, 2026

dsh plugin --profile web add dsh-billing-community-bundle

by liyiersan

DSH plugin: show DeepSeek API pricing, token usage/cost and account balance inside DeepSeek Harness

Manifest valid

★ 0

MIT

JavaScript

Sep 12, 2026

dsh plugin --profile web add @local/dsh-usage-monitor

by kai-GitHubaccount

DeepSeek 余额 + Token 用量面板(DSH Web):三级预警、自定义阈值、一键充值、缓存命中率 | Balance & usage panel for DeepSeek Harness

Development & InfrastructureTools & CapabilitiesManifest valid

★ 0

MIT

JavaScript

Sep 21, 2026

dsh plugin --profile web add dsh-usage-panel

by lurejewel

Lightweight, native sidebar usage panel for DeepSeek Harness: official balance + token usage history from session logs.

Models & ProvidersManifest valid

★ 0

MIT

JavaScript

Sep 28, 2026

dsh plugin --profile web add dsh-usage-plugin

by HFUT-zhengjiahao

DeepSeek API balance, conversation token usage, and CNY cost estimation for DeepSeek Harness (DSH)

Sessions & MessagesManifest valid

★ 0

MIT

JavaScript

Sep 19, 2026

dsh plugin --profile web add dsh-balance

by kam74515-boop

DeepSeek Harness token usage and estimated cost dashboard

Manifest valid

★ 0

MIT

TypeScript

Aug 15, 2026

dsh plugin --profile web add dsh-show-me-how-much