dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
Deepseek Harness Deepseek API Balance Display Plugins
DeepSeek API 余额与价格时段(高峰/闲时)插件,用于 DeepSeek Harness WebUI(dsh web)。
在左侧边栏底部(设置按钮上方)显示:
GET https://api.deepseek.com/user/balance。API Key 通过 DSH 凭证机制解析(默认引用 DEEPSEEK_API_KEY)dsh webgit 与 pnpm(dsh plugin 是 pnpm 转发器)# 安装默认分支最新提交
dsh plugin --profile web add github:jrnitre/dsh_deepseekapi_quota
# 或固定到某个版本标签(推荐给生产使用)
dsh plugin --profile web add github:jrnitre/dsh_deepseekapi_quota#v0.1.0
安装完成后重启 dsh web 生效。
dsh plugin 安装时会自动完成两件事:
%DSH_HOME%/profiles/web)的 package.json dependenciesdsh.bundle.patch,DSH 会把它追加到 dsh.profile.bundles 层列表并应用其 cordis.patch.yml可用 dsh --dump-config(组合后的配置树应出现 id: deepseek-status 行)核对是否加载。
本包不包含任何构建脚本(
lib/为发布产物),因此 git 安装不会被 pnpm 的 build-script 审批(allowBuilds)拦住。
默认无需配置。如需覆盖 API 地址,编辑 %DSH_HOME%/profiles/web/cordis.patch.yml:
- insert:
- id: deepseek-status
name: 'dsh_deepseekapi_quota'
inject: [webServer]
config:
baseUrl: 'https://api.deepseek.com'
API Key 的配置方式:在 DSH 设置/凭证中配置 DEEPSEEK_API_KEY,或设置同名环境变量。
dsh plugin --profile web update dsh_deepseekapi_quota
# git 依赖若未拉取新提交,可 remove 后重新 add
dsh plugin --profile web remove dsh_deepseekapi_quota
之后重启 dsh web。
# 在仓库目录内执行,作为本地依赖链接安装
dsh plugin --profile web add .
cordis.patch.yml — bundle patch:插入插件行(inject: [webServer])lib/index.js — 宿主半部:注册 GET /dsh-deepseek-status 路由(余额 + 时段计算)lib/client.js — 浏览器半部:sidebar.footer.action 状态单元MIT License,版权归原作者所有。详见 LICENSE。