dsh-llm-kimi
Kimi (Moonshot AI) chat-completions adapter for the DeepSeek Harness LLM seam — three routes: kimi-code (Kimi Code subscription), kimi-cn, kimi-global
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:haveanote06/dsh-llm-kimi说明文档
阅读完整 README ↗配置密钥
三种方式(任选其一)。路由默认读取的引用:kimi-code → KIMI_API_KEY,kimi-cn/kimi-global → MOONSHOT_API_KEY(可用 apiKeyEnvCode/apiKeyEnvCn/apiKeyEnvGlobal 或公共 apiKeyEnv 覆盖)。
-
启动环境变量:
export KIMI_API_KEY=sk-kimi-...后启动dsh web。 -
Web 凭证库(推荐,写入即生效,无需重启):Web 应用的凭证存储与 Models 页面共用同一份。当前版本的内置 Models 页只对
llm-deepseek/llm-pi-ai命名空间提供可编辑表单(第三方提供商命名空间显示只读提示卡——平台限制,见下),但可直接通过应用的凭证 API 写入:curl -X POST http://127.0.0.1:3080/api/credentials.set \ -H "Content-Type: application/json" \ -d '{"type":"client-request","rpcId":"set1","method":"credentials.set","payload":{"ref":"KIMI_API_KEY","value":""}}'写入后 Models 页面对应行显示绿色"已配置"圆点。
-
凭证文件:
~/.dsh/.credentials.yaml(0600)追加KIMI_API_KEY:。
内置 Models 页限制:
dsh-client-ui-settings-models的提供商编辑器布局硬编码为llm-deepseek/llm-pi-ai两个命名空间;其他命名空间(含本插件的llm-kimi)渲染为只读提示卡(提交按钮禁用),因此第三方 LLM 插件的 key 无法直接在 Models 页内填写——这是平台当前限制,不是本插件缺陷。
本插件自带 "Kimi" 设置页(客户端插件,重启
dsh web后在 设置 → Kimi 出现):选择路由 → 粘贴 API Key → 保存(写入凭证库,下一次请求生效),并显示各路由配置状态。参照社区 deepseek-harness-model-config 的客户端插件模式。