dsh-image-gen
Manifest validImage generation plugin for DeepSeek Harness that calls gpt-image-2 through any OpenAI Images compatible endpoint, with in-conversation previews and a configurable settings card.
DSH Image Gen
Adds gpt-image-2 generation to DeepSeek Harness by calling any third-party
OpenAI Images compatible endpoint. Fill in baseURL and API Key and use
text-to-image and image-to-image tools directly in conversation.
This plugin is a rewritten, fixed fork of dsh-image2-draw. It fixes a load-time bug that broke the original (see "Bug fix" below).
Features
- A dedicated Image Gen card under Settings → Plugins → Plugin settings.
- Only
baseURLandAPI Keyare required; the default model isgpt-image-2. baseURLaccepts shorthands likehttps://example.com/v1; the plugin appends/images/generationsautomatically.- The edit endpoint defaults to
/images/editsderived frombaseURL, or can be set explicitly viaeditURL. image-generate(text-to-image) tool, generating 1–8 images sequentially.image-edit(image-to-image) tool with 1–8 PNG / JPEG / WebP reference images.- Adaptive portrait / landscape / square sizes, plus validated custom sizes.
- Results render inline in conversation with thumbnails, lightbox zoom, and save-as.
- Images are also written to
outputs/image-gen/in the session working directory (auto-numbered, never overwriting existing files). - API Key is written only to DSH credentials (default ref
IMAGE_GEN_API_KEY); it is never echoed or stored in the settings document. - Validates config writes, response sizes, timeouts, and reference files; 524/timeout is not auto-retried to avoid duplicate billing.
Install
Prerequisites
Via npx
npx --yes -p @deepseek-ai/dsh dsh plugin --profile web add github:Anyway-one/dsh-image-gen
npx --yes -p @deepseek-ai/dsh dsh web
Pin a release with github:Anyway-one/dsh-image-gen#v0.1.0.
Via pnpm + Harness source
cd <deepseek-harness>
pnpm dsh plugin --profile web add github:Anyway-one/dsh-image-gen
pnpm dsh web
Configuration
- Open Settings → Plugins → Plugin settings and expand the Image Gen card.
- Fill in Endpoint (baseURL), e.g.
https://example.com/v1. - Fill in API Key (stored in credentials, default ref
IMAGE_GEN_API_KEY). - Optionally adjust Model (default
gpt-image-2), Edit endpoint, or Timeout. - Save, then use
image-generate/image-editin conversation.

Use Case

Development
pnpm test # pure-function unit tests (no DSH boot required)
Layout:
lib/index.js— Host half:image-gensettings namespace,image-generate/image-edittools,/image-gen/*HTTP routes.lib/client.js— Browser half:settings.plugin.itemconfig card (keyed), andtool.call.toolviewresult cards.cordis.patch.yml— mounts both halves (entry idimage-gen).
License
Comments
Loading…
From the same category
by ccch1mneyyy
DSH 官方公众号收录的 TUI 补位插件:Claude Code 风,鲸鱼顶栏/实时状态/流式思考/双击 Esc 回滚/上下文进度+TPS。npm 一键装。 DSH official WeChat featured TUI plugin — Claude Code style: whale bar, live status, streaming thoughts, double-Esc rol
★ 4.3k
↓ 10.9k/wk
MIT
TypeScript
Oct 11, 2026
dsh plugin --profile terminal add @deepseek-harness-tui/dsh-tuiby strukto-ai
The World's First Virtual Terminal for AI Agents
★ 3.7k
↓ 355/wk
Apache-2.0
TypeScript
Oct 11, 2026
dsh plugin --profile agent add @struktoai/mirage-dshby bowenliang123
The best DeepSeek Harness plugin for context insight and management, with context dashboard / browser / sidebar and context command, for context statistics, composition, breakdown, evolution details,
★ 2k
↓ 34.4k/wk
Apache-2.0
TypeScript
Oct 11, 2026
dsh plugin --profile web add dsh-contextby huiliyi37
官方 DeepSeek Harness 的交互式终端 UI 插件:自研 ANSI 极简交互渲染、流式 Markdown/工具卡、16+ 主题、slash 命令与选择器、输入历史与本地偏好持久化、LSP 诊断、memory记忆,很丝滑的开发体验。
★ 287
↓ 462/wk
Apache-2.0
TypeScript
Sep 30, 2026
dsh plugin --profile terminal add @huiliyi37/dsh-tianshu-tuiby Hilbert-beinghappy
面向 DeepSeek Harness 的 Claude Code 风格终端界面,支持 Windows、macOS 与 Linux,兼容透明终端、VS Code 主题和自定义配色。
★ 197
↓ 108/wk
MIT
TypeScript
Oct 1, 2026
dsh plugin --profile web add seekttyby T-Auto
deepseek-harness Plugin Access and Implementation Standards / deepseek-harness交互生态插件规范与实施标准
★ 83
MIT
JavaScript
Oct 10, 2026