Back to home

ShiXiangYu2

dsh-imagegen-plugin

DeepSeek Harness plugin: generate_image tool (Qwen-Image / DeepSeek Janus-Pro-7B via SiliconFlow).

Stars
0
Language
JavaScript
Created
Aug 15, 2026
Updated
Aug 15, 2026

Introduction

dsh-imagegen-plugin

A DeepSeek Harness plugin that registers a generate_image tool callable by the model.

  • Plugin ID: imagegen
  • Tool: generate_image(prompt, model?, image_size?, ...) → returns an image URL (valid up to 24 h)
  • Default model: Qwen/Qwen-Image (also supports deepseek-ai/Janus-Pro-7B, Kwai-Kolors/Kolors, Tongyi-MAI/Z-Image-Turbo)
  • Backend: SiliconFlow Images API

Prerequisite: API key

Set the SILICONFLOW_API_KEY environment variable (register a free key at https://cloud.siliconflow.cn):

export SILICONFLOW_API_KEY=sk-xxxxxxxx

Install

Bundle form, local checkout:

dsh plugin --profile demo add ./imagegen-plugin

From git (no build step required — ships plain ESM):

dsh plugin --profile demo add github:you/dsh-imagegen-plugin

From npm (prebuilt):

dsh plugin --profile demo add dsh-imagegen-plugin

Verify the layer without starting:

dsh --profile demo --dump-config   # shows a "# == dsh-imagegen-plugin" layer

Then start with the key and ask the model:

SILICONFLOW_API_KEY=sk-xxx dsh --profile demo
Generate an image of a red panda eating bamboo.

Structure

imagegen-plugin/
├── package.json       # declares dsh.bundle
├── cordis.patch.yml   # the layer applied when a profile lists this bundle
└── index.js           # plugin module: registers the generate_image tool

License

MIT