
Security News
Rust 1.100 Will Add Dependency Cooldowns to Cargo
Rust 1.100 will add opt-in dependency cooldowns to Cargo, giving security scanners and maintainers time to catch malicious crate releases.
dsh-llm-codebuddy
Advanced tools
为 DeepSeek Harness(DSH)增加 CodeBuddy 中国区 Provider。支持 WorkBuddy
API Key 和 CodeBuddy 中国站账号令牌两种认证方式,并可在 DSH WebUI 中获取、
选择和调整模型。
[!IMPORTANT] API Key 由 WorkBuddy 提供,本插件使用该 Key 调用供 CodeBuddy 使用的模型服务。 DSH 中的 Provider 名称仍为
CodeBuddy 中国区。本项目是第三方适配器,并非 WorkBuddy、CodeBuddy 或 DSH 官方插件。
CodeBuddy 中国区;API Key / 令牌登录;>= 22.19.0;0.1.0-rc.6。安装器已自带 DSH 所需的 pnpm,无需全局安装;令牌登录也不需要安装 CodeBuddy CLI。
DSH 仍处于预发布阶段。未来版本如果调整插件接口,本插件可能需要同步升级; DSH 普通更新不会覆盖本插件。
推荐使用一键安装命令:
npx --yes dsh-llm-codebuddy@latest install
该命令会为 DSH 的 web 和 headless Profile 安装插件。完成后重启 DSH。
也可以分别安装:
dsh plugin --profile web add dsh-llm-codebuddy@latest
dsh plugin --profile headless add dsh-llm-codebuddy@latest
只使用 WebUI 时,仅执行第一条即可。
CodeBuddy 中国区。如果 WebUI 无法打开浏览器,也可以使用命令行入口:
npx --yes dsh-llm-codebuddy@latest login
插件会调用 CodeBuddy 官方认证流程。完成登录后,插件会自动把
CodeBuddy 中国区 Provider 切换为令牌模式,无需 API Key。点击同一行的
“API Key”可以切回 API Key 模式;已经保存的 API Key 不会被删除。
两种凭据彼此独立保留,之后再次点击“令牌登录”会优先复用已保存令牌;仅在没有
令牌或主动重新登录时才需要再次打开浏览器。
插件直接调用 CodeBuddy 中国站官方网页登录和令牌刷新接口,不依赖本机
codebuddy 命令。访问令牌和刷新令牌保存在 DSH 凭据服务中,不会写入
settings.yaml 或模型目录。
CodeBuddy 中国区。再次编辑已配置的 Provider 时,会直接显示上次保存的模型目录。
API Key 由 DSH 凭据服务保存,不会写入模型目录或插件源码。
262144,最大输出默认 32768;配置值超过服务端真实限制时,CodeBuddy 仍可能拒绝请求。
DSH 显示的思考程度来自当前模型自身的能力声明,插件把选中的档位转换为
reasoning_effort 并发送给 CodeBuddy。模型推理由 CodeBuddy 云端执行。
off / minimal / low / medium / high / xhigh / max
实际显示哪些档位由 /v3/config 中该模型的 supportsReasoning、onlyReasoning、
thinkingLevelMap 和 reasoning.effort 决定,不能跨模型共用一套固定档位。未手动
选择时,使用 CodeBuddy 为该模型返回的默认档位;服务端没有声明时则不强行指定。
重新运行安装命令即可更新到最新版:
npx --yes dsh-llm-codebuddy@latest install
更新完成后重启 DSH。模型配置和 API Key 不会被覆盖。
npx --yes dsh-llm-codebuddy@latest uninstall
卸载命令会:
~/.dsh/settings.yaml;llm-pi-ai.providers.codebuddy-cn 配置;web、headless Profile 移除插件;完成后重启 DSH。备份文件名类似:
settings.yaml.codebuddy-backup-2026-08-14T12-00-00-000Z
源码仓库、本地安装包和 API Key 不会被删除。
确认已经重启 DSH,并检查 Web Profile:
dsh plugin --profile web list --depth 0
确认 API Key 来自 WorkBuddy 且仍然有效,然后重新输入 Key 并点击“获取可用模型”。 接口临时不可用时,插件仍会提供内置模型目录。
模型权限与 API Key 绑定。插件只导入 /v3/config 中 agents[name=cli].models 为
当前 Key 返回的模型;更换 Key 后请重新点击“获取可用模型”。插件不会强行显示
当前 Key 未授权的模型。
500 status code (no body)先更新到最新版并重启 DSH:
npx --yes dsh-llm-codebuddy@latest install
旧版本可能被 DSH 覆盖 CodeBuddy 请求标识,导致服务端拒绝请求;最新版已在插件请求层 恢复 CodeBuddy 官方标识,同时适用于 API Key 和令牌模式。
关闭正在运行的 DSH,再重新启动。已经运行的进程不会自动卸载内存中的插件。
需要开发其他 Agent 或 Provider 时,请阅读 反向代理调用 WorkBuddy API 开发文档。
WorkBuddy 提供 API Key
↓
DSH Agent → 本插件 → CodeBuddy /v2/chat/completions
↘ CodeBuddy /v3/config(获取模型)
CodeBuddy 中国站网页登录 → 本插件保存并刷新 DSH 登录凭据
↓ 当前 access token
DSH Agent → 本插件 → CodeBuddy API(Authorization: Bearer)
FAQs
通过 WorkBuddy API Key 或 CodeBuddy 登录令牌为 DeepSeek Harness 接入 CodeBuddy 模型
The npm package dsh-llm-codebuddy receives a total of 0 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
Rust 1.100 will add opt-in dependency cooldowns to Cargo, giving security scanners and maintainers time to catch malicious crate releases.

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.