dsh-genbox-plugin: Integrating Local GenBox Media Capabilities into DeepSeek Harness

Introduction

When building agents in DeepSeek Harness (DSH), the common practice is to directly call cloud-based image and video generation APIs: API keys and billing are tied to the conversation side, and you also have to manage the output paths yourself. If you already run GenBox (a FastAPI media workbench) locally — with providers, sizes, and styles configured in the browser — a more natural requirement is to have your agent use the same service, save images and videos into your working directory, and then return the paths back to the model.

Below is the community plugin dsh-genbox-plugin (maintainer liwei9745), categorized under “Workflow” in SkillHub. It calls the local GenBox over HTTP and does not modify the GenBox core; GenBox is GPL-3.0, while the plugin is MIT-licensed and acts only as a client.

What Is This

dsh-genbox-plugin is a Cordis bundle plugin for DSH: DSH agent → plugin (TypeScript) → GenBox FastAPI (default 127.0.0.1:8892) → providers. The plugin registers tools, polls tasks, and downloads media locally; API keys and model selection are still managed in the GenBox workbench UI.

It can be summarized as:

DSH agent → dsh-genbox-plugin (TypeScript) ──HTTP──▶ GenBox FastAPI (127.0.0.1:8892) ──▶ providers

Core Features

The README registers 15 tools for the agent, covering self-checks, image generation, image editing, video generation and local editing, and the media gallery.

Category Tool Purpose (summary)
Service & diagnostics genbox_server Start / stop / restart / view local GenBox
genbox_doctor Self-check for reachability, authentication, providers/keys, output directory, ffmpeg, etc.
genbox_open_workbench Open the GenBox workbench (commonly used after first installation)
genbox_health Probe whether GenBox is online
genbox_providers List providers, models, and capabilities
Image genbox_image_generate Text-to-image
genbox_image_edit i2i, inpainting, precise editing (annotations), etc.
genbox_image_upscale Local super-resolution (no API key required)
genbox_image_variations Variations
genbox_cutout Cutout / background removal (requires a GenBox-side checkpoint)
Video genbox_video_generate Text-to-video / image-to-video / keyframes, etc.
genbox_task Query or cancel background tasks (supports background: true)
genbox_video_edit Local ffmpeg editing (trim, concat, subtitles, etc.; no GenBox key required)
Others genbox_gallery Search the media library and copy items locally
genbox_prompt_optimize Prompt optimization

Generated results are written by default to the configured outputDir (default .genbox), and absolute paths are returned; DSH’s built-in read_image can be used to view images.

Since DSH 0.2.0, the plugin also provides a native sidebar panel: in DSH NEXT, Ctrl+Shift+G or the GenBox card in the right sidebar can embed the GenBox web UI (on desktop, loaded via a webview lease because GenBox forbids iframes).

The repository provides a model-credential-free evidence board (node scripts/lab.mjs, default http://127.0.0.1:3098/) that shows connection status, the tool list, and reproduction commands; the verification suite defaults to a zero-cost mock provider, while real providers must be enabled explicitly via GENBOX_REAL_PROVIDER.

Installation & Enablement

Prerequisite: GenBox is already running locally. The GenBox core uses default port 8891, while the plugin’s dev documentation commonly uses 8892; the plugin probes baseUrl and baseUrlFallbacks in order and remembers the available address.

Install from npm (the README documents the published flow):

dsh plugin --profile <profile> add dsh-genbox-plugin

dsh --profile <profile> --dump-config | Select-String genbox   # confirm the plugin layer is active

From a tarball (example version 0.1.0):

corepack pnpm pack                                  # produces dsh-genbox-plugin-0.1.0.tgz
dsh plugin --profile <profile> add ./dsh-genbox-plugin-0.1.0.tgz

Because package.json declares dsh.bundle, installation writes the bundle into the profile’s bundles; on startup you should see something like:

[genbox] plugin loaded (baseUrl=http://127.0.0.1:8892)

After installing into the desktop profile, you need to restart DSH NEXT. It is recommended to verify with a separate profile first, for example:

dsh --profile genbox-dev --from-default-profile web

For local source-code debugging, you can use an overlay patch (replace the path with your local repository location):

dsh --profile <profile> --patch E:/AI/GenBox-dsh/dev/overlay.cordis.yml

package.json requires Node >=20 and DSH >=0.1.5-rc.1; the current package version is 0.2.1 (npm package name dsh-genbox-plugin).

Common configuration fields:

Field Default Description
baseUrl http://127.0.0.1:8892 GenBox service address
adminKey empty X-Admin-Key for prod mode (not needed in dev)
defaultProviderId empty Default provider when none is specified
outputDir .genbox Directory where media files are saved
pollIntervalMs 2000 Polling interval
taskTimeoutMs 900000 Per-task timeout
ffmpegPath / ffprobePath ffmpeg / ffprobe Local video editing and probing

Typical Usage

The “30-second quick start” in the README can be followed in three steps (you can also simply ask the agent to run the corresponding tools):

  1. Open the workbench: tell the agent “open the GenBox workbench” (genbox_open_workbench), or visit http://127.0.0.1:8892/ in your browser to configure providers and keys.
  2. Self-check: “run the GenBox self-check” (genbox_doctor), and follow the returned checklist to complete the environment.
  3. Start using it: e.g., “use GenBox to draw a Shiba Inu in the snow”.

When GenBox is not running, the plugin clearly reports that there is no response and points to the local startup instructions in the documentation.

Do not confuse the three ports:

Port Purpose
3098 Plugin evidence board (read-only, no credentials required)
3099 DSH session page (requires model credentials)
8892 GenBox workbench (drawing, gallery, provider configuration)

For a quick reference on tool parameters, see the repository’s docs/tools.md (auto-generated from code); for installation and troubleshooting, see docs/install.md.

Use Cases & Notes

Who it’s for: People who already run — or plan to run — GenBox locally and want their DSH agents to uniformly call image generation, image editing, video generation, local ffmpeg editing, and the media gallery, rather than repeatedly wrapping each cloud API inside the agent.

Permissions & security: The plugin runs with the permissions of the current DSH process: it can start/stop the local GenBox process, read/write outputDir, and call ffmpeg. Before installing, read the GitHub repository source and the MIT license; third-party provider keys are still configured in the GenBox UI, and the plugin forwards requests over HTTP.

Ecosystem note: The DSH community plugin directory is hosted on independent sites such as SkillHub and has no official affiliation with DeepSeek / High-Flyer; when choosing plugins, rely on repository documentation and your own testing.

Links

If you already have GenBox locally, once you install the bundle as described above and complete the self-check, you can incorporate media generation into your agent workflow within conversations, and the output paths can be passed directly to subsequent steps for use.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye