Introduction¶
When working with 3D assets in DeepSeek Harness (DSH), the common approach involves manually opening Blender to export images or passing model paths to the LLM without the ability to visualize the geometry. The conversation interface lacks reproducible rendering results, and the Workbench lacks a unified model browsing entry point.
Here, we introduce the community plugin dsh-plugin-blender (Maintainer: s1lverex). It utilizes Blender’s headless rendering and format conversion on the Host side to return PNG attachments to the model. On the Web Workbench’s right sidebar, it provides a 3D Viewer panel based on three.js for loading exported models and viewing render strips. The plugin is categorized as a Client plugin (including Web sidebar injection). Currently, it has 0 GitHub stars, uses the MIT license, and is at version 0.1.0.
What is this¶
dsh-plugin-blender is a Cordis plugin pack for the DSH Web Profile. The Host half provides three model tools and two HTTP routes; the Client half registers a right sidebar tab. The Host relies only on Node built-in modules. The panel is a pre-built bundle (lib/client.js), meaning no client-side compilation is required during installation (when installed directly from GitHub).
- Directory Page: https://www.skillhub.cn/plugins/s1lverex/dsh-plugin-blender
- Source Code: https://github.com/s1lverex/dsh-plugin-blender
Core Features¶
Three Model Tools¶
| Tool | Function |
|---|---|
blender_status |
Reports the current Blender executable, version, working directory, and the count of models/renders listed in the panel. |
blender_render |
Renders 3D files to PNG and returns them as attachments to the model; .blend files retain their native cameras and lights, while imported formats are automatically framed. |
blender_export_glb |
Converts supported files to .glb and publishes them to the Viewer panel. |
Workbench 3D Viewer¶
The right sidebar tab blender-viewer-tab (or manually opened via the + page in the sidebar as “3D Viewer”): The three.js canvas supports orbit/zoom, includes a model selector, and displays a strip of Blender render images (click to view fullscreen).
The panel can directly load .glb, .gltf, .obj, .stl, and .ply. Files like .blend, .fbx, .dae, .usd, and .abc must be converted via blender_export_glb first; the panel will mark such entries.
HTTP Routes & Cordis Services¶
GET /blender/models: Lists entries available for display in the panel.GET /blender/file/<id>: Serves files based on scanned registration IDs; requests can only specify an ID, not a path, preventing access outside the scanned directories.
Routes are registered directly on the Web server without session tokens. By default, they are only accessible locally when bound to loopback; if the service is bound to 0.0.0.0, these list files become reachable over the network—in such deployments, enableViewer: false should be set.
Cordis exposes ctx.blender: detect(), version(), listModels(), render(request, signal), convertToGlb(request, signal).
Rendering & Invocation¶
Blender is invoked in a headless manner:
blender -b --factory-startup -noaudio --python <step> -- <json>
Each step prints a line DSH_BLENDER_RESULT {json} to stdout, which is parsed by the Host. The default render engine is Cycles (CPU), suitable for headless environments; EEVEE and Workbench are available but require GPU. The README states that a simple model rendered with Cycles at 960×720, 32 samples typically completes within one second.
Environment & Dependencies¶
- DeepSeek Harness 0.1.5 or compatible 0.1.x (requires Web Profile)
- Node.js 20+
- Blender 3.6+ (4.x recommended); Headless mode is sufficient, no display required.
Blender can be missing during plugin loading: if not installed, the tools will still register but will fail with actionable error messages; if .glb files exist in the models directory, the panel will still list them.
Blender detection order: blenderPath config → $BLENDER_PATH env var → blender in PATH → common install paths (Linux /usr/bin, /snap/bin, etc.; macOS Blender.app; Windows Program Files). blender_status reports the final selected path.
Installation & Activation¶
The Host resolves @deepseek-ai/dsh-tools from the Profile dependency closure; the plugin pack must exist as a real directory within this closure. Symbolic links may cause the realpath to resolve outside the closure, breaking imports.
Install from GitHub (Recommended)¶
The repository declares dsh.bundle and cordis.patch.yml in package.json, automatically composing the plugin row after installation; lib/client.js is committed, so no local build is needed.
dsh plugin --profile web add github:s1lverex/dsh-plugin-blender
Installing the bundle changes the directory tree, so a restart of dsh web is required (the live patch monitor does not cover bundle installations). The target machine must have Blender installed; everything else is provided within the package.
Local Checkout (Developers)¶
SRC=/path/to/dsh-plugin-blender
cd "$SRC" && npm install && npm run build
npm run deploy
And add the following to $DSH_HOME/profiles/web/cordis.patch.yml:
- insert:
- id: blender
name: 'dsh-plugin-blender'
The Web Profile defaults to patchReload: live, so usually no restart is needed after adding the line; however, if you later modify the Host-side lib/, you must re-run npm run deploy and restart dsh web.
Once a session exists, the tab will open automatically once.
Configuration¶
The Cordis plugin row requires at least id and name; the following keys are optional:
| Key | Type | Default | Description |
|---|---|---|---|
blenderPath |
string | '' |
Explicit path to the Blender executable; if empty, auto-detects. |
workDir |
string | $DSH_HOME/blender |
Directory for models/ and renders/; created on load. |
modelDirs |
string[] | [] |
Additional scan directories (max depth 4, max 400 files). |
timeoutMs |
number | 300000 |
Timeout for a single render; terminates the Blender process upon expiry. |
defaultWidth |
number | 960 |
Default render width. |
defaultHeight |
number | 720 |
Default render height. |
defaultSamples |
number | 32 |
Default Cycles samples. |
defaultEngine |
string | cycles |
cycles, eevee, or workbench. |
enableViewer |
boolean | true |
Whether to register the Viewer HTTP routes. |
Typical Usage¶
Environment & Manifest Check¶
The agent can call blender_status to confirm the Blender version, working directory, and the size of the panel list before deciding to render or convert.
Rendering PNGs¶
blender_render key parameters:
| Parameter | Description |
|---|---|
file |
The model or .blend file to render. |
output |
Output path or filename; defaults to a timestamped PNG in workDir/renders. |
width, height, samples, engine |
Override default resolution, samples, and engine for this render. |
frame |
Frame number for animated .blend files. |
camera |
Camera name within the .blend file. |
transparent |
Whether to use a transparent background (Alpha). |
After saving, the PNG is published as an attachment and appears in the Viewer render strip, allowing multimodal models to view the image directly.
Exporting GLB for Panel Browsing¶
blender_export_glb accepts file and optional name, writes to workDir/models/<name>.glb, exports with Y-up orientation, removes cameras and lights, and returns geometry statistics. Assets not natively supported by the panel should be processed through this tool before viewing in the sidebar.
Use Cases & Notes¶
Suitable for: 3D / Technical Artist workflows that require the Agent to perform headless rendering within DSH conversations, unified GLB conversion, and previewing models and render history in the Web Workbench sidebar.
Notes:
- The plugin runs with the current dsh process permissions; please read the source code and the MIT license before installing to ensure the Blender subprocess and HTTP routes comply with your security policy.
- When exposing the Web service to non-loopback interfaces, strictly evaluate
enableViewerand themodelDirsscan scope. - Community directories like SkillHub are independent sites with no official affiliation with DeepSeek / High-Flyer; the plugin is maintained by the community, and the version and behavior are subject to the GitHub README.
Conclusion¶
dsh-plugin-blender connects the Blender headless pipeline with DSH tools and the Workbench 3D Viewer: The Agent side can render, convert to GLB, and return images; humans can orbit and inspect models and render results in the sidebar of the same session. To install from GitHub, use the official command dsh plugin --profile web add github:s1lverex/dsh-plugin-blender and restart dsh web.
- Plugin Directory: https://www.skillhub.cn/plugins/s1lverex/dsh-plugin-blender
- Repository & Full Documentation: https://github.com/s1lverex/dsh-plugin-blender