在 DeepSeek Harness 上使用免费的模型

安装 npmp:

-> % npm install -g pnpm
npm warn Unknown user config "electron_mirror". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
npm warn Unknown user config "sass_binary_site". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
npm warn Unknown user config "phantomjs_cdnurl". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
npm warn Unknown user config "chromedriver_cdnurl". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
npm warn Unknown user config "operadriver_cdnurl". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.

added 2 packages in 3s
npm warn install-scripts 1 package has install scripts not yet covered by allowScripts:
npm warn install-scripts   pnpm@12.23.0 (preinstall: node install.js; postinstall: node install.js)
npm warn install-scripts
npm warn install-scripts Run `npm install -g --allow-scripts=pnpm` to allow these scripts once, or `npm config set allow-scripts=pnpm --location=user` to allow them for all global installs.

【错误步骤】安装 ebony-vinyl/dsh-our-free-model:

# -> % dsh plugin --profile web add @ebony-vinyl/dsh-our-free-model@2.9.0
# Error: ERR_PNPM_NO_MATCHING_VERSION
#
#   × adding a new package
#   ╰─▶ Failed to resolve dependency tree: No matching version found for @ebony-vinyl/dsh-our-free-model@2.9.0 while fetching it from https://registry.npmmirror.com/
#
#       Failed to resolve @ebony-vinyl/dsh-our-free-model@2.9.0
#   help: The latest release of @ebony-vinyl/dsh-our-free-model is "2.8.5". Published at 11/15/2026
#
#         If you need the full list of all 7 published versions run "pnpm view @ebony-vinyl/dsh-our-free-model versions".
#
# Command failed with exit code 1: pnpm add '@ebony-vinyl/dsh-our-free-model@2.9.0'dsh: plugin command failed; diagnostics: /home/catroll/.dsh/profiles/web/.plugin-manager/logs/operation-pwYhwf/pnpm.log

-> % dsh plugin --profile web add @ebony-vinyl/dsh-our-free-model@latest
Downloading @ebony-vinyl/dsh-our-free-model@2.8.5: 30.16 MB/30.16 MB, done
Packages are hard linked from the content-addressable store to the virtual store.
  Content-addressable store is at: /home/catroll/.local/share/pnpm/store/v11
  Virtual store is at:             node_modules/.pnpm
Packages: +1
+
Progress: resolved 1, reused 0, downloaded 1, added 1, done
[WARN] Issues with peer dependencies found. Run "pnpm peers check" to list them.

dependencies:
+ @ebony-vinyl/dsh-our-free-model 2.8.5

Done in 2.3s using pnpm v12.23.0

# 重启 DSH:
-> % systemctl --user restart dsh-web.service

发现模型列表中没有出现那组预期的免费模型,DSH 设置 > 插件中看到:

our-free-model
include:our-free-model
完整名称 dsh-our-free-model
配置状态 已启用
运行状态 未运行

经过研究之后发现,原来是 DSH 安装的是带命名空间的包 @ebony-vinyl/dsh-our-free-model,但配置文件中使用了裸包名 dsh-our-free-model。DSH 会从 profile 的 node_modules 中查找该模块,而不是从插件包自身目录查找。由于裸名包不存在,导致模块加载失败。
PS:裸包名 dsh-our-free-model 是有恶意的开发者稍微改动了一下代码,占用了 dsh-our-free-model 这个名字。

改成本地安装:

-> % cd ~/Projects/Forked/
-> % git clone --depth=1 https://github.com/Ebony-Vinyl/dsh-our-free-model
-> % dsh plugin --profile web add /home/catroll/Projects/Forked/dsh-our-free-model
-> % systemctl --user restart dsh-web.service

刷新 DSH 页面,会出现一个弹窗:

设置也会多一项:

选择 DeepSeek Flash,算是能用,但是可用性有点小问题,总是运行失败,影响效率。

比如:

本轮运行失败 the chain "推荐免费组" exhausted every candidate: deepseek-v4.1-flash-free (rate_limit/account · cooldown 2s · backoff level 1 · HTTP 429 · via code:rate_limit)
本轮运行失败 the chain "推荐免费组" exhausted every candidate: deepseek-v4.1-flash-free (failed)
本轮运行失败 Free usage limit reached. Free models work in OpenCode (https://opencode.ai); subscribe to OpenCode Go to keep going: https://opencode.ai/go

如果你有魔法,你可以看到一个评论框~