DSH Plugins Marketplace

DSH Plugins

Plugins

/

Development & Infrastructure

/

dsh-channel-credits

b

dsh-channel-credits

Manifest valid★ 1

Permanently display the channel points balance in the DSH input box statistics bar, and attribute each round of conversation's points consumption by account.

UI (client)hasBundlePatch

dsh-channel-credits

输入框下方统计栏常驻显示渠道积分余额;每轮对话结束后在回合尾部回填本轮积分消耗。

数据全部来自 dsh-our-free-model 已注册的 channel-pack RPC 服务(usage.badge / provider.status),不请求任何外部接口,不读凭据文件。

两个挂载点

槽位位置内容
conversation.composer.dock输入框卡片下方统计栏(⊙ 上下文环 右侧)剩余 9,034 积分,点击强刷
conversation.chat.turnTail每轮回答末尾的动作行之前本轮 −0.31 积分

统计栏条目靠 CSS order:1 排到 activity / usage / ContextMeter 之后 —— 那三个 原生条目都没有 order(默认 0),所以本插件是这行的最后一个 flex item。

数据口径

  • 剩余积分:宿主 usage.badge 返回的 balance.total 按 provider 求和。只对 provider.status 里 accounts.total > 0 的 provider 取数(宿主是逐账号顺序打上游的, 盲目全量轮询会触发风控)。
  • 本轮消耗:宿主和上游都没有任何单次消耗字段,因此用余额差量实测:回合刚结束时 强刷一次作为基线,再在 70s / 120s / 180s 采样,取到回落就结算。上游扣账延迟实测 60~100 秒,所以回合结束时读到的必然还是旧值 —— 这也是必须异步回填的原因。
  • 结算结果写 localStorage(键 dcc:v1:turn:<sessionId>:<turn>),刷新页面不重算。
  • 同一会话只允许最新一轮认领差量;0 值也记账,避免重复结算。

依赖的真实接口

connection.rpc.call('/api', 'channel-pack', { method, payload }, signal)
  • usage.badge { provider, force } → { accounts: [{ accountId, nickname, balance: { total, packages } }], windowDays }
  • provider.status { providers } → { statuses: { <p>: { accounts: { total, enabled }, closed } } }

宿主的徽标缓存 TTL 是 120 秒,插件轮询周期也是 120 秒,force:true 只在点击和结算采样时用。

依赖风险(重要)

本插件读的是 dsh-our-free-model 注册的私有 RPC 服务 channel-pack,不是 DSH 官方稳定 API。dsh-our-free-model 默认开启热更新(autoReloadWatch),上游一旦调整 usage.badge / provider.status 的方法名、参数或返回结构,插件会静默失效(界面不报错, 只是不显示)。

同理,dsh-channel-credits 只适用于装了 dsh-our-free-model 并配置了至少一个渠道账号 的 DSH 桌面端;没有该插件时 connection.rpc 找不到 channel-pack 服务,本插件不渲染任何内容。

与 dsh-ofm-balance 的区别:那个在侧边栏 列各渠道额度、只做余额展示;本插件在输入框统计栏常驻余额,并且对每一轮对话回填 积分消耗与具体扣款账号(本轮 −3.91 积分 · ACAI)。

已知限制

  • 单位混用:cline 是美元、zcode 是 token、gemini 是额度,其余按「积分」显示。 多 provider 合计时只累加同单位条目。
  • 凭据缺失的账号(如 qodercn)返回 balance: null + error: '凭据未配置',界面上 显示为「不可用」,不计入合计。
  • 一个回合里如果切换过 provider,差量会算到当前 provider 的合计上。

装配

profile 的 package.json($DSH_HOME/profiles/<name>/package.json):

  • dependencies 加 "dsh-channel-credits": "file:/absolute/path/to/dsh-channel-credits" (或直接 dsh plugin add)
  • dsh.profile.bundles 末尾追加 "dsh-channel-credits"

包内 cordis.patch.yml 插入一行 channel-credits,客户端半边由 dsh.client.platform: web 声明。 改动需要重启 DSH 桌面端才生效(cordis 树只在启动时构建)。

Comments

Loading…

From the same category

awesome-dsh-plugin

by awesome-dsh-plugin

A curated list of plugins for DeepSeek Harness (dsh) · DeepSeek Harness 插件精选列表

Development & Infrastructure

★ 19.7k

CC0-1.0

Python

Oct 20, 2026

Index only — not installable

by 0xsline

DeepSeek Harness (DSH) ecosystem: curated plugins, tools, and infrastructure from dsh-external/hub and the public dsh-plugin topic.

Development & Infrastructure

★ 1.2k

CC0-1.0

Python

Oct 16, 2026

Index only — not installable

by pax-beehive

Open-source CLI, schemas, resolver, and DSH agent tools for DSH Plugin Hub

Development & Infrastructure

★ 386

MIT

TypeScript

Oct 20, 2026

Index only — not installable

by xiajiajun516

DeepSeek Harness (DSH) backup & restore plugin — export, import, migrate and sync your complete DSH configuration, plugins, MCP servers, skills and workspace. One-click migration to another machine.

Development & InfrastructureManifest valid

★ 217

MIT

TypeScript

Oct 18, 2026

dsh plugin --profile web add dsh-config-manager

by yjh051108

推荐组件(非必须):DeepSeek Harness 运行时注入器;已随 dsh-routing-suite 单仓库化保留,本仓库继续维护/发布。

Development & InfrastructureManifest valid

★ 165

TypeScript

Oct 16, 2026

dsh plugin --profile web add @dsh-external/dsh-super-injector

by jigjoy-ai

A CLI that turns a goal into a pull request - and a sandbox for testing concurrent AI coding agents on the Mozaik runtime.

Development & Infrastructure

★ 124

MIT

TypeScript

Oct 13, 2026

Index only — not installable