Skip to content
dsh.fish
Bundle

@tappat225/dsh-provider-hub

DSH LLM provider hub with a native model-configuration panel, gateway routes, model catalogs and live model discovery. Supports three wire protocols, custom User-Agent, model overrides and live routing without hand-editing settings.yaml.

Source
tappat225
License
MIT
Updated
Updated 7 hours ago

Readme

# dsh-provider-hub

DSH LLM **provider 中枢插件**:通过 DSH 左侧栏的 **Provider Hub** 面板(卡片式控制台)配置**任意多个网关**——每个网关是一个 OpenAI / Anthropic 兼容端点,可独立设置协议、User-Agent、API Key 与模型目录。启用内置的主流模型目录(GLM / Claude / GPT / Qwen / DeepSeek / Kimi / Gemini)后,模型直接出现在 DSH 的模型选择器里,**无需手写 `settings.yaml` 的 `llm-pi-ai.providers`**。

针对按 User-Agent 白名单校验客户端的网关:插件发出的请求携带每个网关**完全自定义的 UA**(绕开 DSH 强制的归因头),多网关可同时接入多个 UA 白名单网关。

![Provider Hub 面板](assets/Snipaste_01.png)

![Provider 配置面板](assets/Snipaste_02.png)

## 安装

从 GitHub 安装(仓库须带 `dsh-plugin` topic):

```sh
dsh plugin --profile web add github:tappat225/dsh-provider-hub
```

- `--profile web` 换成你实际使用的 profile(桌面版为 `desktop`)
- 需要 pnpm 环境:`npm install -g pnpm`
- 安装后重启 DSH,左侧栏设置按钮上方会出现 **Provider Hub** 入口


## 卸载

```sh
dsh plugin --profile web remove @tappat225/dsh-provider-hub
```

卸载后重启 DSH 即可。面板中的网关配置保存在 `llm-provider-hub` settings 命名空间,重装插件后仍会保留。

Install

dsh plugin --profile web add github:tappat225/dsh-provider-hub#cbb13bf15c401764a11e9b5469e8516f6af68eea

Profile: web

  • This package builds from source on install. pnpm will ask you to allow its build script — that is permission to run the package’s code on your machine, outside the agent sandbox. Only allow sources you trust.
Source