LeemanCheung/dsh-image-gen 预览 preview

LeemanCheung/dsh-image-gen

基于 GPT Image 2 的生成,带有渐进式 Codex 风格预览,适用于 DeepSeek Harness

Project Overview项目介绍

This is a native plugin built exclusively for the DeepSeek Harness (DSH) ecosystem, designed to add OpenAI GPT image generation capabilities directly into DSH workflows. It supports three OpenAI image models: gpt-image-2, gpt-image-2.5-flare, and gpt-image-2.5-sunburst, and follows the Codex-compatible image_gen tool naming convention for seamless integration. By default, it reuses the existing refreshable OAuth credentials from the active DSH Profile’s dsh-codex-connect connection, so most users do not need to manually configure an OpenAI API key to use it. It can also be configured to use a manually provided OpenAI API key instead of the Codex subscription, which gives users more flexibility in how they access the image generation API.

To generate an image, users simply call the image_gen tool from within a DSH conversation with a text prompt describing the desired output. The plugin supports progressive display of the generation process: API key mode streams up to three partial images from OpenAI, while Codex subscription mode shows a loading animation until the full image is ready. Once generation completes, the final image is saved as an immutable DSH attachment that can be previewed, downloaded, and replayed even after the conversation session is reloaded. This plugin is ideal for any DSH user that wants to add image generation directly to their AI coding or conversation workflow.

This plugin is released under the permissive MIT open source license, so it can be used, modified, and distributed freely with no restrictions beyond the license terms. It has several documented limitations: it does not currently support editing existing images, the Codex subscription endpoint ignores explicit size and quality parameters, remote web clients cannot access previews directly, and it cannot interrupt stalled provider requests. When first running the plugin, users must ensure they have either an active signed-in Codex subscription or a valid OpenAI API key configured, otherwise the image generation calls will fail before they start.

这是一个专为DeepSeek Harness (DSH) 打造的原生图像生成插件,支持调用OpenAI的多个GPT图像生成模型生成图片,默认使用用户已登录的Codex订阅凭证,也支持手动配置OpenAI API密钥使用。它支持gpt-image-2、gpt-image-2.5-flare、gpt-image-2.5-sunburst多个模型,兼容Codex的image_gen工具调用格式,可复用DSH Profile内的Codex Connect凭证,无需额外配置密钥就能直接使用。

用户在DSH的对话中调用这个插件,只需输入生成图片的提示词,就能触发图像生成流程。插件支持渐进式显示生成过程,API密钥模式下会显示最多三张部分生成的图片,订阅模式会显示加载动画直到生成完成。生成的图片会作为永久附件保存在DSH中,支持后续预览、下载和对话重放,适合需要在DSH工作流中直接生成图像的开发人员和普通用户。

这个插件采用MIT许可证开源,可免费使用和修改。它存在一些已知限制,比如目前不支持编辑已有图片,订阅端点返回的图片尺寸和质量由OpenAI决定,可能和API密钥模式的参数要求不一致。首次使用需要确保已登录Codex订阅或者配置好有效的OpenAI API密钥,否则无法正常调用生成接口。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 3 stars - very few users, little community feedback星标只有 3,几乎没人在用,遇到问题缺少社区反馈
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 dsh-codex-connect

把 LeemanCheung/dsh-image-gen 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-image-gen

Awesome awesome · DSH plugin

CI License: MIT

Generate images in DeepSeek Harness with OpenAI gpt-image-2.5-flare (or gpt-image-2.5-sunburst and gpt-image-2), using a signed-in Codex subscription by default or an API key when explicitly configured.

Linked development installs also resolve Codex Connect from the active DSH Profile. This uses the connector's public store, including its selected account in the current multi-account format, instead of mistaking an inaccessible optional dependency for a signed-out account. The same path has been verified against the installed Profile without displaying credential values.

中文说明

Animated dsh-image-gen progressive preview

dsh-image-gen completed durable image card

These illustrations mirror the shipped developing and completed card states. API-key mode can replace the light field with real streamed drafts; Codex subscription mode animates until its non-streaming response arrives. The completed state remains available as a durable DSH attachment with preview and download controls.

Capability map

Area Delivered behavior
Tool and access paths Exposes the Codex-compatible image_gen tool for gpt-image-2.5-flare, gpt-image-2.5-sunburst, and gpt-image-2; defaults to refreshable dsh-codex-connect subscription OAuth and can explicitly use a DSH API-key credential.
Progressive experience Subscription requests show a developing animation until their non-streaming result; API-key requests can show up to three provider-sent partial images, cross-faded in place.
Durable results Saves only the completed image as a DSH immutable attachment, so the same card can replay, preview in a lightbox, and download after a session reload.
Conversation compatibility Returns text-only tool output to the model while retaining the image reference in UI metadata, including for nested Code Mode calls.
Safety boundaries Resolves credentials per request, pins the subscription endpoint, rejects redirects, bounds response sizes and concurrency, validates image bytes through DSH, and retries only transient failures.

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-usage-monitor 下一个 Next dsh-plugins →