Introduction¶
DeepSeek Harness (DSH) allows extending conversation capabilities through plugins. In agent development, there are times when you need to invoke cloud GPUs to execute ComfyUI workflows. Developers must first create instances on the cloud platform, manually upload workflows, configure GPUs, submit tasks, and manually download results—a cumbersome process that ties up resources for extended periods.
The dsh-chenyu-workflow plugin encapsulates this entire process into a DSH tool. It leverages the Chenyu Cloud API to fetch Pod images and workflows, boots instances on demand, executes tasks serially, downloads results, and automatically shuts down—making GPU invocations within a conversation as simple as calling a local function.
What It Is¶
This is a DeepSeek Harness plugin for invoking Chenyu Cloud’s ComfyUI workflows within a DSH session. Developed by maintainer yueguang2 and categorized under the “Workflow” plugin type. It does not replace the Chenyu console; rather, it integrates existing capabilities into the DSH ecosystem, enabling sessions to directly initiate cloud rendering tasks.
Core Features¶
- Version-based workflow execution: Select an image version from the saved Pod library and read ComfyUI workflows from that version’s
workflowsdirectory (supports both UI format and API prompt format). - On-demand GPU: Set default GPUs separately for images and videos; displays platform pricing and availability at submission time; auto-shutdown after task completion.
- Persistent serial queue: Tasks are written to
~/.dsh/chenyu-workflow/and restored after plugin reload; adjacent tasks reuse the same instance to avoid redundant boot cycles. - In-session progress: View progress, history, output files, and shutdown receipts in the current session; other sessions retain an entry point.
- Conversation tools: Provides tools such as
chenyu_instance_*,chenyu_queue_*, andchenyu_workflow_*for direct invocation within conversations. - UI details: Auto-save drafts (survives page refresh), desktop notifications on task completion, adaptive polling (auto-reduces frequency when idle), and friendly error messages.
Installation & Activation¶
Requires the DeepSeek Harness desktop client (with built-in plugin manager).
- Clone the repository:
git clone https://github.com/yueguang2/dsh-chenyu-workflow.git
-
Open DSH and navigate to Settings → Plugins.
-
Click Add Plugin and select the cloned repository directory.
-
Enable Chenyu Cloud Workflow in the plugin list. Start a new session for changes to take effect.
You can also pass a local directory directly to a session that supports plugin_manager for installation (pass the absolute repository path as the target parameter of install_bundle).
Configuration¶
Save your API Key under Settings → Chenyu Cloud. You can also use the CHENYU_API_KEY environment variable when launching DSH. The settings page supports connection testing and balance queries. For API Key management, visit Chenyu API Management.
- Add cloud Pod UUIDs under Saved Pod Library. On first open, the plugin imports associated images from existing instances. You can add multiple Pods, e.g.,
1166fbd2cbe44b7f9c58dc5dfa834e7c(YZ Goldfish - Dedicated ComfyUI Image - Curated Workflows). - Save default GPUs separately for images and videos. Each submission can override the defaults; the GPU list displays platform pricing and availability.
- Optionally save a Default Existing Instance. Used when conversation tools don’t specify a Pod or instance.
Typical Usage¶
Selecting and Running Workflows in a Session¶
- Open Chenyu Cloud next to the input box, select a saved Pod and its exact version, or choose an existing instance.
- Select a file from that image’s
workflowsdirectory. Running instances provide real-time directory access; previously read versions are available from cache. On first use, you can enter an exact filename or relative path, or select a GPU and confirm a one-time paid scan. Normal directory refreshes only read existing cached data. - Confirm the GPU, enter your prompt, and submit. Optional settings include seed, aspect ratio, resolution, duration, reference files in the working directory, and node-ID-specific override parameters.
- View progress, history, output files, and shutdown receipts in the session where the task was submitted. Other sessions retain a compact entry point for initiating tasks. You can cancel or retry from the task list.
Workflows and directory scans share a single persistent serial queue. Adjacent tasks requiring the same already-booted instance will reuse it. When the queue no longer needs that compute resource, it sends a shutdown request and waits for Chenyu confirmation (triggered immediately by default). Instances already running before submission—maintained by you through the Chenyu console—retain their existing boot state.
Results are saved by default to generated/chenyu/instance/<instance-UUID>/<timestamp> in the session’s working directory. When the plugin reloads, it restores pending tasks, logs interrupted tasks, and processes instances previously managed by the queue first.
Specifying Workflows in Conversation¶
First use chenyu_instance_list to view saved Pods, available versions, and existing instances, then use chenyu_instance_workflows to read the workflow directory of the selected version. Pass start_if_needed: true to allow a paid boot for reading. chenyu_instance_workflow_inspect can further read the workflow’s actual node IDs and input names.
Pass the exact version and workflow to chenyu_instance_workflow_run. For example:
{
"pod_uuid": "1166fbd2cbe44b7f9c58dc5dfa834e7c",
"pod_tag": "V1.0.0",
"workflow_name": "YZ金鱼-MOSS-文生图.json",
"gpu": "RTX 4080",
"prompt": "傍晚的山间小站,窗内透出暖光"
}
You can also use instance_uuid to select an instance, or specify a local file via workflow_file, or submit an object via workflow_json. If custom node parameters need explicit specification, you can pass prompt_node, prompt_input, overrides, or files.
chenyu_image_generate and chenyu_video_generate use the MOSS and MiniMax H3 shortcut workflows respectively. Both tools support selecting a Pod version and a per-run GPU. Queue tools chenyu_queue_status, chenyu_queue_wait, chenyu_queue_cancel, chenyu_queue_clear, and chenyu_queue_retry all operate within the calling session.
Checking Pod Updates¶
Under Settings → Pod Image Version for Instances, select an instance and check for updates, or call chenyu_pod_update_check. The check displays the instance’s image_tag and the latest published version of its parent Pod.
When a new version is available, you can confirm Use New Version via New Instance. The plugin creates or reuses an instance with that exact version while preserving the original instance. The default value is only updated if the original instance was the default. You can also directly select a new Pod by version in a session, with the instance prepared on demand at first execution.
Workflow Marketplace¶
The platform’s workflow marketplace remains accessible via chenyu_workflow_list, chenyu_workflow_info, chenyu_workflow_run, chenyu_workflow_wait, and chenyu_workflow_download. Read the quote and parameters before submitting. Local assets can be exchanged for an asset_uri via chenyu_workflow_upload; actual charges are subject to Chenyu’s billing. Chenyu API Documentation
Use Cases & Notes¶
Suited for developers who need to quickly invoke cloud ComfyUI workflows within DSH sessions. The plugin runs with the current DSH process permissions—review the source code and license before installation.
Summary¶
dsh-chenyu-workflow integrates Chenyu Cloud’s GPU compute capabilities into the DSH ecosystem, reducing resource waste through on-demand boot, serial execution, and automatic shutdown. Developers can select workflows, submit tasks, and retrieve results directly in conversation—without switching to the cloud platform console.