billing.md

August 19, 2026 · View on GitHub

用量与计费

对应网站分类:用量与计费 · Usage & Billing

插件能力安装或挂载方式许可 / 风险
bpc-oss/dsh-web-billingRMB/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 webMIT
brittanistrehlowll-oss/dsh-quota-panelProvider 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 , plus - 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 GUIdsh 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-meterMIT
hccccc01333/dsh-analyticsAgent 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-balanceMIT;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-dashboardMIT
hurry060215-tech/dsh-api-usage-barWeb 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 安装命令含 占位符,实际应填 jelly-000/dsh-balance-monitor
Jolly-J/dsh-deepseek-billingWebUI 左侧边栏底部余额小卡片 + 按会话费用估算(官方 Get User Balance 轮询 + 内置价格表)dsh plugin --profile web add https://github.com/Jolly-J/dsh-deepseek-billing.gitMIT;价格表内置,官方调价需更新插件版本
juhe291/dsh-token-panel右下角常驻 Token HUD:实时会话压力、累计消耗、历史曲线、按日/月统计、成本估算(/snapshot 与 /stats 两条路由)dsh plugin --profile web add github:juhe291/dsh-token-panelMIT;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.0MIT;仓库创建当天即被审计(0 stars),早期阶段
lanlandeli/dsh-usage-statsToken 数据面板:历史累计、趋势图、活跃热力图、模型用量分析、CSV/JSON 导出;不保存提示词/回复正文/API keydsh plugin --profile web add dsh-usage-statsMIT
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-langfuseLangfuse 可观测性:实现 @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-spendToken 用量与成本监控:悬浮窗多维统计 + 时间序列图表 + 自动识别计费计划(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 checkMIT;0 星新仓库未发布 npm;按宿主快照实测后再上生产。
pangzi499/dsh-balance-statsDisplays 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 webMIT;安装需两步(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-pluginShows 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.ymlMIT;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-trackerToken 成本追踪:按模型可配置定价,/cost 命令 + 每会话成本条dsh plugin --profile web add github:yflmq001/dsh-cost-trackerMIT
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-quotaWeb GUI 右下角悬浮卡片显示 DeepSeek API 余额与今日消费,另提供会话成本与余额查询 HTTP 接口(60s/5s 轮询)dsh plugin --profile web add dsh-deepseek-quotaMIT
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-chipRegisters /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:" (or manually 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 webMIT;file: install is a snapshot — re-sync after editing sources.
dongsheng123132/dsh-costToken 成本记账 (cost ledger): 从 session-events/prices 构建基于证据的成本账本并做预算检查(--budget、--fail-closed)。dsh plugin --profile <name> add github:dongsheng123132/dsh-costMIT
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-proofMIT
H1a3x/dsh-token-stats浮动 Token 用量面板:可拖拽浮层显示输入/输出/缓存/命中率、按 provider×model 明细、月热力图与会话级记录;draggable token-usage stats panel for the DSH web GUInpx 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-displayShows 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), restartMIT
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-widgetToken 用量悬浮窗:可拖动窗口/圆点、曲线/热力图、总 tokens 大数字;宿主半注入 webServer/sessionQuery/sessionPersistence/timer 聚合会话日志,客户端半 ModuleLoader 注册,HTTP POST /usage/api/snapshot 通信。git clone && cd dsh-usage-widget && pnpm install && pnpm build; 在 profile package.json 加 "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 注入服务。

返回 README