
Security News
Deno Goes the Way of the Dinosaur
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.
dsh-llm-codebuddy
Advanced tools
通过 WorkBuddy API Key 或 CodeBuddy 登录令牌为 DeepSeek Harness 接入 CodeBuddy 模型
为 DeepSeek Harness(DSH)增加 CodeBuddy 中国区 Provider。插件通过
WorkBuddy 提供的 API Key,或 CodeBuddy 中国站的网页登录令牌调用模型,并在
DSH WebUI 中管理模型和认证方式。
[!IMPORTANT] API Key 来自 WorkBuddy,用于调用供 CodeBuddy 使用的模型服务。本插件是第三方 适配器,不属于 WorkBuddy、CodeBuddy 或 DSH 官方项目。
CodeBuddy 中国区;>= 22.19.0;插件 1.3.7 及以上版本要求 DSH >= 0.1.2-alpha.2。1.3.9 起兼容新版 DSH
的 settings 注册接口。该版本不再携带旧版 DSH
运行时副本,而是复用宿主 DSH 的运行时,避免更新 DSH 后出现 Provider 目录接口
(llm/listProviders)不兼容。1.3.10 起,CodeBuddy 认证助手同时兼容新旧 DSH
的 signal 调用约定。升级插件后请重新安装一次并重启 DSH。
在 PowerShell 或终端执行:
npx --yes dsh-llm-codebuddy@latest install
安装器会为 DSH 的 web 和 headless Profile 安装插件。安装完成后重启 DSH。
只使用 WebUI 时,也可以单独安装 Web Profile:
dsh plugin --profile web add dsh-llm-codebuddy@latest
打开 设置 → 模型,添加或编辑 CodeBuddy 中国区。认证区域有两个模式按钮:
API Key:只显示 API Key 来源和新增 Key 功能;令牌登录:只显示令牌账号、登录、切换以及账号用量信息。切换模式后,另一种模式的账号或 Key 控件会隐藏,不会同时占用页面空间。
插件会自动检测:
CODEBUDDY_API_KEY
如果这个环境变量存在,API Key 来源下拉列表会显示“环境变量 CODEBUDDY_API_KEY”。
选择它即可使用;密钥值不会显示在页面中,也不会写入 settings.yaml。
API Key 模式;DSH 保存的 Key 存放在 DSH 凭据服务中。可以保存多个 Key 并随时切换;环境变量 Key 和 DSH 保存的 Key 互不覆盖。删除操作只允许删除 DSH 保存的 Key,不会删除环境变量。
令牌登录 模式;再次打开页面时,可以在“令牌账号”下拉列表中切换账号。点击“添加账号”可以登录
另一个账号,点击“删除账号”会移除当前账号的本地令牌。令牌登录不需要安装
codebuddy 命令行工具。
令牌模式下,插件会尝试显示:
积分接口属于 CodeBuddy 中国站的账号服务,仅令牌模式使用;API Key 模式不会调用该 接口。如果服务暂时不可用,页面会保留账号登录状态并显示“暂不可用”。
CodeBuddy 中国区 的自定义设置中点击“获取可用模型”;模型目录按当前账号权限返回。更换 API Key 或令牌账号后,建议重新点击“获取可用模型”。 如果在线目录暂时失败,插件会使用内置目录作为兜底。
思考档位按模型分别决定,插件不会给所有模型强行使用同一套选项。在线模型目录会声明 每个模型是否支持思考、支持哪些档位以及默认档位,WebUI 会据此显示可用选项。
常见档位包括:
off / minimal / low / medium / high / xhigh / max
实际选项可能因模型不同而不同。未手动指定时,使用 CodeBuddy 返回的默认档位;服务端 没有声明思考能力时,插件不会额外发送思考参数。
settings.yaml。重新执行安装命令即可更新:
npx --yes dsh-llm-codebuddy@latest install
更新后重启 DSH。已有的模型配置、API Key 和登录令牌会保留。
npx --yes dsh-llm-codebuddy@latest uninstall
卸载会移除 CodeBuddy 中国区 的 Provider 和插件包,并备份 DSH 设置文件。为方便以后
重新安装,API Key 和登录令牌默认保留在 DSH 凭据服务中。
重启 DSH 后重新打开 设置 → 模型。也可以检查:
dsh plugin --profile web list --depth 0
不要使用 DSH 原生的旧密钥输入框提交。选择 API Key 模式,在插件自己的“新增 API Key”
区域粘贴 Key 并点击“添加并使用”。成功后新 Key 会出现在“当前 API Key”下拉列表。
确认当前选中的 Key 来自 WorkBuddy 且仍然有效,或确认令牌账号登录状态正常。更换认证 凭据后重新获取模型目录。
积分查询只支持令牌模式,并依赖 CodeBuddy 中国站 billing 接口。网络、账号类型或接口 暂时不可用时,页面会显示“暂不可用”,不影响模型调用。
500 status code (no body)先更新插件并重启 DSH:
npx --yes dsh-llm-codebuddy@latest install
最新版会恢复 CodeBuddy 官方请求标识,兼容 API Key 和令牌模式。
浏览器执行 Ctrl+F5 强制刷新;如果 DSH 进程已经运行较久,再关闭并重新启动 DSH。
FAQs
通过 WorkBuddy API Key 或 CodeBuddy 登录令牌为 DeepSeek Harness 接入 CodeBuddy 模型
The npm package dsh-llm-codebuddy receives a total of 27 weekly downloads. As such, dsh-llm-codebuddy popularity was classified as not popular.
We found that dsh-llm-codebuddy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.

Security News
Anthropic’s free OSS Scanner uses Mythos and other Claude models to find open source vulnerabilities and send maintainers reports with proposed fixes.

Security News
On Front Lines’ Early Adopters: CISO podcast, Andrew Becherer shares lessons from Datadog, weighs the long-term costs of AI-built tools, and explains how founders can actually gain a CISO’s trust.