JuneLearn/dsh-image2-draw
DeepSeek Harness Image2 生图插件,通过第三方 OpenAI Images 兼容接口调用 gpt-image-2,只需配置 baseURL 和 API Key。
Project Overview项目介绍
This is a DSH-native plugin built exclusively to add image generation capabilities to DeepSeek Harness, which does not natively support generating images directly in chat. It connects to any third-party API relay that exposes an OpenAI Images-compatible endpoint, so users can run text-to-image and image-to-image tasks directly within DSH conversations using the gpt-image-2 model. To install via the recommended npx method, users do not need a local source checkout of DeepSeek Harness, only working installations of Node.js 22.19+, Git, and pnpm. Node.js 24 LTS is the recommended version for compatibility with current DSH builds.
After installation, users can access the plugin’s dedicated configuration card under the Settings > Plugins > Configurable plugins menu in DSH. They only need to enter their relay’s base URL and API key, with optional adjustments to the default model name, custom edit endpoint, and maximum request timeout. Once the configuration is saved successfully, users can start a new DSH session and call the image2-generate tool for text-to-image tasks, or image2-edit for image-to-image editing with user-provided reference images.
The plugin has clear limits for requests: it supports 1 to 8 sequential generation requests, and up to 8 reference images for edits, with a 4MB per-image limit and 32MB total limit for reference images. All generated images are displayed directly in the DSH conversation via a dedicated tool card with thumbnail previews, zoom, and save options, and are also saved locally to the current session’s outputs/image2 directory. The plugin is released under the open source MIT license, and API keys are stored only in DSH’s secure credential storage, never exposed to plaintext configuration files.
这是DeepSeek Harness(DSH)的原生插件,解决了DSH无法直接生成图像的问题。它通过第三方转发服务提供的兼容OpenAI Images标准的API,为DSH添加文生图和图生图能力支持。用户只需要配置API地址和API密钥,就可以调用gpt-image-2模型,直接在DSH对话中生成图像。
安装该插件需要提前准备好环境依赖,包括Node.js(官方推荐24 LTS版本)、Git和pnpm,普通用户推荐使用npx命令安装,无需提前克隆DSH源码。安装完成后,用户可以在「设置 > 插件 > 可配置插件」下找到Image2 Draw的专属配置面板,完成配置后即可开启新会话调用生成工具。
该插件支持1-8次顺序生成,图生图支持最多8张参考图,单张不超过4MB,总大小不超过32MB,仅支持PNG、JPEG、WebP格式。API密钥仅存储在DSH凭证中,不会泄露到普通配置文档。插件采用MIT许可证开源,生成的图像会保存在会话工作目录的outputs/image2路径下。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-image2-draw(JuneLearn/dsh-image2-draw)
仓库:https://github.com/JuneLearn/dsh-image2-draw
本站详情页:https://www.yhbd.top/plugins/junelearn-dsh-image2-draw/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 8 · 最近提交 2026-08-16 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 8 stars - very few users, little community feedback星标只有 8,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add github:JuneLearn/dsh-image2-draw
把 JuneLearn/dsh-image2-draw 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
DSH Image2 Draw
Unable to generate images directly in DeepSeek Harness? This plugin adds Image2
generation through a third-party relay that exposes an OpenAI Images-compatible
API. Configure only a baseURL and an API Key, then use gpt-image-2 for
text-to-image and image-to-image tasks in chat.
Third-party service recommendation (referral link)
If you are looking for an OpenAI-compatible API relay, you can take a look at WPIronman API. This is my referral link, and I may receive a referral benefit if you register through it; any promotion or benefit is subject to the provider's current terms. This plugin is independent of that service and does not require any particular relay. Evaluate pricing, reliability, and privacy terms before choosing a provider.
New users can redeem the gift quota with code
99F509ABC6C38F77.
Related project
Need independent reasoning-effort controls for third-party models in DeepSeek Harness? See my other plugin: DSH Reasoning Settings. It configures reasoning levels, provider defaults, and API wire values for custom providers and models.
Features
- Adds an Image2 Draw card under Settings > Plugins > Configurable plugins.
- Requires only a
baseURLand anAPI Key; the default model isgpt-image-2. - Accepts a short base URL such as
https://example.com/v1and appends/images/generationsautomatically. - Derives the image-edit endpoint as
/images/edits, with an optional expliciteditURLoverride. - Provides
image2-generatefor 1-8 sequential text-to-image generations. - Provides
image2-editwith 1-8 PNG, JPEG, or WebP reference images. - Supports adaptive portrait, landscape, and square sizes as well as validated custom dimensions.
- Displays generated images directly in the conversation with a dedicated tool card for thumbnails, zoom, and Save As actions.
- Resolves image attachments in the client card without injecting image content into DeepSeek model context that does not support vision input.
- Also saves images under
outputs/image2/in the current session working directory and numbers duplicate names instead of overwriting files. - Stores API keys only in DSH credentials. Keys never enter the regular settings document and are never returned by the plugin state endpoint.
- Validates settings writes, response sizes, timeouts, and input images. HTTP 524 and timeout failures are not retried automatically, preventing duplicate charges when the upstream service has already generated an image.
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
Totoro-qaq/dsh-plugin-bridge
william-jin-cmu/dsh-vision
Flyvhidbwo/dsh-vision-proxy
WNJXYK/dsh-codex-oauth
mjylfz/dsh-skill-mover
STARDUSTLC666/dsh-voice
starefinger/dsh-llm-qwen-local
moduqishi/GrassVison