JuneLearn/dsh-image2-draw 预览 preview

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路径下。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • 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 baseURL and an API Key; the default model is gpt-image-2.
  • Accepts a short base URL such as https://example.com/v1 and appends /images/generations automatically.
  • Derives the image-edit endpoint as /images/edits, with an optional explicit editURL override.
  • Provides image2-generate for 1-8 sequential text-to-image generations.
  • Provides image2-edit with 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 →

← 上一个 Prev dsh-whale 下一个 Next dsh-prompt-rail →