Preface¶
When generating images, videos, or audio in DSH, common approaches include self-hosting ComfyUI, writing MCP servers, or switching tasks into the browser and manually filling in nodes. RunningHub hosts ComfyUI workflows in the cloud and bills according to platform rules. If you want to submit workflows directly from agent conversations and receive attachments back, an adaptation layer is still required: parsing nodes, managing keys, handling asynchronous tasks, and implementing failure retries.
The following introduces the community plugin dsh-runninghub-plugin (maintainer achenjins), which connects RunningHub to the DSH desktop client, registers runninghub_search and runninghub_call with the model, and provides a browser-based configuration panel for key pool management, workflow node tuning, and prompt spec documentation.
What It Is¶
dsh-runninghub-plugin is a network-enabled plugin for DSH (community catalog category: networking tools). Its purpose is to invoke RunningHub’s online ComfyUI workflows within DSH to generate images, videos, audio, or other output types. It supports parsing workflow links in AI conversations and saving configurations, and also allows per-item adjustment of node parameters in the panel.
Source code and documentation are available on GitHub: achenjins/dsh-runninghub-plugin. Catalog page: SkillHub plugin page. The current package version is 0.1.5, licensed under MIT, and requires Node.js >= 20. The plugin runs with the permissions of the current DSH process; before installation, it is recommended to review the repository source code and license yourself.
Before use, you need: the DSH desktop app, a RunningHub API key, and a workflow that supports API invocation. The China site (.cn) and the overseas site (.ai) have separate accounts and keys that are not interchangeable. Running costs are charged by RunningHub according to platform standards.
Core Features¶
Model-side Tools¶
The plugin registers two tools with the large model:
runninghub_search: No arguments; returns usage instructions for each action ofrunninghub_call.runninghub_call: Executes queries, workflow configuration, and generation submissions; workflow lists, task statuses, etc. are queried via the correspondingaction.
Typical actions include: workflow.get (list or read configured workflows), workflow.probe / workflow.configure (probe and save new workflows), workflow.run (submit a task), task.status, task.wait (wait for completion and retrieve attachments), task.retry (resume downloads without re-generating), etc. For full parameters, see the README section “Model Tool Call Reference.”
Prompting and Configuration¶
- Spec document library: Upload or write prompt specifications (Markdown / plain text) in the panel, and attach them to specified workflows.
- Two optimization modes: The main model reads the documents and rewrites prompts; or enable “dedicated subagent” mode, where a minimal subagent is solely responsible for polishing, without consuming the main conversation context.
- AI-assisted workflow configuration: Send a workflow link to the AI; the plugin reads the ComfyUI node structure and infers prompts, reference images, sampling steps, etc., then saves after confirmation.
- Visual node tuning: Adjust node roles, default values, required fields, numeric ranges, and enum options in the browser panel; unsaved changes are protected as drafts.
Key Pool and Task Reliability¶
- Add multiple keys with automatic China/overseas detection; the China pool and overseas pool are physically isolated and never mixed.
- When balance is insufficient, mark the key and rotate to the next available key; when concurrency is full (e.g., 1520) or exclusive machines are unavailable (415), queue locally and retry with 30s → 60s → 120s backoff.
- For network anomalies, record as
UNCERTAINand do not blindly retry; usetask.adoptto take over remote tasks, ortask.dismissto close them. - Background asynchronous polling; supports
task.waitto render results as attachments in chat; if the remote task has completed but local download was interrupted, it can resume the download.
Workflow and task data are stored under DSH_HOME/runninghub (see README / package description).
Installation and Activation¶
Install to the DSH desktop client:
dsh plugin --profile desktop add github:achenjins/dsh-runninghub-plugin
After installation, restart DSH and refresh the page. Configuration entry: Plugins → dsh-runninghub-plugin.
Uninstall:
dsh plugin --profile desktop remove dsh-runninghub-plugin
You can append #<commit> after the install URL to pin a version. The README states it is pure hand-written native code, so no additional approval for executing scripts is required during installation.
Typical Usage¶
1. Add API Key¶
Copy the key from the corresponding RunningHub platform API page (the China and overseas pages are different; see the platform entry links in the README), then add it in the configuration panel under Key Pool Management. Region can be set to China, overseas, or auto-detect.
2. Let AI Configure a Workflow¶
Send a workflow link to the AI, for example:
Help me configure this workflow: https://www.runninghub.cn/workflow/xxxxxxxxxxxxxxxxxxx
The AI will read the nodes and, after confirming the prompt node, reference images, and common parameters, save the configuration. For a new workflow, you can first use workflow.probe to obtain a config pending confirmation, then use workflow.configure to save it.
3. Submit Generation and Retrieve Results¶
Query actions and workflow lists:
runninghub_search({})
runninghub_call({ action: "workflow.get" })
runninghub_call({ action: "workflow.get", name: "My Text-to-Image" })
Submit in background (recommended):
runninghub_call({
action: "workflow.run",
name: "My Text-to-Image",
prompt: "A panda eating bamboo in a bamboo forest",
background: true
})
Wait and display attachments:
runninghub_call({ action: "task.wait", taskId: "Task ID" })
When using reference images and custom parameters, you can use fields such as images, params (e.g., "Node ID:field name"), saveDir, fileName, etc. See the README for details.
After configuration is complete, you can also use natural language directly, e.g.: “Use the text-to-image workflow we just configured to draw a panda eating bamboo in a bamboo forest.”
Use Cases and Notes¶
Who it’s for: Developers or creators who already use—or plan to use—ComfyUI workflows on RunningHub and want to complete “select workflow → fill parameters → asynchronous generation → results returned to chat” within DSH conversations.
Notes:
- The plugin belongs to the DSH community ecosystem (SkillHub and similar sites are independent directory sites, with no official affiliation to DeepSeek / Hiai), and is not an official app store listing.
- Fees, concurrency, and platform rules are subject to RunningHub; do not commit keys to public repositories.
- When saving a newly imported workflow for the first time, the panel requires confirmation of node roles, default values, and output types to avoid misconfiguration.
Closing¶
dsh-runninghub-plugin encapsulates RunningHub workflows, key pooling, prompt specifications, and asynchronous tasks into a DSH-callable toolchain, with a visual panel. It is suitable for networked image/video/audio generation within Harness.
- Catalog page: https://www.skillhub.cn/plugins/achenjins/dsh-runninghub-plugin
- GitHub: https://github.com/achenjins/dsh-runninghub-plugin