raullenchai/rapid-mlx-dsh-provider 预览 preview

raullenchai/rapid-mlx-dsh-provider

Plugin插件 Native原生 ⭐ 70 Apache-2.0 Models & Routing模型与路由

DeepSeek Harness(dsh)的原生 Rapid-MLX 提供商——dsh 从服务器读取模型信息,而非你的 settings.yaml。

Project Overview项目介绍

This is a native DeepSeek Harness (DSH) plugin that acts as a provider for Rapid-MLX, a local LLM runtime for Apple Silicon. It eliminates the need for users to manually enter model metadata like context window size and reasoning capabilities into DSH’s settings.yaml file, instead pulling all up-to-date information automatically from a running Rapid-MLX server. To install it, users can run dsh plugin --profile web add @raullenchai/dsh-provider from npm, or install directly from source via GitHub. After installation, users just need to add an environment variable pointing to the Rapid-MLX base URL (defaults to http://localhost:8000/v1) and update their DSH settings to use rapid-mlx as the default provider.

This plugin is built for DSH users who run local LLMs on Apple Silicon Macs, to connect DSH to a local Rapid-MLX instance easily. It adds five built-in tools and a dedicated /rapid-mlx command that lets users manage models directly within a DSH session, without switching to a separate terminal window. Users can check running model status, view cached downloaded models, pull new models, delete old cached models, and check service health all from the DSH interface. When switching between different models, users only need to update what the rapid-mlx serve command is running, and DSH automatically pulls the new model metadata with no manual configuration changes.

This plugin is released under the open-source Apache 2.0 license, matching the license of Rapid-MLX. It requires Node.js version 22.15 or newer, because DSH relies on Node’s Zstd stream API that is not available in older Node versions. Users should note that DSH is currently a developer preview with fast API changes, so this plugin tracks the latest DSH changes but does not guarantee compatibility with older DSH versions. Local development requires manually linking DSH’s peer dependencies, but production installs from npm work without any extra steps. It also pins the model interface fields from Rapid-MLX to prevent silent breakages from upstream changes.

这是一个专为 DeepSeek Harness (DSH) 开发的原生 Rapid-MLX 提供商插件,用来让 DSH 从运行中的 Rapid-MLX 服务器自动获取模型信息,替代原先需要用户在 settings.yaml 中手动填写的模型上下文窗口、推理能力等配置。插件还内置了五个管理工具和一个 /rapid-mlx 命令,让用户可以直接在 DSH 会话中查看、拉取、删除模型,无需切换到终端操作。已验证兼容 DSH 0.1.0-rc7 和 rc8 版本,要求 Node 22.15+ 以及一个正在运行的 Rapid-MLX 服务器。

面向使用 Apple Silicon 芯片 Mac 的 DSH 用户,适合想要在本地运行大语言模型给 DSH 提供服务的场景。用户只需要通过 dsh plugin 命令安装本插件,设置环境变量指定 Rapid-MLX 服务器地址(默认是 http://localhost:8000/v1),然后在 DSH 的 settings.yaml 里指定默认模型提供商为 rapid-mlx 就可以开始使用。切换模型时只需要修改 rapid-mlx serve 运行的模型,DSH 会自动同步更新信息,不需要修改配置文件,还能保证压缩策略匹配当前机器的实际容量。

本插件采用 Apache-2.0 许可证开源,和 Rapid-MLX 保持一致。目前需要注意 DSH 仍处于开发者预览阶段,API 更新较快,本插件会跟踪适配,但不保证长期兼容所有旧版本 DSH。本地开发调试时需要手动链接 DSH 的依赖包,正式从 npm 安装则不需要额外操作。插件对 Rapid-MLX 的模型接口字段做了固定检测,避免 Rapid-MLX 变更接口导致静默故障,保障集成的稳定性。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 no risk signal found未发现风险信号
  • This site's static screen found no obvious risk signal (stars, license, activity, manifest)本站静态筛查没发现明显风险信号(星标、许可证、更新活跃度、清单完整度)
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 @raullenchai/dsh-provider

把 raullenchai/rapid-mlx-dsh-provider 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

@raullenchai/dsh-provider

A native Rapid-MLX provider for DeepSeek Harness — so dsh gets its model facts from the server instead of from whatever you typed into settings.yaml.

CI

Status: published to npm as @raullenchai/dsh-provider. The end-to-end dsh run in Verified was on an M3 Ultra against dsh 0.1.0-rc.7; dsh 0.1.0-rc.8 is API-compatible — the LlmAdapter contract is byte-identical and the only changes are additive — and the adapter is re-verified against rc.8 at the protocol and unit-test level. DSH is still a developer preview that moves fast, so treat this as tracking a moving target, not a frozen compatibility promise.

What it does for you

DSH can already talk to a local Rapid-MLX server through its generic openai-completions provider. That route works — but it knows nothing about your model beyond what you hand-wrote:

# what the generic route makes you maintain, by hand, per model
llm-pi-ai:
  providers:
    rapid-mlx:
      baseURL: http://localhost:8000/v1
      defaultContextWindow: 262144      # you looked this up. is it still right?
      models:
        - id: qwen3.6-35b-8bit
          contextWindow: 262144
          reasoningEfforts: {off: none, low: low, medium: medium, high: high}

Rapid-MLX's /v1/models already publishes all of that and more. This adapter reads it, so:

1. Nothing to hand-write, and nothing to re-write when you switch models. Swap what rapid-mlx serve is running and dsh follows. No re-running setup, no stale numbers.

2. The reasoning control tells the truth. Rapid-MLX reports whether a model actually has a reasoning parser. A model that can't reason no longer shows an off/low/medium/high selector that does nothing.

3. Compaction is timed with the capacity that actually fits this Mac, not a number that drifted. This is the one that quietly costs you. dsh-compaction-basic asks the provider for the route's capacity and compacts at thresholdRatio × capacity (0.8 by default). The provider prefers the server's max_model_len — Rapid-MLX's memory-fitted ceiling (what fits in unified memory: weights + KV cache), in the vLLM/SGLang-standard field — over the native context_window, and falls back to context_window on an older server that doesn't report it. So compaction is timed to what the machine can actually hold, not the model's advertised window (which it may not have room for) and not a hand-written number copied from another model.

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-claude-ux 下一个 Next illusion-agent →