DeepSeek Harness 插件

dsh-imggenerate

Image-generation tool plugin for DeepSeek Harness: qwen-image-3.0 (Aliyun MaaS) and doubao-seedream (Volcano Ark) providers(英文原文)

跳到安装方式

来源信息

GitHub 仓库
Bald0Wang/dsh-imggenerate
最近更新
2026年8月14日
分类
模型与服务商
GitHub stars
4
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/Bald0Wang/dsh-imggenerate
插件名:dsh-imggenerate
作者:Bald0Wang

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器2 个文件
README.md来源说明 · 只读预览

dsh-image-gen

![dsh-plugin](https://github.com/topics/dsh-plugin)

DeepSeek Harness 图片生成插件:给 agent 注册一个 image_generate 工具,让 dsh 里的大模型可以直接画图。

双通道支持:

Provider模型能力
volcano(火山方舟,默认)doubao-seedream-5-0-pro-260628文生图、图生图(referenceImage)、size 1K/2K/4K 或 WxH、水印开关
qwen(阿里 MaaS)qwen-image-3.0-pro文生图、promptExtend 提示词扩写

纯 JavaScript、零构建步骤,安装时无需 pnpm 构建授权。

安装

方式一:装进 profile(推荐)

dsh plugin --profile demo add github:Bald0Wang/dsh-imggenerate
dsh --profile demo

或从本地目录 / npm / tarball 安装:

dsh plugin --profile demo add ./dsh-image-gen        # 本地目录
dsh plugin --profile demo add dsh-image-gen          # npm(如已发布)
dsh plugin --profile demo add ./dsh-image-gen-0.1.0.tgz

方式二:不安装,直接 overlay

git clone https://github.com/Bald0Wang/dsh-imggenerate.git
cd dsh-imggenerate && npm install
cp quick.example.cordis.yml quick.cordis.yml   # 填入你的 key 与绝对路径
npx @deepseek-ai/dsh web --patch "$PWD/quick.cordis.yml"

配置 API Key(必做)

插件不携带任何密钥。二选一:

A. profile 用户层(推荐) — 编辑 $DSH_HOME/profiles/<name>/cordis.patch.ymldsh web 对应 web profile),覆盖 image-gen 行(用户层在包层之后生效,需重述整个 config):

- id: image-gen
  config:
    defaultProvider: volcano
    qwenApiKey: 'sk-ws-...'
    volcanoApiKey: 'your-ark-key'

B. 环境变量DASHSCOPE_API_KEY(qwen 通道)、ARK_API_KEY(volcano 通道)。显式 config 优先于环境变量。

配置项(cordis.yml 中 config 下覆盖)

默认值说明
defaultProvidervolcano未指定 provider 参数时使用
timeoutMs180000单次请求超时
qwenEndpoint / qwenModel / qwenApiKey见 index.js阿里 MaaS 通道
volcanoEndpoint / volcanoModel / volcanoApiKey见 index.js火山方舟通道
volcanoSize / volcanoWatermark2K / true火山默认尺寸与水印

工具参数(模型侧)

prompt(必填)、provider(qwen/volcano)、sizereferenceImage(仅火山,图生图)、watermark(仅火山)、promptExtend(仅 qwen)、seed

返回规范输出 {provider, model, images:[{url}], size?, watermark?};工具结果以文本块携带 URL(供应商 URL 一般 24 小时过期,需及时下载)。

验证安装

启动日志应出现 [image-gen] registered image_generate tool;新开会话对模型说「用 image_generate 画一张……」。也可用 dsh --profile <name> --dump-config 查看是否包含 # == dsh-image-gen 层。