dsh-image-gen:为 DeepSeek Harness 提供对话内图像生成能力的 DSH plugin
shanliuling/dsh-image-gen
DSH plugin 多提供商生图工具,让 DeepSeek Harness 在对话中直接生成图片。
让 DeepSeek Harness 像 ChatGPT 一样,在对话中直接生成图片,支持 Gemini、OpenAI 和 Seedream 等多种模型。
dsh plugin --profile web add github:shanliuling/dsh-image-gen- 分类
- 工具与能力
- 平台
- DSH-Plugin
- 作者
- shanliuling
- 分发方式
- 插件
dsh-image-gen 核心特性
dsh-image-gen 仓库信息

dsh-image-gen 仓库简介
dsh-image-gen 是 DeepSeek Harness(DSH)的原生生图插件(DSH plugin),由 shanliuling 维护,采用 MIT 协议,旨在让 DeepSeek Harness 像 ChatGPT 一样在对话中直接生成图片。它解决了 DSH 缺乏多模态生图能力的问题,通过集成 Google Gemini、OpenAI Images、OpenAI Compatible API 以及字节 Seedream / 火山方舟,让 Agent 能自动调用 generate_image 工具,并将图片直接显示在当前对话流中。插件支持 BYOK(自带 Key),API Key 通过 DSH 的 credentials 服务管理,前端不存明文,图片会跟随会话保存,重新打开历史会话仍可查看。
dsh-image-gen 这个 DSH plugin 支持哪些核心特性?
- 对话中直接生图:无需切换网站或手动复制 Prompt,直接告诉 Agent 想画什么即可。
- 多 Provider 支持:Google Gemini(默认模型 gemini-3.1-flash-image)、OpenAI Images(gpt-image-2)、OpenAI Compatible API(自定义 Endpoint)、字节 Seedream / 火山方舟(doubao-seedream-5-0-260128)。
- 原生设置界面:Provider、API Key、模型和 Endpoint 都可在 DSH Web 设置中修改,无需编辑配置文件。
- 图片跟随会话保存:生成结果接入 DSH 的 Attachment / Conversation 体系,历史会话中图片不丢失。
dsh-image-gen 怎么安装?
在 DeepSeek Harness 项目根目录执行以下命令安装并注册插件:
dsh plugin --profile web add github:shanliuling/dsh-image-gen
安装完成后,在 DSH Web 页面(默认 http://localhost:3080)进入 Settings → Plugins → Image generation,选择 Provider 并填写 API Key,保存后即可开始对话生图。
dsh-image-gen 兼容哪些 DeepSeek Harness 版本和平台?
插件基于 TypeScript 开发,依赖 @deepseek-ai/dsh-* 系列官方包,包括 dsh-attachment、dsh-credentials、dsh-tools 等,确保与 DeepSeek Harness 的深度集成。它支持通过 pnpm 或全局 dsh 命令安装,也支持从 Git 仓库直装或本地源码调试。插件最近更新于 2026-08-18,目前 Stars 为 1,但功能完整,适合需要多模态生图能力的 DSH 用户。
dsh-image-gen 如何配置和使用?
配置 API Key 后,直接在聊天框输入如“生成一张极简主义的现代建筑客厅插画”,Agent 会自动调用 generate_image 工具并返回图片。插件支持 OpenAI Compatible API,可自定义 Base URL,方便接入其他兼容服务。开发调试可运行 pnpm install、pnpm run typecheck、pnpm run test、pnpm run build 等命令。