跳到正文

bpc-oss/dsh-web-billing

50最近提交 2026年8月14日

dsh-web-billing DSH 插件

dsh-web-billing 是一个可安装的 DeepSeek Harness dsh web 组合包。它订阅带 usage 的 assistant 消息,持久化本地账本,按内置或可配置的计价策略计算费用,并在浏览器中提供费用标记和汇总面板。

如何安装 dsh-web-billing DSH 插件

dsh plugin --profile web add github:<owner>/dsh-web-billing

来源命令需要人工核对。复制不会执行命令。

数据来源

快照日期:2026年8月15日

manifest-valid

dsh-web-billing DSH 插件能做什么

  • 根据 usage 数据计算每条 assistant 消息的 token 费用。
  • 维护本地持久化账本,提供会话、今日、本月、累计及按模型的汇总。
  • 支持人民币和美元展示;可随界面语言自动选择,也可强制指定展示币种。
  • 提供可配置的内置政策计价表、峰谷时段、用户价格覆盖和政策覆盖。
  • 通过配置的 provider 余额端点查询账户余额。
  • 提供只读的 GET /billing/state 和 GET /billing/session/<id> 端点。
  • 在浏览器端添加消息费用角标和会话账单面板。

dsh-web-billing DSH 插件适合哪些场景

  • 在 dsh web 对话中跟踪 DeepSeek token 支出。
  • 按会话、时间范围或模型查看费用。
  • 在中文或英文的 DSH web 界面中显示 token 成本。
  • 将本地计算的使用费用与账户余额进行对照。
  • 为特定模型或未来价格政策变动自定义计价规则。

dsh-web-billing DSH 插件适合谁

  • DeepSeek Harness dsh web 用户。
  • 需要监控 token 使用量和支出的个人或团队。
  • 配置了 DeepSeek provider 凭证的 DSH web profile 开发者。

dsh-web-billing DSH 插件的限制

  • 根据包元数据,需要 Node.js 20 或更高版本。
  • 安装后需重启 dsh web 才会生效。
  • 同一个 DSH_HOME 只应运行一个实例,因为多个实例可能同时写入同一账本文件。
  • 账单端点默认仅允许回环地址访问;关闭 loopbackOnly 后会暴露与其他 GUI 路由一致的未鉴权路由。
  • 账户余额查询依赖已配置的 provider 凭证;请求失败或超时时可能静默降级。
  • README 表示内置价格表整理自官方公告,且应以官方定价页面为准。

客观检查信号

这些信号来自公开元数据扫描,不是本站安全认证。

  • dependency counts

    package.json declares 2 runtime, 0 development, 0 peer, and 0 optional dependencies.

    info
  • dsh bundle declared

    package.json declares DSH bundle metadata.

    info
  • license declared

    GitHub reports the repository license as MIT.

    info
  • package manifest available

    A root package.json was captured and can be inspected by the registry.

    info
  • source available

    Public GitHub source metadata is available for this registry snapshot.

    info

dsh-web-billing DSH 插件的相关选择

dsh-web-billing DSH 插件常见问题

dsh-web-billing DSH 插件是什么?

dsh-web-billing 是当前 DSH 插件快照收录的项目。页面基于仓库元数据和已核对的说明整理,运行前仍应查看上游仓库。

如何安装 dsh-web-billing DSH 插件?

页面展示来源记录中的安装命令。复制动作不会执行命令,运行前请确认 package、profile 和版本仍与上游文档一致。

dsh-web-billing 使用哪个 DSH profile?

dsh-web-billing 快照记录的 profile 是 web。DSH 版本变化可能调整 profile 约定,安装前请再次核对。

dsh-web-billing 与当前 DSH 版本兼容吗?

当前数据没有提供可验证的兼容版本矩阵。建议先确认最近提交、release 和 DSH 官方变更,再在可回滚的 profile 中测试。

dsh-web-billing 加载失败怎么办?

先检查安装命令、profile、依赖安装日志和 Cordis 启动输出。再对照本站排错页与上游 issue,保留完整报错串便于定位。

dsh-web-billing 有哪些替代 DSH 插件?

页面列出的相关插件来自当前快照的关联结果,只能作为候选。请按能力、最近维护时间、安装方式和限制逐项比较。