billing.md
August 19, 2026 · View on GitHub
用量与计费
对应网站分类:用量与计费 · Usage & Billing
| 插件 | 能力 | 安装或挂载方式 | 许可 / 风险 |
|---|---|---|---|
| bpc-oss/dsh-web-billing | RMB/USD token-billing for dsh web: official-policy auto pricing with peak/off-peak hours, per-message ledger, account balance polling, locale-driven currency display; host /billing route + hand-written client fee badge/panel (read-only over session/event). | dsh plugin --profile web add github:bpc-oss/dsh-web-billing (or dsh plugin --profile web add dsh-web-billing after publish); restart dsh web | MIT |
| brittanistrehlowll-oss/dsh-quota-panel | Provider quota/balance corner panel for the dsh web surface: server-side credential proxies plus a config-driven page badge; shipped defaults overridable in the profile's cordis.patch.yml. | dsh plugin --profile web add "github:brittanistrehlowll-oss/dsh-quota-panel" ; restart dsh web (bundle layers apply at boot) | MIT;Review which provider keys the credential proxies touch. |
| dshiq04/dsh-deepseek-balance | 余额查看 (API balance widget): web UI 侧边栏底部(Settings 上方)展示 DeepSeek API 余额,悬停显示币种/总额/赠送/充值,可配置颜色与手动刷新;API key 存 $DSH_HOME/settings.yaml 或 DEEPSEEK_API_KEY env。 | dsh plugin --profile web add dsh-deepseek-balance --link - id: dsh-deepseek-balance loader entry in $DSH_HOME/profiles/web/cordis.patch.yml (package must be resolvable from the profile node_modules) | MIT;Cross-device setup needs 4 manual steps; on this machine it relies on a local junction into the dsh installation's @deepseek-ai dir. |
| Ghost011118/dsh-balance-meter | 余额与会话成本面板:Web GUI 显示 DeepSeek 账户余额与按会话 token 成本;account balance and session-cost readout for the DSH Web GUI | dsh plugin --profile web add https://github.com/Ghost011118/dsh-balance-meter (or dsh plugin --profile web add link:$(pwd)/dsh-balance-meter) | BSD-3-Clause;Needs Harness 0.1.0-rc.6+ web profile; pairs with dsh-autostart for stable hosting |
| Han-1413141/dsh-cost-meter | 会话费用统计(中英双语):本会话/当日费用、历史记录与官方价格同步;会话徽章、侧边栏余额与预算图框、设置页 | dsh plugin --profile web add github:Han-1413141/dsh-cost-meter | MIT |
| hccccc01333/dsh-analytics | Agent FinOps/Token 用量分析:从会话 Engine+Cache 收集用量,webServer 挂载时提供只读 /analytics JSON 路由与浏览器 client bundle,含 skill/sub-agent ROI 分析 | dsh plugin --profile web add dsh-analytics (或 add github:you/dsh-analytics#<sha> / 本地目录) | MIT |
| hnmrxz/dsh-plugin-deepseek-balance | 底部状态栏实时显示 DeepSeek 账户余额(同源路由 /dsh-deepseek-balance,credentials seam 实时解析 API Key,10 秒缓存) | npm install dsh-plugin-deepseek-balance 后,在 ~/.dsh/profiles/web/cordis.patch.yml 插入 name: dsh-plugin-deepseek-balance | MIT;Not yet published to npm - use local install until published. |
| hnmrxz/dsh-plugin-usage-dashboard | 底部状态栏 DeepSeek 用量与估算花费:按会话聚合 token/成本,余额预算告警(复用与余额插件同一条凭据链路) | npm install dsh-plugin-usage-dashboard 后,在 ~/.dsh/profiles/web/cordis.patch.yml 插入 name: dsh-plugin-usage-dashboard | MIT |
| hurry060215-tech/dsh-api-usage-bar | Web UI 轻量 API token 用量条:按缓存输入/未缓存输入/输出三分段显示用量构成与数值,纯前端不新增模型工具或 token 开销 | dsh plugin --profile web add github:hurry060215-tech/dsh-api-usage-bar#v0.1.0,重启 dsh web 并刷新页面 | MIT;适用于 DSH >=0.1.0-rc.6 <0.2.0;条形表达的是用量构成而非账户余额进度 |
| imeepos/dsh-billing-plugin | 实时计费:Service+Consumer+Policy 三角色,价格/峰谷窗口/预算全部配置化,超预算时下一步被拒绝并记录预算耗尽通知 | 在 profile 的 cordis.patch.yml(或自有 cordis.yml) 添加挂载行 name: "dsh-billing",用 dsh --profile <p> --dump-config 确认已入插件树 | MIT;教材随书代码(第 11–15 章),配置价格/预算需自行核对;仓库无独立 LICENSE 文件(仅 package.json 声明) |
| jasonsun29/ds-balance-card | 常驻额度卡片:自动识别凭证库中已配置的平台 API Key(精确匹配),逐平台显示账户余额与 Coding Plan 套餐额度,支持低余额预警 | 克隆仓库放到任意位置并链接到 profile 的 node_modules,再在 ~/.dsh/profiles/web/cordis.patch.yml 追加插件行(web profile 专用),详见 README 安装节 | MIT;凭证名需精确匹配(大小写敏感);headless profile 无需安装 |
| jelly-000/dsh-balance-monitor | 侧边栏余额监控:在设置上方显示 DeepSeek 账户余额、余额剩余比例条与今日花费,卡片每 60s 轮询、标签页可见时立即刷新 | dsh plugin --profile web add dsh-balance-monitor (git 形式:dsh plugin --profile web add github:jelly-000/dsh-balance-monitor#main) | MIT;README 中 git 安装命令含 |
| Jolly-J/dsh-deepseek-billing | WebUI 左侧边栏底部余额小卡片 + 按会话费用估算(官方 Get User Balance 轮询 + 内置价格表) | dsh plugin --profile web add https://github.com/Jolly-J/dsh-deepseek-billing.git | MIT;价格表内置,官方调价需更新插件版本 |
| juhe291/dsh-token-panel | 右下角常驻 Token HUD:实时会话压力、累计消耗、历史曲线、按日/月统计、成本估算(/snapshot 与 /stats 两条路由) | dsh plugin --profile web add github:juhe291/dsh-token-panel | MIT;pnpm>=10 首次 Git 安装需在 profile 的 pnpm-workspace.yaml 允许构建脚本(ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED) |
| kbtime/DSH-plugin | 用量统计插件:统计 DeepSeek 用量、按官方定价(人民币)计算费用(含峰谷计价)、追踪缓存命中与当前对话上下文占用 | dsh plugin --profile web add github:kbtime/DSH-plugin#v0.2.0 | MIT;仓库创建当天即被审计(0 stars),早期阶段 |
| lanlandeli/dsh-usage-stats | Token 数据面板:历史累计、趋势图、活跃热力图、模型用量分析、CSV/JSON 导出;不保存提示词/回复正文/API key | dsh plugin --profile web add dsh-usage-stats | MIT |
| LaoYueHanNi/dsh-token-usage | 按请求粒度记录模型 token 用量(按天 JSONL,首次启动自动补齐历史),Web 设置面板「Token 用量」统计页(GET /token-usage/stats 路由) | dsh plugin --profile web add github:LaoYueHanNi/dsh-token-usage(开发用 dsh plugin --profile web add link:<目录> 或 dsh web --patch <cordis.yml>) | 未发现;仓库无 LICENSE 文件;pnpm>=10 需把包加入 profile 的 allowBuilds。 |
| linyp/dsh-plugin-langfuse | Langfuse 可观测性:实现 @deepseek-ai/dsh-session-telemetry 遥测接缝,把 agent 会话导出为 OpenTelemetry 追踪树(GenAI semconv)送至 Langfuse OTLP 端点。 | dsh plugin --profile web add dsh-plugin-langfuse (或显式 cordis.yml 行 name: dsh-plugin-langfuse) | MIT |
| nonewind/dsh-spend | Token 用量与成本监控:悬浮窗多维统计 + 时间序列图表 + 自动识别计费计划(Code/Token)与估算花费;内置供应商知识库(17 供应商/131 模型价格、provider 别名归一化);服务端经网关 SRC 注册 usageStats Remote,浏览器端直接 RPC 查询。 | dsh plugin --profile web add dsh-spend(或 github:nonewind/dsh-spend / 本地路径 -w /path/to/dsh-spend);覆盖默认配置在 ~/.dsh/profiles/web/cordis.patch.yml 加同 id usage-stats 行 | MIT;依赖 Typert Remote/网关 SRC 发现机制,宿主内部 API 升级可能失效;改配置后需重启 dsh web(HMR 不生效)。 |
| Nunchakus888/dsh-turn-budget | 回合级资源治理:对每个 Agent 独立限制模型步骤数、根/嵌套工具执行数与按 provider 汇报的精确 token 用量,超限 fail-closed;自带保守基线(每回合 24 模型步 / 40 工具调用),可由 profile 的 cordis.patch.yml 整行覆盖。 | git clone https://github.com/Nunchakus888/dsh-turn-budget.git && dsh plugin --profile web add ./dsh-turn-budget(改上限覆盖 profile 的 cordis.patch.yml 整行);开发 pnpm install && pnpm run check | MIT;0 星新仓库未发布 npm;按宿主快照实测后再上生产。 |
| pangzi499/dsh-balance-stats | Displays DeepSeek balance, current-session cost, token usage and invoice summaries in the conversation.composer.dock bar, with a details card. | npx @deepseek-ai/dsh plugin --profile web add https://github.com/pangzi499/dsh-balance-stats.git (or npm tarball / local path) | MIT |
| Sttrevens/dsh-cost-meter | 对话级/逐轮 USD 成本徽章:Host 半边 sessionCost projection 累积 usage 分段,Client 半边在 assistant-actions 槽位显示成本与明细。 | dsh plugin --profile web add @steven-wu/dsh-cost-meter,然后在 ~/.dsh/profiles/web/cordis.patch.yml insert: - id: cost-meter / name: '@steven-wu/dsh-cost-meter',重启 dsh web | MIT;安装需两步(add + 手动 patch 挂载);定价表本地可改。 |
| Wanbinyu/dsh-billing | 成本核算与配额进度:dsh-billing(按模型计费/会话配额投影,内置 1000+ 模型价格目录,随 pi-ai 目录生成) + dsh-client-ui-billing(composer dock 成本与配额进度条 UI)。 | npm install dsh-billing dsh-client-ui-billing,然后在 profile 的 cordis.patch.yml 添加 name: 'dsh-billing' 与 name: 'dsh-client-ui-billing' 两行(见官方 cordis-primer) | MIT;浏览器端集成与响应式 UI 测试未完成;价格目录依赖 pi-ai 模型目录。 |
| WilliamLIiii/DeepSeek-Harness-billing-plugin | Shows DeepSeek account balance and per-model remaining-task estimate as a session-header badge; /user/balance transport with peak/off-peak pricing table. | dsh plugin --profile web add @deepseek-ai/dsh-llm-billing @deepseek-ai/dsh-client-ui-billing; add both rows to ~/.dsh/profiles/web/cordis.patch.yml | MIT;Requires packages published under @deepseek-ai scope before dsh plugin add can resolve. |
| xinCodes/deepseek-billing-plugin | 余额与费用:/api/deepseek-billing/balance 路由用 DeepSeek 官方 API key 查余额,客户端包提供余额按钮 + 统计条费用组;多档价目表(DEFAULT_PRICE_TABLE,峰谷定价)。 | cd $DSH_HOME/profiles/billing && pnpm add file:<repo>/packages/deepseek-billing file:<repo>/packages/ui-deepseek-billing(bundle 补丁自动挂载宿主+客户端两行;开发者方式:源码检出内 pnpm dsh web --patch ./packages/billing/deepseek-billing/cordis.patch.yml) | MIT;apiKey 字面量写入 cordis.patch.yml 时勿提交 Git。 |
| Ychris12138/dsh-usage-stats | 为 dsh web 提供 Token 用量热图、按模型/供应商细分、DeepSeek 余额与订阅额度显示 | npx --yes github:Ychris12138/dsh-usage-stats(自动复制到 ~/.dsh/profiles/node_modules 并在 profiles/web/cordis.patch.yml 幂等启用;--dry-run/--check/--no-enable) | MIT;读取登录态 Cookie 的备用余额方式等同登录凭据,不应提交到 Git/日志/issue |
| yflmq001/dsh-cost-tracker | Token 成本追踪:按模型可配置定价,/cost 命令 + 每会话成本条 | dsh plugin --profile web add github:yflmq001/dsh-cost-tracker | MIT |
| Yihong89/dsh-usage-plugin | 每会话 Token 用量与成本估算报告(/usage 命令 + usage_report 工具),按 DeepSeek 官方定价表计价 | dsh plugin --profile web add -w 'github:Yihong89/dsh-usage-plugin#main&path:packages/usage-report' | MIT |
| yingjunnan/dsh-deepseek-quota | Web GUI 右下角悬浮卡片显示 DeepSeek API 余额与今日消费,另提供会话成本与余额查询 HTTP 接口(60s/5s 轮询) | dsh plugin --profile web add dsh-deepseek-quota | MIT |
| yweilai77-dev/dsh-plugin-cost | 会话费用估算:把 token-meter 的 tokenUsage 四桶(输入/缓存命中/缓存写入/输出)乘可配置价格表,在 Web UI 聊天输入框统计条旁显示『费用 ≈ ¥X.XX(估算)』;提供刷新价格按钮(Windows 更新时间式,平时不联网)。 | dsh plugin --profile web add github:yweilai77-dev/dsh-plugin-cost(升级:重跑 add 或固定 commit #sha;禁用:cordis.patch.yml 中 cost 行 disabled: true;卸载:dsh plugin --profile web remove dsh-plugin-cost + 重启) | 未发现;仓库无 LICENSE 声明;价格解析依赖 DeepSeek 官方价格页结构,官方改版后需改 fetchUrl。 |
| boNeXY226/dsh-cost-chip | Registers /cost slash command showing the current session's model, cumulative token consumption and cost, plus a draggable floating fee capsule in the web UI; time-sliced billing derived from session.events (falls back to dsh-token-meter tokenUsage). | dsh plugin --profile web add "file:cp index.js client.js package.json into $DSH_HOME/profiles/web/node_modules/dsh-cost-chip/), append name: dsh-cost-chip to the profile's cordis.patch.yml, restart dsh web | MIT;file: install is a snapshot — re-sync after editing sources. |
| dongsheng123132/dsh-cost | Token 成本记账 (cost ledger): 从 session-events/prices 构建基于证据的成本账本并做预算检查(--budget、--fail-closed)。 | dsh plugin --profile <name> add github:dongsheng123132/dsh-cost | MIT |
| dongsheng123132/dsh-recovery-proof | 容灾演练证据 (recovery drill evidence): 只读 inspect/verify 恢复演练 manifest/events/artifacts,生成可校验的证据记录。 | dsh plugin install github:dongsheng123132/dsh-recovery-proof, then dsh plugin compose dsh-recovery-proof | MIT |
| H1a3x/dsh-token-stats | 浮动 Token 用量面板:可拖拽浮层显示输入/输出/缓存/命中率、按 provider×model 明细、月热力图与会话级记录;draggable token-usage stats panel for the DSH web GUI | npx dsh-token-stats install (installs into $DSH_HOME/profiles/node_modules and writes the cordis.patch.yml row; then restart dsh) | MIT;Restart of dsh required after install |
| h565656445/dsh-observation-writer | 观测写入模块技能:将 observation 事件、成本与质量数据写入统一 ledger。Observation-writer skill: ledger writes of events/cost/quality data. | 方式A(预设): Copy-Item -Recurse .dsh $DSH_HOME/.agent-presets/dsh-observation-writer/ (重启后会话预设列表选择); 方式B(技能): Copy-Item .dsh/skills/dsh-observation-writer/SKILL.md $DSH_HOME/skills/dsh-observation-writer/; 或 git clone h565656445/dsh-integration 后用 install-presets.ps1 一键安装全部预设 | MIT;Brand-new personal-adaptation series (0 stars, all 31 repos created 2026-08-13); README explicitly states NOT an official DeepSeek Harness file; content is the author's Hermes Harness framework — inspect before adopting. Loaded as agent preset + skill, not a native bundle. |
| misakimiku2/dsh-cost-display | Shows cumulative session cost in the status bar with per-model and peak/off-peak pricing; auto-completes missing model prices from provider namespaces with fallback prices without overwriting configured ones; settings page '费用设置'. | dsh plugin --profile web add <path-to-dsh-cost-display> (or "dsh-cost-display": "link:<abs path>" + add to dsh.profile.bundles), restart | MIT |
| suimi8/dsh-cost-ledger | 跨会话成本账本:Cordis waterfall 捕获每次模型调用的 token 用量写入 SQLite,暴露 record/query/budget 工具,内置 DeepSeek 定价可覆盖。 | dsh plugin --profile web add <path-or-package>(host 从 package.json 的 dsh.bundle.patch 发现;git 安装需 allowBuilds dsh-cost-ledger: true) | MIT;早期行内版本;依赖未发布的 @deepseek-ai/dsh-llm 类型(本地 minimal types 兜底)。 |
| xinmo114514/dsh-usage-widget | Token 用量悬浮窗:可拖动窗口/圆点、曲线/热力图、总 tokens 大数字;宿主半注入 webServer/sessionQuery/sessionPersistence/timer 聚合会话日志,客户端半 ModuleLoader 注册,HTTP POST /usage/api/snapshot 通信。 | git clone "dsh-usage-widget": "link:/…/dsh-usage-widget",并在 ~/.dsh/profiles/web/cordis.patch.yml insert - id: dsh-usage-widget;CI=true pnpm install --no-frozen-lockfile 后重启 | MIT;需 pnpm 构建后 link 安装;依赖宿主 sessionQuery/sessionPersistence 注入服务。 |