DeepSeek Harness のネイティブ課金プラグイン。セッションログから実利用量を集計し、複数プロバイダの最新単価で費用ダッシュボードを表示。サブスク・残高の突合とコスト帰属分析に対応。
DSH 統合
ネイティブ実行
作者による申告
安全性監査
未監査
最終検証日
2026-09-05
ライセンス
MIT
01どんなタスクに使えるのか?
See exactly how much every DeepSeek Harness model run costs, in one dashboard
A sidebar cost card plus a six-zone billing dashboard (overview / tokens / usage / trends / rates / settings) aggregating real usage from persisted session logs, priced against live multi-vendor rates
DeepSeek Harness users who want per-run, per-model cost visibility instead of a raw token count
Close the loop on subscriptions, balances, relay quotas and ledger reconciliation
Subscription-plan quotas, multi-provider balances, relay quotas, declared endpoints and official-vs-local ledger reconciliation across providers
Heavy multi-provider DSH users who need to track plan quotas, balances and cross-check their billing
Explain where the cost actually goes, beyond the total
Input cache-hit/miss buckets (incl. reasoning), official vs third-party buckets, per-workspace/session/relay drilldown, per-round cost-spike attribution, and a per-model performance panel (TTFT mean / P50 / P90, tokens/s)
Engineers optimizing DSH spend who want cost attribution and latency-per-model insights
02DeepSeek Harness への導入方法
前提条件
- A running DeepSeek Harness host that auto-discovers the plugin via `dsh.client` / `cordis.patch.yml`.
- Host `sessionPersistence` enabled — without it the plugin falls back to a local stats file (`~/.dsh-usage-stats.json`) and only estimates usage.
インストール手順
- 01
Add the plugin to the host’s `cordis.patch.yml`: insert id `ui-usage-billing` with name `@kenz1117/dsh-ui-usage-billing`.
- 02
Or run `npm install @kenz1117/dsh-ui-usage-billing` in the host project, then start the host — a billing entry appears above Settings with no extra config.
$ npm install @kenz1117/dsh-ui-usage-billing
導入成功の確認
作者は未記載
03DSH 統合と能力の範囲
Native DSH plugin discovered via the host’s `dsh.client` / `cordis.patch.yml`; adds a billing dashboard surface and loopback-only HTTP APIs on top of the host’s `sessionPersistence` and credential seam.
Real-time usage aggregation
persisted session logs (via the host’s sessionPersistence)→cost metrics — this month / today / estimated / heatmap / trends — priced in CNY against live multi-vendor rates
writes a persistent usage ledger at `~/.dsh/.dsh-usage-ledger.json`Billing dashboard UI
aggregated stats JSON from the server→sidebar trigger card + six-zone full-screen dashboard (overview / tokens / usage / trends / rates / settings)
Subscription, balance & relay closed loop
official / subscription / relay balance APIs (via credential seam)→subscription quotas, multi-provider balances, relay quotas, declared endpoints, and official-vs-local ledger reconciliation
reads multi-provider balance / pricing APIs over the networkwrites the `~/.dsh` ledgerCost attribution & performance analytics
per-session / per-round cost and latency data→input cache-hit/miss buckets, official vs third-party buckets, per-round cost-spike attribution, and a per-model latency panel (TTFT mean / P50 / P90, tokens/s)
04誰に向いているのか?使うべきでない場面は?
向いている用途
- DeepSeek Harness users who want per-run, per-model cost visibility instead of a raw token count
- Heavy multi-provider DSH users who need to track plan quotas, balances and cross-check their billing
- Engineers optimizing DSH spend who want cost attribution and latency-per-model insights
不向きな用途
- Declared permission level is `high`: reads persisted session logs (files), calls multi-provider balance / pricing APIs (network), reads `apiKeyEnv` via the credential seam, and writes the `~/.dsh` ledger — but it does NOT execute shell commands.
- Update channel is `user-reviewed`: because the plugin has file / network / credential capabilities, DSH STORE requires local manual confirmation on every install; review the repo, pin a Commit, and lifecycle scripts before installing.
- Preview line (npm latest/alpha, 1.0.x) targets DSH 0.1.2 series; stable line (npm stable, 1.1.x) targets older hosts 0.1.0-rc.8 ~ 0.1.1-rc.2. Requires Node.js ^22.19.0 || >=24.0.0.
05互換性・メンテナンス・セキュリティ上の注意
- Declared permission level is `high`: reads persisted session logs (files), calls multi-provider balance / pricing APIs (network), reads `apiKeyEnv` via the credential seam, and writes the `~/.dsh` ledger — but it does NOT execute shell commands.
- Update channel is `user-reviewed`: because the plugin has file / network / credential capabilities, DSH STORE requires local manual confirmation on every install; review the repo, pin a Commit, and lifecycle scripts before installing.
- Preview line (npm latest/alpha, 1.0.x) targets DSH 0.1.2 series; stable line (npm stable, 1.1.x) targets older hosts 0.1.0-rc.8 ~ 0.1.1-rc.2. Requires Node.js ^22.19.0 || >=24.0.0.
MIT · actively maintained (latest release v1.1.7, 2026-09-04)
06よくある質問
DeepSeek Harness に dsh-ui-usage-billing をインストールするには?
ホストの `cordis.patch.yml` に insert id `ui-usage-billing`・name `@kenz1117/dsh-ui-usage-billing` を追加するか、`npm install @kenz1117/dsh-ui-usage-billing` を実行します。ホスト起動後、サイドバー設定の上に課金入口が表示され、追加設定は不要です。`sessionPersistence` が有効なら実利用量を自動集計します。
費用データの由来は? 偽のサンプルを使いますか?
サーバーは永続化されたセッションログをリアルタイムに集計し、複数プロバイダの最新公式単価で見積もります。データが届く前はゼロの空スナップショットを表示し、偽データは絶対に出しません。
どのプロバイダの残高・サブスクを追跡できますか?
サブスク枠、複数プロバイダ残高(DeepSeek・Kimi・StepFun・SiliconFlow・xAI・Z.ai GLM・Tencent Cloud TokenHub など)、中継所クォータ、宣言エンドポイント、公式/ローカル帳簿の突合まで追跡し、相互検証可能な課金ループを構成します。
高い権限が必要ですか? 更新はどうなりますか?
宣言される権限は `high`(セッションログ読み取り・残高/単価 API 呼び出し・credential seam 経由の `apiKeyEnv` 読み取り・`~/.dsh` 帳本への書き込み)ですが、シェル実行は含みません。更新チャネルは `user-reviewed` で、DSH STORE では毎回のインストールでローカル確認が必要です。
対応する DeepSeek Harness のバージョンは?
プレビュー線(npm latest/alpha、1.0.x)は DSH 0.1.2 系、安定線(npm stable、1.1.x)は旧ホスト 0.1.0-rc.8 ~ 0.1.1-rc.2 に準拠し、Node.js ^22.19.0 || >=24.0.0 が必要です。
07関連する DSH ワークフロー
dsh-better-sidebar
by omdsh-dev
ファイル表示・編集、ターミナル、Git、サブエージェントのページを内蔵し、サードパーティによる新規サイドバーページの登録にも対応する拡張可能なサイドバー基盤
dsh-tui
by ccch1mneyyy
Claude Code 風の全画面 TUI プラグイン。鯨トップバー、リアルタイム状態行、思考ストリーミング、Esc 二連打の巻き戻し、コンテキスト進捗バーと TPS メーター搭載。npm で一発インストール
dsh-tianshu-tui
by huiliyi37
DeepSeek Harness 向けインタラクティブ TUI:セッションワークスペース、画像 E2E(クリップボード/ビジョン橋)、スラッシュ補完、承認カード、推論可視化の純粋な表示層
dsh-popout-sidebar
by e2mcc
ポップアウトサイドバー:アーティファクトとファイルツリーを複数プレビュー形式で一覧し、別ブラウザタブにポップアウトして別モニターへドラッグ可能。他のサイドバープラグインと同時共存
08データと出典
本包为独立 npm 包,发布后即可被其他 DeepSeek Harness 宿主安装。
启动宿主后,侧边栏设置上方即出现计费入口。无需额外配置;`sessionPersistence` 可用时自动聚合真实用量。
このページは、プロジェクトの公開ドキュメント、リポジトリのメタデータ、および DSH Plugins の構造化解析に基づいて生成されています。最終検証日:2026-09-05。誤りを見つけた場合は、修正を送信してください。
dsh プラグイン おすすめ
最初に入れたい 12 のプラグイン。全カタログ・全カテゴリから厳選しました。
