starlightzfy/dsh-plugin-lmstudio0

dsh-plugin-lmstudio

DSH 插件:一键接入 LM Studio 本地推理服务器作为对话模型(OpenAI 兼容端点),安装后可在模型选择器中直接调用本地模型,不消耗云端额度。

AI 分析

核心用途是将本地运行的 LM Studio 引入 DSH。适合希望利用本地显卡运行开源模型、免去 API 费用并保护数据隐私的用户。必要条件是本地需运行 LM Studio 服务。

套件
dsh-plugin-lmstudio
版本
0.1.0
授權
MIT
最近更新
2026年8月16日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:starlightzfy/dsh-plugin-lmstudio

Configuration

The plugin ships a default provider route under the lm-studio provider key:

FieldDefaultMeaning
baseURLhttp://127.0.0.1:1234/v1LM Studio OpenAI-compatible endpoint
apiopenai-completionsWire protocol
modelsone example modelReplace with what you actually load

The bundled route is a base layer: anything you write under the llm-pi-ai: section of $DSH_HOME/settings.yaml merges over it per provider, so your own models and endpoints win. No API key is required for a local LM Studio server; if you enable key auth in LM Studio, add apiKeyEnv or an Authorization header in your settings layer.

Point it at your actual model

  1. In LM Studio, load the model you want.
  2. Find the exact model id: curl http://127.0.0.1:1234/v1/models and read the id field (usually owner/name, e.g. qwen/qwen3.5-9b).
  3. Either edit the route in Settings → Models (the "ask the endpoint" button discovers models for you), or override it in $DSH_HOME/settings.yaml:
llm-pi-ai:
  providers:
    lm-studio:
      models:
        - id: qwen/qwen3.5-9b
          name: Qwen3.5 9B (LM Studio)
          contextWindow: 8192
          maxTokens: 4096

settings.yaml hot-reloads — no dsh web restart needed.

Usage

Refresh the page, open the model picker above the composer, and choose your LM Studio model (it appears under "LM Studio (本地)"). Traffic goes to 127.0.0.1:1234 only; your DeepSeek API balance is untouched.

Tip: for plain conversation without any agent tools, create a "chat" agent preset (an empty agent.cordis.yml) and pick it on the new-session screen — that applies to every model, local or cloud.