Generate and edit images, generate video, and cut video locally through a GenBox server, with a zero-key test bench.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-genbox-plugin
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:liwei9745/dsh-genbox-plugin
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
Bring a local GenBox media server (FastAPI, multi-provider image and video generation) into DeepSeek Harness as agent tools: generate images, edit them, generate video, and cut video locally - plus the media library and prompt assistant.

The plugin drives the GenBox workbench on your own machine: providers, API keys, sizes and styles are managed in that UI. The plugin only hands those capabilities to the agent, and returns the local path of every generated image or video so the model can look at it.
Real output (produced by this plugin, no post-processing)
| Text to image | Inpainting (only the white box changes) | Variation (same base, repainted) |
|---|---|---|
![]() |
![]() |
![]() |
Precision editing: annotate on the canvas, watch the live preview (the annotations become a marked overlay for GenBox):

A parameter reference for every tool lives in docs/tools.md (generated from the code, so it cannot drift). Measured integration pitfalls, with root causes and source locations, are in docs/genbox-pitfalls.en.md, and the browser reachability coverage matrix in docs/browser-checks.en.md.
Verification and evidence (three entry points)
| What you want | Where | One command |
|---|---|---|
| Is it working right now? | docs/verification.md - a real run's raw output, 22 suites | node scripts/verify-all.mjs |
| Can the UI really be clicked and dragged? | docs/browser-checks.md - reachability matrix, 6 assertions | node scripts/browser/measure-splitters.cjs |
| What will bite me when integrating GenBox? | docs/genbox-pitfalls.md - 10 findings with source locations | - |
| What did we change in GenBox itself? | the upstream fix ledger in ROADMAP.md | - |
Every suite runs against the zero-cost mock provider by default; real-provider work is the explicit
GENBOX_REAL_PROVIDER=...opt-in and never spends a key implicitly. When a prerequisite is missing (GenBox, ffmpeg, Playwright, an installed profile) the suite skips and says how to provide it instead of pretending to pass.
Design notes live in PLAN.md; the internal layout and how to add a tool in docs/architecture.md; install, configuration and troubleshooting in docs/install.md (English: docs/install.en.md); the local development environment (including a zero-API-key mock provider) in docs/local-dev.md (Chinese); the release process in docs/releasing.md.
Quick start (30 seconds)
Three steps after installing - the agent can do all of them for you:
- Open the workbench: ask the agent to "open the GenBox workbench" (it calls
genbox_open_workbench), or open http://127.0.0.1:8892/ yourself. Providers, API keys and settings live in that UI. - Self-check: "run the GenBox doctor" (
genbox_doctor) - it lists what is missing and a next-steps checklist. - Use it: just say "draw a shiba inu in the snow with GenBox".
When GenBox is not running, step 1 says so explicitly and points at the start command in docs/local-dev.md.
Shape
DSH agent -> dsh-genbox-plugin (TypeScript) --HTTP--> GenBox FastAPI (127.0.0.1:8892) --> providers
GenBox is not modified: it already exposes a complete REST API, so this plugin is only a client and GenBox can be upgraded independently. GenBox is GPL-3.0; this plugin is MIT and contains none of its source.
Status
| Milestone | What | State |
|---|---|---|
| M0 | GenBox running locally | done - Python 3.11 venv, dev mode on 127.0.0.1:8892 |
| M1 | Plugin skeleton + genbox_health |
done - builds, loads in a real host, calls /api/status |
| M2 | genbox_image_generate |
done - verified end to end with a mock provider |
| M3 | editing, upscale, variations, cutout | done - i2i, inpaint, upscale and variations verified; cutout reports the missing checkpoint |
| M4 | genbox_video_generate |
done - verified end to end via a mock Volcengine provider |
| M5 | genbox_gallery, genbox_prompt_optimize |
done |
| M6 | packaging and distribution | done - pnpm pack -> dsh plugin add <tarball> -> [genbox] plugin loaded |
| G5 | local video editing (11 operations) and precision-edit annotations | done - every operation verified |
| M7 | published to npm | done - dsh-genbox-plugin@0.1.1, smoke-tested by generating an image with the npm-installed copy |
| M8 | plugin-market readiness | done - checked with the market's own modules: bundle patch present, host compatible, profile preflight 0 risks |
| M9 | real provider end to end | done - live gpt-image run: 844 KB PNG 1024x1024 text-to-image (50s) plus a real image-to-image edit |
| M10 | acceptance journey | done - verify-journey.mjs, 17 checks from doctor through generate/edit/annotate/video/cancel/ffmpeg/gallery |
Install
Any of these needs a running GenBox (default http://127.0.0.1:8892).
1. From a tarball (verified)
corepack pnpm pack
dsh plugin --profile <profile> add ./dsh-genbox-plugin-0.1.0.tgz
Because package.json declares dsh.bundle, the package name is appended to dsh.profile.bundles automatically.
On startup you should see:
[genbox] plugin loaded (baseUrl=http://127.0.0.1:8892)
2. From a local source checkout (development)
dsh --profile <profile> --patch E:/AI/GenBox-dsh/dev/overlay.cordis.yml
3. From npm (published)
# 0.1.0 is on npm; this installs prebuilt code with no build authorisation
dsh plugin --profile <profile> add dsh-genbox-plugin
dsh --profile <profile> --dump-config | Select-String genbox # confirm the plugin layer
The
desktopprofile is owned by the DSH Desktop application; installing into it goes through that app, and it takes effect after a restart. Use a separate profile such asdsh --profile genbox-dev --from-default-profile webwhile developing.
GenBox inside DSH NEXT (no browser detour)
Since 0.2.0 the plugin ships a native sidebar panel: GenBox's own web UI runs inside the DSH NEXT right sidebar.
- Open it with Ctrl+Shift+G, or the GenBox card under the sidebar's "new tab" list;
- the panel carries its own address bar (default
http://127.0.0.1:8892/, editable and remembered), a refresh button and "open in system browser"; - why not an iframe: GenBox serves
X-Frame-Options: DENYandframe-ancestors 'none', so a frame is always refused. On the desktop app the panel therefore uses DSH's official webview lease (dshDesktop.browser.acquire(workspace)→about:blank#<lease>+partition→loadURL), the same main-process approval and isolation policy the built-in browser uses; in a plain browser there is no such channel and the panel says so and points at the system browser.
Tools
| Tool | Purpose |
|---|---|
genbox_server |
start / stop / restart / inspect the local GenBox server from the chat (action=status|start|stop|restart). Finds the checkout, waits until the server answers, and only ever stops a process whose command line runs GenBox main.py |
genbox_doctor |
self-check: reachability, auth mode, provider/key readiness, writable output directory, ffmpeg presence, with fix hints |
genbox_open_workbench |
Print/open the GenBox workbench (the first thing to do after installing) |
genbox_health |
is GenBox reachable |
genbox_providers |
list providers, models and declared capabilities |
genbox_image_generate |
text to image; several providers side by side, multiple images, size and quality |
genbox_image_edit |
i2i, inpaint (white = edit), or precision_edit (canvas resize, or annotations: arrow/rectangle/ellipse/brush) |
genbox_image_upscale |
local upscale, no API key needed |
genbox_image_variations |
image variations |
genbox_cutout |
background removal (needs a checkpoint installed on the GenBox host) |
genbox_video_generate |
text to video, image to video, first/last keyframes |
genbox_video_edit |
local ffmpeg editing: trim, concat, speed, mute, resize, crop, volume, replace_audio, burn_subtitles, to_gif, extract_frame |
genbox_task |
check, download or cancel a background job; image and video tools accept background: true |
genbox_gallery |
browse the media library and copy items locally; filter by type, model, query or since |
genbox_prompt_optimize |
rewrite a rough prompt with GenBox prompt assistant |
Generated media lands in outputDir and the absolute paths are returned to the model, which can then open them with
the built-in read_image tool.
Ports: GenBox itself listens on 8891 by default (
main.py/start.ps1) while this plugin's documented dev command uses 8892. The client triesbaseUrl(8892) first, thenbaseUrlFallbacks(8891), and remembers the one that answered - so either way of starting the server just works, and a restart on a different port is picked up automatically. When neither answers, the error lists every URL it tried.
Rendering (UI cards)
The media tools implement presentCall, presentResult and output.presentationMeta:
the finished card is rebuilt from the persisted meta (safe on replay) and lists the produced files in locations.
To be honest: the built-in DSH Web Client does not consume these render intents yet, so nothing looks different there (it falls back to a generic card). Clients that implement the contract will render them. The shapes are pinned by the 12 assertions in
scripts/verify-presentation.mjs.
Configuration
| Field | Default | Meaning |
|---|---|---|
baseUrl |
http://127.0.0.1:8892 |
where GenBox listens |
adminKey |
empty | X-Admin-Key required by GenBox in production mode |
defaultProviderId |
empty | provider used when a call does not name one |
outputDir |
.genbox |
where generated media is written |
pollIntervalMs |
2000 | polling interval; video jobs use at least 5s |
taskTimeoutMs |
900000 | per-task deadline |
ffmpegPath / ffprobePath |
ffmpeg / ffprobe |
binaries used by genbox_video_edit |
videoEncoder |
empty (auto) | force an encoder, otherwise libx264 -> h264_mf -> libopenh264 -> mpeg4 |
nativeJobs |
false | experimental: hand background video jobs to DSH ctx.jobs, see docs/native-jobs.md |
Development
corepack enable
pnpm install
pnpm run typecheck
pnpm run build
# one runner for every suite; anything missing is reported as SKIP
node scripts/verify-all.mjs
# GenBox-independent checks (need ffmpeg on PATH)
node scripts/verify-annotate.mjs
node scripts/verify-video-edit.mjs
# checks that need a running GenBox plus the mock providers
node scripts/verify-tools.mjs
node scripts/verify-background.mjs
node scripts/verify-media.mjs
node scripts/verify-precision.mjs
node scripts/verify-doctor.mjs
There is also an evidence board that needs no model credentials:
node scripts/lab.mjs # http://127.0.0.1:3098/
Publishing checklist
pnpm buildthenpnpm pack; confirm the tarball containslib/,cordis.patch.ymland both READMEs.pnpm publish. Users then install prebuilt code, with no build authorisation needed. With 2FA enabled npm demands a one-time code:pnpm publish --otp=<code>, or use a granular token that is allowed to bypass 2FA. Afterwards runnode scripts/verify-published.mjsto read back the version,engines.dsh, keywords and tarball contents.- Add the
dsh-plugintopic to the GitHub repository (the official discovery mechanism; upstream does not accept external pull requests today). - Announce it in the DeepSeek Harness GitHub Discussions.
node scripts/publish.mjs runs the whole preflight and prints the exact commands.
License
MIT. GenBox is GPL-3.0: this plugin only calls its public HTTP API and does not link or copy its source.
Links
More in this category
Tencent/WeKnora#dsh-weknora★ 38466
Four read-only tools over a WeKnora knowledge base: list knowledge bases, hybrid passage search, reassemble one document's chunks in order, and WeKnora's own cited RAG or ReAct-agent answer with a resumable session id.
DayuanJiang/next-ai-draw-io#dsh-plugin★ 37249
Draws draw.io diagrams in DeepSeek Harness through the next-ai-drawio MCP server: the link in the reply opens a live preview in the right sidebar, you can edit the diagram by hand, and each AI change is a version you can restore. Node.js 18+; npx downloads the MCP server on first use.
yikart/AiToEarn#dsh-plugin-aitoearn★ 28879
Generate copy, images and short videos, and publish with one click to Douyin, Kuaishou, Xiaohongshu, WeChat Official, Bilibili, Facebook, TikTok and more, covering the full content lifecycle from creation to publishing and monetization.
superdesigndev/treg★ 9925
Tool catalog for agents: search ~2,600 external endpoints (SEO and SERP, backlinks, social, people and company enrichment, ad libraries, scraping) by the task you want done, read each one's parameters and per-call price, then call it with the credential injected server-side. Ships the skill plus an MCP row that stays disabled until TREG_TOKEN is set.
T-Auto/dsh-ops★ 6075
Provides bash, PowerShell 7, and high-performance Rust tools for DSH on Windows to reduce token usage.
Hithink-Tech-Org/Financial-API#hithink-finance★ 4723
Query Hithink Finance data in DeepSeek Harness, view charts in chat, and save refreshable dashboards.



Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.