DeepSeek Harness plugin

dsh-vision-api-localorweb

DSH 插件:可接入识图模型 API(本地大模型识图工具 + 设置界面)。配置 OpenAI 兼容的识图接口(LM Studio / vLLM / Ollama 等),接口留空即不启用识图模型。

Jump to install

Source facts

Repository
TIPSONG/dsh-vision-api-localorweb
Latest update
Aug 21, 2026
Category
Tools & Capabilities
GitHub stars
1
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/TIPSONG/dsh-vision-api-localorweb
Plugin: dsh-vision-api-localorweb
Author: TIPSONG

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer3 files
README.mdSource · read only

<h1 align="center">🖼 dsh-vision-api-localorweb</h1>

<p align="center"> <b>接入本地识图模型 API</b> —— 给你的 DSH 助手装上一双「本地眼睛」。<br/> 用 LM Studio / vLLM / Ollama 里的多模态模型来识图,数据不出本机。 </p>

<p align="center"> <img alt="license" src="https://img.shields.io/badge/license-MIT-blue.svg" /> <img alt="platform" src="https://img.shields.io/badge/dsh-plugin-web-4f46e5" /> <img alt="vision" src="https://img.shields.io/badge/capability-vision-22c55e" /> <img alt="model" src="https://img.shields.io/badge/local-model-Gemma%20%2F%20LLM-ec4899" /> </p>

<p align="center"> <img src="docs/settings.svg" alt="设置界面:可接入识图模型 API" width="720" /> </p>

---

✨ 为什么需要它

DSH 助手默认不「看」图片。这个插件把你本地已有的识图模型(比如 LM Studio 里跑着的 Gemma 4E)接进来:

  • 🔌 一行接入:填个 OpenAI 兼容接口地址 + 模型名,即可启用
  • 🔒 数据不出本机:图片只发给你自己的模型,不经过任何云端
  • ⚙️ 留空即关闭:接口地址留空 = 不启用识图,零副作用
  • 🎛 图形化配置:设置界面里直接填,不用碰配置文件

🚀 快速开始

dsh plugin --profile web add "github:TIPSONG/dsh-vision-api-localorweb#main"

> 本插件声明了 dsh.bundle.patchdsh plugin add 会自动挂进 profile 层栈,无需手写 insert 行。装完重启 web 生效。

重启后打开 设置 → 可接入识图模型 API

字段填什么示例
接口地址OpenAI 兼容 base URLhttp://localhost:1234/v1
模型名本地加载的模型 IDgemma-4-e4b
API Key本地服务留空即可(空)

保存,然后对助手说「看看这张图」——助手会调用 local_vision 把图片交给你本地的模型。

👁 怎么看图:两种方式

方式一:直接告诉助手图片路径(推荐,任何对话模型都可用)

把图片放在本地磁盘上,然后在对话里给出图片路径,例如:

> 看看这张图:C:\Users\me\Desktop\photo.png,描述一下内容

助手会调用 local_vision 工具读取该路径的图片、交给本地识图模型,并把文字描述带回来。这条路不依赖对话模型是否支持图片输入——哪怕对话模型是纯文本模型(如 deepseek-v4),识图也完全正常。

> ⚠️ 为什么拖拽发图不一定可行:DSH 会在消息提交时检查当前对话模型是否声明支持图片输入。如果对话模型不支持图片(如 deepseek-v4),拖拽/粘贴发图会被拒绝(提示「当前模型不支持图片」),且这个检查发生在插件无法拦截的位置。详见 issue #1。因此当对话模型不支持图片时,请用路径识图

方式二:拖拽/粘贴发图(要求对话模型本身支持图片)

如果你的对话模型支持图片输入(例如把对话模型切换为本地多模态模型),直接拖图进对话框即可,图片会原样交给对话模型。此时本插件的转译钩子会自动跳过,不做干预。

🧭 工作原理

<p align="center"> <img src="docs/workflow.svg" alt="工作流程" width="720" /> </p>

📦 能力面

Tools说明
local_vision读取本地图片 → 交给 OpenAI 兼容识图接口 → 返回文字描述;接口留空时返回「未配置」提示
UI说明
设置 → 可接入识图模型 API三个输入框(接口地址 / 模型名 / API Key),留空接口地址即禁用识图

🔧 配置字段

字段说明
baseUrlOpenAI 兼容接口的 base URL(http://host:port/v1)。留空 = 禁用识图
model模型 ID(LM Studio 里加载的名字,如 gemma-4-e4b
apiKey可选鉴权头;留空则不发送

📄 安装说明

git 源(推荐,一行):

dsh plugin --profile web add "github:TIPSONG/dsh-vision-api-localorweb#main"

本地目录:

git clone https://github.com/TIPSONG/dsh-vision-api-localorweb.git
cd dsh-vision-api-localorweb
npm install
npm run build          # 产出 lib/index.js + lib/client.js
dsh plugin --profile web add .

> 本插件声明 dsh.bundle.patch(组合层)+ dsh.clientplatform: web)+ exports["./client"](浏览器设置页),main 提供 Node 工具半。安装后重启 web 生效。

🛠 开发

npm install
npm run build          # 重新构建 lib/
文件说明
src/index.tsNode 半:settings namespace + local_vision 工具
src/client.ts浏览器半:设置页
scripts/build.mjsesbuild 构建脚本(ESM host + __ModuleLoader__ client bundle)

🔌 支持的模型

任何 OpenAI 兼容 /v1/chat/completions 接口且支持图片输入的多模态模型:

  • LM Studio(Gemma、Qwen-VL、LLaVA 等)
  • Ollamahttp://localhost:11434/v1
  • vLLM / llama.cpp server

📄 License

[MIT](LICENSE)