DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Plugin Image Gen — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
P

dsh-plugin-image-gen

Plugin Image Gen

通过配置的任意 OpenAI 兼容端点生成图像。本软件包不附带任何端点或凭据。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:HaoyanZhang123/dsh-plugin-image-gen#84b4fc8abdb9374110b8042bd66d5ea735bee52b
README兼容性版本

兼容性与来源证明

Plugin Image Gen 以 dsh-plugin-image-gen 发布,当前版本为 0.1.2。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
any
发布来源
github
Registry 更新时间
2026/9/30

版本

0.1.2stable
2026/9/30
0.1.1stable
2026/9/30

相关插件

正在加载相关插件…

最新版
0.1.2
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
any
许可证
MIT
发布源
github
GitHub
★ 1
周下载
0
最近提交
2026/9/30
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 vision-media 分类下经过校验的插件。

Vision Routerdsh-vision-router为仅支持文本的 DeepSeek Harness agents 提供视觉能力:内置免费视觉链路和像素级工具。除非配置为严格仅限本地使用,否则远程视觉提供商(包括默认的免费回退服务)会接收图像内容。Imagegen@dickpy/dsh-imagegen适用于 dsh 网页 GUI 的 AI 图像生成插件:通过可配置的提供商渠道进行文生图和图生图(gpt-image-2 / grok-imagine-image / nanobanana series / seedream-5.0-pro / dall-e-3,原生支持 xAI Grok Imagine、Google Nano Banana aExperimental Voice Input Bundle@deepseek-ai/dsh-experimental-voice-input-bundle实验性语音输入,使用本地 SenseVoice;首次使用时下载其运行时Codexdsh-codexChatGPT OAuth、Codex 模型、搜索、read_image URL 支持,以及可配置的 GPT Image 生成功能,用于 DeepSeek Harness

README

dsh-plugin-image-gen

Generate images from inside DeepSeek Harness (DSH) through any OpenAI-compatible image endpoint you configure. The package ships no endpoint, no model list tied to a vendor, and no credentials - you bring all three.

It registers two agent tools:

ToolPurpose
generate_imageGenerate image(s) from a prompt and save them to disk; returns absolute path(s).
get_image_gen_configShow the effective configuration and setup diagnostics (never secret values).

What you need

  • DSH (Desktop or CLI) with the tools service. Tested against DSH Desktop 0.2.0-rc.2.
  • An image endpoint that speaks the OpenAI images API: POST {baseURL}/images/generations, returning data[].b64_json or data[].url. This covers OpenAI itself and most relays/gateways.
  • An API key for that endpoint.

Nothing else: no system Node install, no dependencies, no build step.

Install

In DSH's Plugins page:

  • Latest: github:HaoyanZhang123/dsh-plugin-image-gen
  • Pinned: github:HaoyanZhang123/dsh-plugin-image-gen#v0.1.2
  • Offline: download the .tgz from Releases and paste its absolute path
  • npm (if you prefer registry installs): dsh-plugin-image-gen

A fresh install takes effect immediately - the next turn already has both tools. Upgrading an already-installed version is the one case DSH reports as restart-required: quit and reopen DSH afterwards (closing the window is not quitting; use the tray icon).

Set up

1. Find your DSH home

Everything lives there. Ask your agent to run get_image_gen_config - it prints the exact path in the "Config file" line. Or work it out:

PlatformDefault DSH home
Windows%USERPROFILE%.dsh (for example C:\Users\you.dsh)
macOS / Linux~/.dsh
Any, if setwhatever DSH_HOME points to

2. Add your API key

Pick whichever suits you:

  • In /.credentials.yaml, under the existing refs: section:
    refs:
      IMAGE_GEN_API_KEY: your-api-key-here
    
  • Or export IMAGE_GEN_API_KEY in the environment that launches DSH.
  • Or add IMAGE_GEN_API_KEY=your-api-key-here to /.env.

Resolution mirrors the official DSH layering: process environment > .credentials.yaml refs > /.env > /.env.

Keys are never read from conversation, shown in tool output, or stored by this plugin. Do not paste your key into a chat message - put it in one of the three places above.

3. Point it at your endpoint

Create /image-gen.config.json:

{
  "baseURL": "https://your-relay.example.com/v1",
  "apiKeyEnv": "IMAGE_GEN_API_KEY",
  "models": ["gpt-image-1", "another-model"],
  "defaultModel": "gpt-image-1"
}

That is the whole setup for most people. Skip this step entirely if you are using OpenAI itself with the default values - just add the key in step 2.

Two practical notes:

  • baseURL is the part before /images/generations. If your gateway exposes images at https://gw.example.com/openai/v1/images/generations, set baseURL to https://gw.example.com/openai/v1.
  • On Windows, write paths in JSON with doubled backslashes ("E:\images") or with forward slashes ("E:/images").

Edits take effect on the next tool call - no restart.

4. Verify

Ask your agent to run get_image_gen_config. You want to see your endpoint, your models, and Resolved keys: 1 (or more). Then say "generate an image of a red apple on a white table" and check the returned path on disk.

Using it

Just describe the image. Overrides are per call and phrased naturally:

  • "画一只在代码里游泳的猫" / "draw a cat swimming in code"
  • "a 16:9 banner for a launch post" - the agent passes a matching size
  • "four versions of the logo" - n=4
  • "use another-model for this one" - a per-call model override

Images are saved as PNG files and reported by absolute path, so they survive independently of the conversation. To view one in chat, the active model must accept image input - otherwise open the file.

Configuration reference

FieldDefaultMeaning
baseURLhttps://api.openai.com/v1Any OpenAI-compatible base URL; POST /images/generations is called.
apiKeyEnvIMAGE_GEN_API_KEYCredential name(s), comma-separated for rotation (for example KEY_A,KEY_B). Stores names, never keys.
models["gpt-image-1"]Model ids shown to the agent; it may pass any id.
defaultModelfirst of modelsUsed when a call does not specify model.
defaultParams{}Extra request fields merged into every call - the escape hatch for provider-specific parameters such as aspect_ratio or style.
timeoutMs240000Per-request timeout.
outputDir/image-gen/outputWhere images are saved; per-call output_dir overrides.
proxyautoauto (keep an environment proxy, else detect the OS system proxy: Windows registry / macOS scutil), off, or an explicit http://host:port.

Layering: package defaults < the entry's optional config: block in the profile patch < image-gen.config.json.

size and quality are pass-through strings: they are sent only when you set them (per call or via defaultParams); otherwise the endpoint applies its own defaults. Vocabulary differs per provider - the plugin never validates them, and endpoint errors are returned verbatim so the agent can retry.

Troubleshooting

SymptomCause and fix
No API key found for "IMAGE_GEN_API_KEY"Step 2 was skipped, or the key sits under a name that differs from apiKeyEnv. Run get_image_gen_config to see which names are consulted.
Configuration warnings: ... invalid JSONThe config file failed to parse and was ignored; defaults apply. Validate the JSON and check for Windows backslashes.
upstream HTTP 401The endpoint rejected the key (wrong key, wrong account, or a key for a different gateway).
upstream HTTP 404baseURL is wrong - usually it already includes or omits /v1. The called URL is {baseURL}/images/generations.
upstream HTTP 429Rate limited. Add a second key to apiKeyEnv (KEY_A,KEY_B); the plugin rotates on 401/429.
upstream returned no image dataThe endpoint answered, but not in OpenAI image shape (data[].b64_json / data[].url). It is not compatible.
Request timed outRaise timeoutMs. Large sizes and high quality can take minutes.
Connection errors behind a proxyLeave proxy: "auto", or set an explicit URL (including credentials if the proxy needs them). OS proxies requiring authentication are not picked up automatically.

Anything else: the error text is returned verbatim from the endpoint, and get_image_gen_config reports the effective settings and config-file path.

Security

  • The published package contains no endpoint beyond the neutral OpenAI default and no credentials; the files whitelist in package.json defines exactly what ships.
  • npm run pack:check packs the tarball and scans every shipped file for key-shaped strings before a release.
  • API keys resolve only from your own credential stores and never appear in logs, tool output, or errors.

Compatibility and failure behavior

See COMPATIBILITY.md. In short: the plugin imports only Node builtins and the documented tool-registration contract, declares no DSH version gate at all, and fails loudly and locally if that contract ever changes. It is tested against DSH Desktop 0.2.0-rc.2 on Windows; macOS uses the same contracts (system-proxy detection covered by unit tests).

Uninstall

Remove the bundle in the Plugins page. Your image-gen.config.json, saved images, and credentials are left untouched.

For maintainers

node --test              # 37 tests
node tools/check-package.mjs   # file whitelist + credential-leak scan, then packs the tarball

Release flow: bump version in package.json, add a CHANGELOG entry, run both commands, commit, then gh release create vX.Y.Z dsh-plugin-image-gen-X.Y.Z.tgz.