DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Openrouter Imagen V2 — DSH Plugin for DeepSeek Harness
← Plugins
O

dsh-openrouter-imagen-v2

Openrouter Imagen V2

DSH plugin v2: a standalone image-generation workspace (sidebar entry + its own main view) for the OpenRouter Image API — chat-style prompt column, picture area with history, draggable parameters.

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:fancyui/dsh-openrouter-imagen-v2#47f45fcd6842801564ebec082447d6d3bd4f68c0
READMECompatibilityVersions

Compatibility and provenance

Openrouter Imagen V2 is published as dsh-openrouter-imagen-v2 and currently resolves to version 2.0.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
github
Registry updated
10/2/2026

Versions

2.0.0stable
10/2/2026

Related plugins

Loading related plugins…

Latest
2.0.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
web
License
MIT
Source
github
GitHub
★ 0
Weekly downloads
0
Last push
10/2/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in

Related plugins

More verified plugins in vision-media.

Modlens@liustack/modlensPlug-in vision for text-only LLMs, powered by the free Antigravity CLITool Describe Image@linxin666/dsh-tool-describe-imageModel-facing describe_image tool for the dsh web GUI: gives a text-only model image understanding by asking a vision-language model at an OpenAI-compatible endpoint to describe one image (local path, http(s) URL, or attachment reference). Hot-pluggable — Vision Routerdsh-vision-routerEyes for text-only DeepSeek Harness agents: built-in free vision chain + pixel-level tools. Remote vision providers, including the default free fallback, receive image content unless strict local-only use is configured.Vision Toolkit@anionex/dsh-vision-toolkitDeepSeek Harness-native integration for agent-vision-toolkit: image Q&A, OCR, grounding, UI restoration, pixel diff, Artifacts, and Web UI.

README

dsh-openrouter-imagen-v2

兼容版本:DeepSeek Harness 0.2.x(在 0.2.0-rc.2 上开发并测试)

一个 DSH 插件:通过 OpenRouter Image API 生成与编辑图片。提供独立工作台(侧栏入口 + 中央主视图),并提供可供 agent 调用的工具。

English · 开发笔记与排错

功能

  • 独立工作台:双栏布局(图片区 + 对话区),分隔条可拖动
  • 两种出图方式:工作台手动生成,或 agent 调用工具
  • 提示词:直接出图,或由文本模型生成(默认 google/gemini-2.5-flash)
  • 参考图:最多 4 张,支持文件选择、粘贴、拖放,随请求直接发送
  • 模型管理:清单最多 16 个,可指定默认模型;单次出图可临时覆盖
  • 种子回填:生成后自动写入实际使用的种子,便于复现
  • 生成记录:最近 60 条,重启保留,支持按相同参数重新生成
  • 随包 skill:指导模型按需求推导画风与提示词

要求

依赖版本
DeepSeek Harness0.2.x
Node.js^22.19.0 或 >=24.0.0
OpenRouter API Key必需

安装

从本地目录安装:

dsh plugin --profile desktop add X:\github\dsh-openrouter-imagen-v2

或从 Git 仓库安装:

dsh plugin --profile desktop add git+https://github.com/fancyui/dsh-openrouter-imagen-v2.git

Git 安装需要系统可用 git。若 pnpm 配置了发布延迟策略(minimumReleaseAge)导致依赖解析被拦,在命令后追加 --config.minimum-release-age=0 即可,参数会原样透传给 pnpm。

安装后重启 DSH 并刷新页面,侧栏「插件」组下出现 图像生成。

手动挂载(不通过 CLI)
  1. 创建指向包目录的 junction(必须用 junction,不能用符号链接):

    $link = 'C:\Users\WR\.dsh\profiles\desktop\node_modules\dsh-openrouter-imagen-v2'
    New-Item -ItemType Junction -Path $link -Target 'X:\github\dsh-openrouter-imagen-v2'
    
  2. 在 ~/.dsh/profiles/desktop/cordis.patch.yml 中加入:

    - insert:
        - id: openrouter-imagen-v2
          name: 'dsh-openrouter-imagen-v2'
    
  3. 在包目录执行 npm install,然后重启 DSH。

两种方式不要同时使用,否则同一路由会被注册两次,插件树启动失败。

使用

工作台

从侧栏「插件」组进入 图像生成。

区域内容
左栏当前图片、历史缩略图(最近 5 张)、参数区
右栏对话(要求 → 提示词 → 出图)与输入框

默认参数:数量 1、质量 medium、背景 auto、宽高比 16:9、分辨率 1K。画幅支持 12 个比例 + auto。

  • 提示词模式:直接出图(输入即最终提示词)或 让 AI 写提示词(默认)。
  • 确认开关:「写提示词后先确认再出图」默认关闭;开启后提示词需手动确认才会出图。
  • 模型选择器:位于输入框下方,仅作用于本次出图,选择后可一键回到默认。
  • 参考图:随当次请求发送,不写入生成记录;重新生成需重新添加。
  • 种子:生成后自动回填实际使用的种子;再次生成即复现同一张图,随机 按钮清空。

设置

右上角 设置 打开弹窗:

页签内容
密钥OpenRouter 密钥的填写与校验(当场验证并显示额度)
模型模型清单、默认模型,可从线上目录拉取
高级提示词模型、保存目录、Provider 排序、附加请求体 JSON
  • 已存密钥只显示前缀与末四位;输入框留空表示保留现有密钥。
  • 清除密钥是独立操作,清空输入框不会删除已存密钥。
  • 格式不正确的密钥在保存时被本地校验拒绝,不发网络请求。
  • 「校验」与模型目录拉取可使用尚未保存的密钥,仅当次有效、不写入设置。

保存目录 saveDir 相对当前会话工作目录,默认 generated-images。

agent 调用

工具 openrouter_generate_imagen_v2 可由 agent 直接调用,适用于「产物缺一张图」的场景(网页配图、文档插图、封面等)。

参数必填说明
prompt是画面描述
save_dir否保存目录,相对会话工作目录;越界报错
file_name否文件名主干,扩展名固定 .png
aspect_ratio否画幅,按用途确定(如网页头图 16:9、头像 1:1)
resolution否分辨率档位
quality / background / model / seed否未指定时使用工作台设置

固定行为:单次调用生成一张图,输出格式 PNG。

说明

  • resolution 的 512 / 1K / 2K / 4K 是档位名,不对应固定像素。工具结果会报告实际交付的宽高;与请求画幅不符时给出警告,但不会自动重新生成。
  • 「让 AI 写提示词」是一次独立的文本模型调用,不共享对话上下文。
  • 参考图仅当次有效。
  • 工作台的对话栏独立于 DSH 会话消息流。
  • 密钥不会通过任何接口返回原文;参考图与保存目录均限制在会话工作目录内;未声明的工具参数会被拒绝。

卸载

删除 profile 中的 junction(或通过 CLI 卸载包),并从 ~/.dsh/profiles/desktop/cordis.patch.yml 移除对应的 insert 行,然后重启 DSH。

~/.dsh/settings.yaml 中的 openrouter-imagen-v2 段与 ~/.dsh/openrouter-imagen-v2/ 目录可一并删除。已生成到磁盘的图片不受影响。

License

MIT