CCCq-C/dsh-api-cost

CCCq-C★ 0JavaScriptLast synced: 2026-08-15

Open on GitHub

DeepSeek Harness 插件:实时显示本会话 API 用量开销 / Real-time per-session API cost meter for DeepSeek Harness

README excerpt

dsh-api-cost English 中文 A Host + Web Client plugin for deepseek-harness ( dsh ): shows the real-time per-session API cost — the provider-reported token usage (uncached input / cache-hit input / output) priced with a configurable per-model rate table, rendered as a live chip above the composer. Installable via dsh plugin add . Features - apiCost session projection (host half): a pure fold over the session log that prices each provider usage sample at the model's rate, so streaming usage chunks update the cost live and the finalized assistant/message never double-counts. - Composer-dock chip (browser half): API cost $0.0023 1.2K + 3.4K tok , updating in real time; hover shows a per-bucket breakdown (input / cache hit / cache write / output, plus the model id). - Configurable pricing : USD per one million tokens; unknown models fall back to a default rate table, and per-model overrides ride the plugin row's config (see Configuration). - Bilingual UI (中文 / English), following the host locale. - Self-contained : no host-repository changes — the in-package cordis.patch.yml inserts its own row as a bundle layer. Installation The installer adds the package to the web profile's dependencies…

View full README on GitHub →
Terminal / TUIbillingclient-plugincostdeepseekdeepseek-harnessdshdsh-pluginusage

Category