DeepSeek Harness plugin

dsh-imagegen-zhaojun2

Provider-neutral image generation tool for DeepSeek Harness

Jump to install

Source facts

Repository
ZhaoJun233/dsh-imagegen
Latest update
Aug 21, 2026
Category
Models & Providers
GitHub stars
0
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/ZhaoJun233/dsh-imagegen
Plugin: dsh-imagegen-zhaojun2
Author: ZhaoJun233

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer3 files
README.mdSource · read only
README language

dsh-imagegen

<img src="./icon.svg" alt="dsh-imagegen icon" width="96" height="96">

English | 简体中文

Provider-neutral image generation plugin for DeepSeek Harness. It registers the image_generate agent tool and supports:

  • Gemini-compatible generateContent endpoints
  • image2 / OpenAI-compatible /images/generations endpoints
  • base64 and downloadable URL responses
  • runtime configuration from the DSH plugin settings page
  • secret redaction for API credentials
  • workspace-confined output paths and image-size limits

Install

Install directly from GitHub into the DSH Web profile:

dsh plugin --profile web add github:ZhaoJun233/dsh-imagegen

For local development, link the checkout instead:

dsh plugin --profile web add link:C:\path\to\dsh-imagegen

Restart the DSH Web host after installing or updating plugin code.

Configure

Open Settings → Plugins → Plugin configuration → Image generation and set:

  • protocol: auto, gemini, or image2
  • API URL
  • API Key or environment-variable name
  • credential header and optional prefix
  • default model
  • default image2 quality
  • workspace-relative output directory

The API Key field is write-only. Secret-role values are removed from settings responses and are never echoed by the page.

The public defaults use placeholder connection values. Configure a real endpoint and credential before calling the tool.

Gemini-compatible example

{
  "protocol": "gemini",
  "url": "<GEMINI_COMPATIBLE_ENDPOINT>",
  "apiKeyEnv": "IMAGEGEN_API_KEY",
  "apiKeyHeader": "x-goog-api-key",
  "apiKeyPrefix": "",
  "defaultModel": "your-image-model"
}

When a base URL is supplied, the plugin appends /v1beta/models/{model}:generateContent as needed.

image2-compatible example

{
  "protocol": "image2",
  "url": "<IMAGE_API_BASE_URL>",
  "apiKeyEnv": "IMAGEGEN_API_KEY",
  "apiKeyHeader": "Authorization",
  "apiKeyPrefix": "Bearer ",
  "defaultModel": "gpt-image-2",
  "defaultQuality": "medium"
}

When a base URL is supplied, the plugin appends /images/generations as needed. It requests b64_json and also accepts providers that return a downloadable image URL.

Tool

image_generate accepts:

  • prompt (required)
  • model
  • aspect_ratio
  • image_size for Gemini-compatible APIs
  • size and quality for image2-compatible APIs
  • output_path, relative to the current workspace

Generated files default to generated-images/ in the current session workspace.

Legacy runtime file

The optional fallback file is:

~/.dsh/dsh-imagegen.json

It is read only when neither plugin settings nor the configured environment variable supplies a credential. Do not commit this file when it contains a Key.

Composition

- id: imagegen
  name: dsh-imagegen
  config:
    runtimeConfigPath: ~/.dsh/dsh-imagegen.json
    outputDirectory: generated-images
    timeoutMs: 180000
    maxImageBytes: 20971520