wenzetan/dsh-llm-newapi 预览 preview

wenzetan/dsh-llm-newapi

NewAPI(兼容OpenAI的网关)的DeepSeek Harness(dsh)LLM提供商插件:仅聊天模型发现 + Web设置部分。零dsh修改。

Project Overview项目介绍

dsh-llm-newapi is a DSH-native plugin that enables integration of a self-hosted NewAPI gateway with DeepSeek Harness. It adds a dedicated NewAPI settings page to DSH Web for entering gateway credentials, discovering available models, adjusting model parameters, and supports streaming text output as well as tool calls. No modifications to the core DSH codebase are required to run the plugin. It maintains strict compatibility by releasing separate plugin versions matched to each DSH host major line, with compatibility checked automatically during the build process.

To install the plugin, you first install the exact matching DSH host version via npm, then use the DSH plugin command to add the exact plugin version to your DSH web profile. The --save-exact flag is required to prevent automatic dependency updates that could break compatibility. After installation, you need to verify the plugin is listed in the bundles entry of your web profile’s package.json, then restart DSH Web to activate the plugin. This plugin is intended for DSH users who want to use their own OpenAI-compatible NewAPI gateway for LLM inference.

The plugin requires Node.js, npm, and pnpm to install, it is released under the open source MIT license, and all current versions are published on a pre-release channel. It has several current limitations: only one gateway configuration is supported, image input is not implemented, and the model discovery step automatically filters out models with names containing embed, rerank, or ranker. After installation, first-time users can access the NewAPI settings page in DSH Web, enter their gateway URL and API key, fetch available models, select desired models, and save settings before starting a new conversation.

这是一款专为DeepSeek Harness(DSH)打造的原生插件,支持用户将自有NewAPI网关接入DSH使用。插件新增了专门的NewAPI设置页面,可完成凭证配置、模型发现、参数调整等操作,同时支持流式文本输出和工具调用,无需对DSH核心代码做任何修改。插件严格匹配不同DSH主线版本发布对应适配版本,保证兼容性。

用户需要先安装对应版本的DSH主机,再通过DSH的插件管理命令将本插件安装到web配置文件中,安装时必须指定精确版本以避免自动更新导致不兼容。安装完成后需要检查web配置文件的bundle列表中是否包含本插件,确认后重启DSH Web即可使用。该插件适合需要将自有OpenAI兼容NewAPI网关接入DSH的用户使用。

本插件依赖Node.js、npm和pnpm环境,代码采用MIT许可证开源,目前处于预发布阶段,所有版本都发布在预发布渠道。当前仅支持配置一个NewAPI网关,仅声明文本输入,不支持图像输入,会自动过滤模型列表中包含embed、rerank关键词的模型。使用前需要核对插件和DSH的版本对应表避免兼容性问题。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 6 stars - very few users, little community feedback星标只有 6,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add --save-exact dsh-llm-newapi@0.1.5-rc.3-v0.3

把 wenzetan/dsh-llm-newapi 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

🚧 Archived Notice / 归档通知

English:
This repository is deprecated and will be archived soon.
New installations should use the native Custom Provider feature provided by dsh desktop instead.
Existing users should migrate their provider configurations before the repository is archived.

中文:
本仓库已停止功能开发,并计划近期归档。
新用户请直接使用 dsh desktop 原生 Custom Provider(自定义 Provider) 功能,不再建议安装或使用本项目。
已有用户请在仓库归档前迁移现有 Provider 配置数据。

dsh-llm-newapi

English | 中文

Use your NewAPI gateway in DeepSeek Harness (dsh). The plugin adds a NewAPI settings page for credentials, model discovery and model parameters, plus streaming text and tool calls. It requires no changes to dsh.

Choose a compatible version

Install the host and plugin as a pair. Status checked on September 24, 2026.

dsh host Plugin version line npm channel Status
0.1.5-rc.3 0.1.5-rc.3-v0.3 — Published, that line is frozen
0.1.7-rc.1 0.1.7-rc.1-v0.x latest Current promoted line

On a host line only the last segment increments (-v0.1 → -v0.2 → …), so the promoted line is named as v0.x. Query the exact version each channel currently points at:

npm view dsh-llm-newapi dist-tags --json

Version scheme

The plugin version follows the upstream host: <dsh version>-v<plugin revision>. Only the last segment is this plugin's own revision:

Case dsh version Plugin version (npm) Git tag / Release
Upstream RC 0.1.7-rc.1 0.1.7-rc.1-v0.1 v0.1.7-rc.1-v0.1
Later plugin change on the same host line 0.1.7-rc.1 0.1.7-rc.1-v0.2 v0.1.7-rc.1-v0.2
Upstream stable 0.1.7 0.1.7-v0.1 v0.1.7-v0.1
Host line changes (revision restarts) 0.1.7-rc.2 0.1.7-rc.2-v0.1 v0.1.7-rc.2-v0.1
  • npm forbids a leading v in the version field, so the package reads 0.1.7-rc.1-v0.1 while the Git tag and GitHub Release use v0.1.7-rc.1-v0.1.
  • Channel split: npm latest points at the currently promoted host line (the 0.1.7 line today); next is reserved for other lines or future previews. Promoting or switching a line is a one-line change (LATEST_LINE in CI); a stable 0.1.7 tag (v0.1.7-v0.x) also lands on latest.
  • The older 0.8.x series (dsh 0.1.1-rc.2 / 0.1.2-rc.1 host lines) had its tags removed and is marked deprecated on npm.

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-windows-shell-policy 下一个 Next dsh-auth →