Preface¶
DeepSeek Harness (DSH) binds conversations, tools, and workspaces together: the model can invoke capabilities exposed by plugins, with results landing in the current session’s workspace. If you want to simply say “draw an XXX” within the Harness to generate an image—rather than writing scripts to call an API and manually downloading the link—you need an image generation tool plugin designed for DSH.
The community-maintained dsh-ark-image (by XN-H) takes this approach: it connects to the Volcano Ark Seedream (Doubao) text-to-image API, registers the tool ark_generate_image, and immediately writes the generated image to the workspace and displays it in the conversation. The plugin is zero-dependency, pure JavaScript, and requires no build step. It is a non-official community plugin, not affiliated with DeepSeek or Volcano Engine, and is released under the MIT license.
What is this¶
dsh-ark-image is a plugin package that adds “text-to-image” capabilities to DeepSeek Harness. Maintained by XN-H, it is categorized under Model Inference in the plugin directory.
The scope is clear: one tool, text-to-image only. It does not support image-to-image, image editing, or provide a library/canvas. The default model is doubao-seedream-5-0-pro-260628, which can be changed via the model configuration (requires the corresponding model to be activated in the Volcano Ark console).
Core Features¶
The plugin exposes the tool ark_generate_image to the Harness. The model calls it based on your natural language description. The typical behavior is as follows:
- Calls the Volcano Ark Seedream API to generate an image based on the prompt.
- Immediately downloads and saves the image to the current session’s workspace (Ark image URLs expire after approximately 24 hours, so they must be transferred).
- Inline displays the image in the conversation rather than just returning the path.
- Stores files in subdirectories by date (e.g.,
generated-images/2026-09-30/a-vast-open-sea-085550.jpg) to avoid cluttering files in the same directory.
Parameters can be auto-filled by the model during invocation or specified in the conversation. The main parameters listed in the documentation include:
| Parameter | Description | Default |
|---|---|---|
prompt |
Image description (required) | — |
model |
Model ID | doubao-seedream-5-0-pro-260628 |
size |
1K/2K/3K/4K or e.g., 1024x1024 |
2K |
n |
Number of images to generate (1–4) | 1 |
watermark |
Whether to add a watermark | false |
outputName |
Filename (without extension) | Generated from prompt and time |
Available model IDs (must be activated in the console) include: doubao-seedream-5-0-pro-260628 (default, single high-quality refinement), doubao-seedream-5-0-260128, doubao-seedream-5-0-lite-260128, doubao-seedream-4-5-251128, doubao-seedream-4-0-250828, etc. See the project README for details.
Installation and Activation¶
Prerequisites¶
-
DeepSeek Harness
- Desktop Version: Install from deepseek.com/harness (Windows / macOS).
- Command Line Version: Install Node.js (^22.19.0or>= 24) and runnpx @deepseek-ai/dsh web.
The desktop and command-line versions can coexist and share session records, but plugins must be installed separately under the corresponding profiles. -
Volcano Ark API Key
Create a Key (starting withark-) in the Volcano Ark Console and activate the Doubao-Seedream model under “Activation Management”.
Installing the Plugin¶
Method 1: Desktop GUI (Recommended)
- Open Harness → Select “Plugins” on the left → ”+ Add Plugin”.
- Enter
dsh-ark-imagein the input box (this is the npm package name; entering agithub:address will cause the pre-installation info query phase to fail). - Click “Install”. Once complete, fully quit Harness and restart it (clicking the window ‘X’ often only minimizes to the tray; you need to right-click the tray icon → Quit).
Method 2: Command Line
# Install from npm (Recommended)
dsh plugin --profile <your-profile> add dsh-ark-image
# Or install from GitHub source
dsh plugin --profile <your-profile> add github:XN-H/dsh-ark-image
<your-profile> is usually desktop or web. To view or uninstall examples:
dsh plugin --profile desktop list
dsh plugin --profile desktop remove dsh-ark-image
Configuring the API Key¶
Read priority: Plugin config apiKey → Environment variable ARK_API_KEY. After setting the environment variable, you must restart Harness (the process only reads environment variables at startup).
Windows example:
setx ARK_API_KEY "YourKey"
For macOS / Linux, you can write export ARK_API_KEY="YourKey" into your shell configuration file.
Alternatively, configure it in the profile’s cordis.patch.yml:
- id: ark-image
name: dsh-ark-image
config:
apiKey: YourKey
Full example of overridable items:
- id: ark-image
name: dsh-ark-image
config:
baseUrl: https://ark.cn-beijing.volces.com/api/v3
model: doubao-seedream-5-0-pro-260628
outputDir: generated-images
timeoutMs: 180000
apiKey: ''
outputDir can be a path relative to the session workspace or an absolute path.
Typical Usage¶
After installation, key configuration, and restart, you don’t need to memorize CLI commands; simply describe the image to the model, for example:
Draw: The Milky Way over a mountain ridge, long exposure, no text
The model will call ark_generate_image and fill in the parameters. If generation is slow, the documentation notes that most of the time is spent on the API side; to get faster results, try setting size to 1K.
Use Cases and Notes¶
Who it is for: Users already using DSH for conversational development or writing who want to embed Seedream text-to-image into the same workflow, with images automatically saved and displayed in the conversation.
Permissions and Security: The plugin runs with the permissions of the current DSH process and accesses the network (Volcano Ark API) and writes files to the workspace. Before installing, it is recommended to review the source code and MIT license on the GitHub Repository; only authorize trusted sources; do not commit apiKey to version control.
Quick Troubleshooting: If the plugin entry is not visible or not active → reinstall and fully quit before restarting; Ark API key is missing → check Key configuration and restart; 401/403 → Invalid Key; 404 → Model not activated; 429 → Rate limited, try again later.
Ecosystem Note: DSH adopts an “everything is a plugin” extension approach; community directories like SkillHub are independent sites and are not official DeepSeek app stores.
Conclusion¶
dsh-ark-image integrates Volcano Ark Seedream text-to-image into a single tool within the Harness: zero-dependency, no build required, images are transferred to the session workspace and displayed in the conversation. To browse summaries or navigate from directory pages, visit the SkillHub Plugin Page and GitHub: XN-H/dsh-ark-image.