dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
DSH 插件:在**输入框工具行(模型选择器旁)**实时显示 DeepSeek 账户余额。
浏览器端不直接访问平台接口 —— 账户凭证只在宿主侧可见。链路是:
浏览器余额胶囊
└─ GET /api/dsh-balance (本插件宿主端注册的只读路由,仅回环可访问)
└─ ctx.deepseekAccount.getState() / getBalance()
└─ DeepSeek 平台账户接口
宿主端带 15 秒缓存与单飞合并,避免浏览器轮询被放大到平台接口上;上游查询另有 10 秒超时保护。
本插件读取的是 DSH 内置 deepseekAccount 服务的账户数据,因此要求:
已在 DSH 中登录 DeepSeek 账号(平台会话)。
只配置了 DEEPSEEK_API_KEY、但没有在 DSH 里登录账号的用户,胶囊会显示「余额未登录」——
这是预期行为,不是故障。
dsh plugin --profile <你的profile名> add github:Wyxcn445/dsh-balance
dsh plugin --profile <你的profile名> add @wyxcn445/dsh-balance
link: 会把目录软链进 profile,源码改动立即生效:
dsh plugin --profile <你的profile名> add link:/绝对路径/dsh-balance
安装后刷新一次浏览器页面即可看到胶囊。
dsh plugin --profile <你的profile名> remove @wyxcn445/dsh-balance
ctx.connection.authenticatedUrl 访问。MIT