dsh-local-model-worker

只在真要调用该模型时才启动本地 OpenAI 兼容服务,闲置一段时间自动卸载释放显存;内置 LM Studio、Ollama、llama.cpp 预设,其他服务可自定义启停命令,并提供 local_model 工具查看状态、手动启动和停止。它的 HTTP 路由没有 DSH 的访问检查,浏览器里打开的网页可以调用它们。

插件介绍

只在真要调用该模型时才启动本地 OpenAI 兼容服务,闲置一段时间自动卸载释放显存;内置 LM Studio、Ollama、llama.cpp 预设,其他服务可自定义启停命令,并提供 local_model 工具查看状态、手动启动和停止。它的 HTTP 路由没有 DSH 的访问检查,浏览器里打开的网页可以调用它们。

安装方式

从 GitHub 安装

dsh plugin --profile web add github:cloudylapis/dsh-local-model-worker

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

版本兼容情况

兼容性待确认。可前往项目文档查看支持版本。

安装提示

  • 可能调用终端命令