返回目录

dsh-cost-meter

编辑精选维护状态: 活跃

han-1413141/dsh-cost-meter

DeepSeek Harness 会话与当日 API 费用、预算与官方余额统计插件:历史看板、峰谷计价与官方价格一键同步。

前往 GitHub
$ dsh plugin --profile web add dsh-cost-meter

267

星标

24

Fork

JavaScript

语言

MIT

许可证

2026-08-13

创建于

2026-09-09

最近推送

原生 DSH 插件,在 DeepSeek Harness 界面内展示会话 / 当日费用、预算、官方 + 自定义 Provider 余额与 Token 热图。通过 `dsh plugin --profile web add dsh-cost-meter` 安装;重启 dsh web。需要 Node.js ≥ 20。

DSH 适配

原生运行时

作者声明

安全审计

未审计

最后核验

2026-08-23

许可证

MIT

01它能帮你完成什么?

  • Track DeepSeek Harness session and daily API cost, budget and official balance in the UI

    Per-session and daily cost badges, budget %, official/custom-provider balance bars, a 26-week token-usage heatmap, and a history ledger — all in the sidebar and settings

    DeepSeek Harness users who want real-time spend visibility, peak/off-peak pricing alerts and multi-vendor Coding Plan quota tracking

02如何接入 DeepSeek Harness?

前置条件

  • Node.js ≥ 20
  • DeepSeek Harness with the `dsh plugin` command (`npm install -g @deepseek-ai/dsh`)

安装步骤

  1. 01

    Run `dsh plugin --profile web add dsh-cost-meter` (or pin a tag: `dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.5.41`)

    $ dsh plugin --profile web add dsh-cost-meter

  2. 02

    Restart `dsh web` for the plugin rows, Typert manifest and client bundle to be scanned at startup

    $ dsh web

验证接入成功

作者未说明

回滚

  • Uninstall with `dsh plugin --profile web remove dsh-cost-meter`.

03DSH 适配与能力边界

DSH 适配原生运行时

Native DSH plugin (web profile) that shows session/daily cost, budgets, balances and token usage inside the DeepSeek Harness UI.

  • Cost & balance dashboard

    DSH session usage (input/cache/output tokens)Per-session and daily cost, budget %, official balance (3-segment bar), custom-provider balance via configurable HTTP

    Balance queries go only to the official domain (api.deepseek.com); the API key is never sent to non-official baseURLs
  • Peak/off-peak pricing + alerts

    Real-time usage timestampsPeak windows (UTC 01:00–04:00, 06:00–10:00) with popup + system-notification alerts before switching; weekend all-off-peak rule from 2026-08-23

    Budget and overspend alerts only notify; they do not block calls
  • Multi-vendor billing

    provider+model usage across OpenAI/Anthropic/Gemini/Mistral etc.Per-provider/per-model isolated billing with a 90+ model price catalog and auto-matching; 8 Coding Plan quota queries

    Price sync can overwrite official same-name model prices; custom model entries are unaffected

04适合谁?何时不该用?

适合

  • DeepSeek Harness users who want real-time spend visibility, peak/off-peak pricing alerts and multi-vendor Coding Plan quota tracking

不适合

  • Per-model history backfill depends on the host session log still being on disk; calls whose log was cleaned can only be reconstructed as an 'unassigned model' residual row.

05兼容性、维护与安全提示

  • After installing or updating the plugin you must restart `dsh web` for the plugin rows, Typert manifest and client bundle to load.
  • Balance queries require network access to api.deepseek.com and a valid API key; the key is only ever sent to the official domain, and requests to a non-official baseURL are refused for balance.
  • Per-model history backfill depends on the host session log still being on disk; calls whose log was cleaned can only be reconstructed as an 'unassigned model' residual row.
2026-08-132026-08-22v1.5.41

MIT · 由 facts pack 抓取(README 分支 master)

06常见问题

怎么安装 dsh-cost-meter?

执行 `dsh plugin --profile web add dsh-cost-meter`(或固定到发布 tag),然后重启 `dsh web`。插件行与客户端 bundle 在启动时扫描加载。

我的 API Key 会发到哪里?

余额查询只通过模型请求所用的同一把 API Key 发往官方域名(api.deepseek.com)。若 baseURL 指向非官方域名,余额查询会被拒绝;模型请求不受影响。

什么是峰谷计价?

2026-08 起,峰时段为 UTC 01:00–04:00、06:00–10:00(峰时价),其余为谷时价(半价)。2026-08-23 起周末全天按谷价。插件在切换前会弹窗并可发送系统通知提醒。

超预算时会阻断调用吗?

不会。预算与超支提示仅作提醒,不会阻止模型调用。

08数据与来源

  • 作者声明github.com6221646c8c5a…

    DeepSeek Harness 会话费用统计插件(界面中英双语)

  • 作者声明github.com6221646c8c5a…

    dsh plugin --profile web add dsh-cost-meter

页面基于项目公开文档、仓库元数据和 DSH Plugins 的结构化解析生成;最后核验于 2026-08-23。发现错误?提交更正。

🏆

最佳 DeepSeek Harness 插件

从全目录挑出的 12 个值得优先安装的插件,覆盖各个分类。

DSH Plugins 是独立的 DeepSeek Harness 插件市场,与 DeepSeek 官方无关,也不代表官方背书。第三方插件未经安全审计,安装前请审查源码。

每周获取最新的 DeepSeek Harness 插件,绝不滥发。