Installation
npx -y @deepseek-ai/dsh plugin --profile web add github:ShiXiangYu2/dsh-imagegen-pluginThis installation command is an unverified starting point generated from the GitHub repository address.
README
Maintainer-authored documentation snapshot.
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 supportsdeepseek-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
Repository information
- Language
- JavaScript
- License
- Not reported
- Last updated
- Aug 15, 2026, 2:05 AM
Install deliberately
Review source code, permissions, lifecycle hooks, dependencies and network access. Test untrusted plugins in an isolated environment.