让 DSH agent 通过直连 TCP 通道驱动本地 Blender,提供 15 个工具:视口帧、自定义视角渲染、Python 执行、无头与作业卸载、事务回滚,以及 34 个 family / 228 个 op 的规划层。
安装
# npm 包(预构建)
dsh plugin --profile web add dsh-blender-plugin
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:sixtysevenlf/dsh-blender-plugin
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
该插件的 README 只有英文版本。
DSH × Blender connects DeepSeek Harness to Blender so an agent can build, inspect, validate, and export 3D scenes in a real Blender session. The normal workflow is GUI-first: start Blender, connect the addon, and let the agent look, change, and verify. When no GUI is available, background headless jobs (blender_run(kind="headless")) still execute scripts and return rendered frames.
Contents
Features
- GUI-first interactive modeling. The agent works against the Blender session you are looking at. It can inspect the scene, run Python in a persistent kernel, take a viewport or custom-angle frame, and iterate one step at a time.
- Headless jobs with visual feedback. If Blender has no GUI, the agent submits a background headless job (
blender_run(kind="headless")) and collects scripts, logs, and rendered frames from it. Live step-by-step interaction needs a GUI session; the job path exists so long or fresh-scene work still gets done. - Reference-image measurement. Measure silhouettes, holes, symmetry, readable features, and scale from a reference image before modeling. If no scale is known, the tools return pixel units instead of inventing millimeters.
- Parametric surfaces. Build reproducible surface meshes from sections (loft), a profile swept along a rail, or a four-sided patch; run continuity, curvature, self-intersection, and thickness checks; then export GLB. The same spec yields the same
spec_hashand vertices instead of hand-sculpted geometry. - Assembly audit and repair. Validate an assembly manifest, classify clashes, hidden overlaps, contacts, gaps, floating parts, and contained parts, apply safe repairs, gate the result, and export GLB, FBX, or OBJ with a manifest and merge ledger.
- Blockout and video-reference packs. Build low-poly blockouts from declarative parts, render orthographic and perspective reference views, and produce a turntable MP4 for video models such as Seedance.
- Visual acceptance and delivery gates. Compare renders against references from the same camera, report defects with crops and measurements, run defect-injection evaluation, and block delivery when the gate is not pass.
- Automation and long jobs.
blender_runsubmits render or headless work and returns a job id immediately; parameter searches and batch validation run inside the GUI session throughblender_op. Neither occupies the GUI for the whole run. - Native selection. Select objects or collections in Blender and send them into the current DSH draft.
- Works in dsh-TUI too. In dsh-TUI, a Blender selection is attached to your next message as a context chip; the footer shows the Blender channel state (connected / AI paused / rendering / jobs);
@mentions scene objects, materials, and collections; and/blender status|doctor|jobs|presencechecks the channel or lists which agents observed Blender, without going through the model. Each part needs the matching dsh-TUI seam and stays off when the seam is missing.
Quick start
Before anything else: install the bundled addon first. Use the addon shipped in this repository: blender/addon/dsh_blender_bridge.zip. It must be your only Blender-side agent bridge: do not install or run MCP for Blender, blender_mcp, or any other addon that serves Blender over its own socket. The 3.1 addon dials the Gateway and opens no inbound port, but a legacy MCP bridge still listens on 127.0.0.1:9876; two Blender-side agent bridges confuse the host. Unrelated addons (modeling, materials, rendering, asset libraries) are fine and are neither checked nor blocked. Install and enable this addon in Blender before the other steps. If the installation below does not work, first check that this exact addon is installed, enabled, and connected.
Requirements
- DSH (DeepSeek Harness) installed and working.
- Node.js 24.9 or newer is needed only for source builds; installing from npm uses the runtime bundled with DSH. Node.js 24.9 is the minimum supported version; CI runs on Node 24.
- Blender 4.2 LTS is the tested version. Blender 4.x may work; Blender 5.x is not yet validated. GUI mode requires the bundled addon (install it first); headless mode only needs the Blender executable.
- Addon compatibility: the bundled addon is the only required addon and the only supported agent bridge. Other addons do not conflict; an old
MCP for Blender/blender_mcpis unsupported (it still listens on 127.0.0.1:9876) — disable it, no need to uninstall. - Optional: a DSH source checkout when rebuilding the host side; otherwise the build links against this repository's installed dependencies.
Option A: install from npm
This is the supported installation path. It does not require git clone, npm ci, or npm run build.
Install the bundled addon first. Download
dsh_blender_bridge.zipfrom the latest GitHub Release, then in Blender openEdit > Preferences > Extensions > Install from Disk..., select the zip, enable DSH Blender Bridge, open theNpanel in the 3D view, and click Connect.Install the DSH plugin from npm. Choose the path for your DSH host:
DSH Web or DSH TUI: install into the profile you actually run:
dsh plugin --profile <profile> add dsh-blender-plugin@3.1.0-alpha.1Then restart DSH in step 3.
DSH Desktop: open the Plugins page and install the bundle
dsh-blender-plugin@3.1.0-alpha.1. DSH Desktop applies the bundle from the Plugins page and does not need a DSH restart.
Restart DSH (DSH Web and DSH TUI only). If you installed from the DSH Desktop Plugins page, skip this step.
Verify the installation. The only acceptance criterion for the GUI route is
doctorreturningkindequal took:curl -sS http://127.0.0.1:39877/doctorGUI route:
curl -sS http://127.0.0.1:39877/healthand/doctor;doctor.kindmust beok.Headless-only route (no addon):
blender_run(action="submit", kind="headless", script="print('ok')")followed bywait/collectmust return the job and its outputs.
The addon remains the only supported Blender-side agent bridge. Disable any other Blender-side agent bridge (a legacy MCP bridge still serves port 9876); ordinary modeling, material, rendering, and asset addons are unaffected.
Option B: ask an AI agent
Copy this prompt into an agent that can run commands:
First install and enable the bundled addon dsh_blender_bridge.zip
from the latest GitHub Release. If a bridge addon is already enabled
(MCP for Blender / blender_mcp, or anything else serving Blender on
), disable it; do not uninstall the user's other addons and
do not ask them to.
Then install the DSH × Blender plugin from npm for my DSH profile:
dsh plugin --profile <profile> add dsh-blender-plugin@3.1.0-alpha.1
Read docs/AI-安装提示词.md first, follow it exactly,
and finish with the acceptance check: doctor must return kind=ok for the
GUI route, or a blender_run headless submit + wait must return outputs for the headless-only route.
Do not skip the check and do not claim success without it.
Fetch the full install prompt locally:
curl -fsSL https://raw.githubusercontent.com/sixtysevenlf/dsh-blender-plugin/main/docs/AI-安装提示词.md -o AI-安装提示词.md
Install the standalone modeling skill (only needed for hosts that do not load the plugin; DSH gets it bundled):
curl -fsSL https://raw.githubusercontent.com/sixtysevenlf/dsh-blender-plugin/main/skills/blender-modeling/install.sh | bash
Option C: build from source (developers)
Install the bundled addon first.
Download blender/addon/dsh_blender_bridge.zip from the blender/addon/ folder of this repository. In Blender, open Edit > Preferences > Extensions > Install from Disk..., select that zip, enable DSH Blender Bridge, open the N panel in the 3D view, and click Connect. The addon dials the DSH Gateway at 127.0.0.1:39877 after Connect; it does not listen on a port. Replacing or upgrading the addon requires a Blender restart: there is no hot reload, and a 3.0.x addon keeps its old 9876 listener until Blender exits. If you previously installed the single-file
dsh_blender_bridge.py, disable and remove it first: 3.1 installs only this Blender extension.Keep this addon as your only agent bridge. If
MCP for Blender/blender_mcp(or any other Blender-side agent bridge) is enabled, turn it off — uninstalling is not required. Your other addons can stay. If the rest of the installation does not work, check this step first.Developer path: clone the repository and build it.
lib/is a build artifact and is not committed, so a fresh clone must build once before use.npm run setup:devinstalls the npm and Python development dependencies (creating.venv); unless you are developing the plugin, use the npm install above.git clone https://github.com/sixtysevenlf/dsh-blender-plugin.git cd dsh-blender-plugin npm run setup:dev npm run build # Optional: DSH_CHECKOUT=/path/to/dsh-harness npm run build links DSH host packagesAdd the package to your DSH profile as a bundle. Link the checkout into the profile, then add the dependency and bundle entry to the profile package.json.
ln -s /absolute/path/to/dsh-blender-plugin <profile>/node_modules/dsh-blender-pluginProfile package.json:
{ "dependencies": { "dsh-blender-plugin": "link:/absolute/path/to/dsh-blender-plugin" }, "dsh": { "profile": { "bundles": ["dsh-blender-plugin"] } } }Validate the profile and restart DSH:
dsh --profile <profile> --dump-configVerify the installation.
GUI route:
curl -sS http://127.0.0.1:39877/health curl -sS http://127.0.0.1:39877/doctorThe only acceptance criterion for the GUI route is doctor returning kind equal to ok. If it does not, the plugin is not installed correctly.
Blender and the Gateway are started by the host: open Blender yourself, enable the addon, and click Connect. There is no model-facing launch tool in 3.1.
Headless-only route (no addon):
blender_run(action="submit", kind="headless", script="print('ok')") blender_run(action="wait", id="<jobId>")A returned job whose outputs include the script log means the headless path is working. The doctor bpy round-trip is expected to be unreachable in this mode.
Tools
The plugin exposes exactly 6 model-facing tools; all planning, audit, assembly, export, and evaluation operations live behind blender_op (36 families / 239 ops), so the surface stays small.
| Tool | What it gives you |
|---|---|
| blender_session | GUI session lifecycle and ownership: list/status/doctor, attach, claim/release, grant/revoke write scopes, pause state, presence, and action=txn snapshots/marks for rollback. Blender and the Gateway are host-managed. |
| blender_op | The capability catalog (op="catalog", 36 families / 239 ops) and the execution surface for modeling, audit, assembly, delivery, and evaluation; also `action=loop |
| blender_py | Runs Python in the attached GUI session with a persistent kernel; see=true returns a frame. GUI-only: there is no headless fallback. |
| blender_see | GUI capture only: `viewpoint=viewport |
| blender_run | The only job entry point: action=submit with `kind=render |
| blender_inspect | Lists the addon's executable read-only commands and runs one with command= + args=; removed write commands return a wrong_tool hint. |
Old 3.0 tool names are no longer registered; the migration table is in MIGRATIONS.md §0.3.
Agent presence frusta
After each successful blender_see, the Gateway freezes that observation's pose, projection matrix, and dimensions into presence. Moving the viewport later does not move the cone: it stays where the agent looked. Blender draws a blue frustum and a short-id label (A plus a number by default). The Agent Presence section of the N-panel can change the colour, switch to the Gateway's per-agent palette, show or hide short ids, and hide individual cones. Short ids are display-only; the backend identity is a stable hash.
The DSH Web client provides a Blender Presence tab in the right sidebar (also reachable from its guide page), listing each agent's short id, latest activity, and observation mode. Running /blender-presence in the composer opens that tab without submitting a message. A full=true whole-window capture has no independent observation pose; it shows a transient status-bar notice and never overwrites the previous cone.
Virtual display (virtual-gui)
On Windows and Linux the Gateway can launch an isolated Blender GUI for the agent. It defaults to auto on Windows after the V0 acceptance and is opt-in preview on Linux. Agent starts are still denied by default: the plugin config allowVirtualGui defaults to false, and a human must enable the switch in the DSH Blender Presence tab (the switch is runtime-only and resets on reload). The tab also shows how many user-started Blender windows are connected. Missing prerequisites never start silently: blender_session start kind=virtual-gui returns stage=config with the exact command, and /blender doctor --fix (or the add-on preferences button) installs only the same plan. One-click is limited to xvfb on Ubuntu 22.04/24.04 and Debian 12 through pkexec; VirtualGL must come from its official repository, GPU drivers are detected but never installed, and unsupported platforms get the manual command. See configuration §5.7.
Documentation
- Surface algorithm: skills/blender-modeling/references/曲面算法.md
- Step-by-step guide: docs/操作教程.md
- Configuration: docs/配置参考.md
- AI install prompt: docs/AI-安装提示词.md
- Deployment SOP: docs/部署SOP.md
- Third-party checklist: docs/给第三方的安装清单.md
- DSH upgrade compatibility: docs/DSH-更新适配.md
- Architecture: docs/architecture.md
- Modeling skill: skills/blender-modeling/
- Release notes: GitHub Releases and CHANGELOG.md
Troubleshooting
| Symptom | What to do |
|---|---|
| doctor does not return kind equal to ok | Check that Blender is running and the addon is connected. For the GUI route this is the only valid acceptance check. |
| No GUI is available | Live interaction needs a GUI session. Submit background work with blender_run(kind="headless") and collect it with action="wait"/collect; rendered frames come from the job outputs. |
| Another session is writing to the same scene | Claim a write scope with blender_session(action="grant", scopes=...), or attach a separate GUI session; parallel jobs are fine through blender_run. |
| An old MCP for Blender / blender_mcp addon is still enabled | Disable it (uninstalling is not required) and use the bundled DSH Blender Bridge addon; the 3.1 bridge dials the Gateway, but two Blender-side agent bridges still confuse the host; the legacy MCP bridge listens on 127.0.0.1:9876. |
| Images are generated but not attached | Update to the latest build; the Windows path fix is included. If it persists, open the returned path directly. |
| Followed the steps and it still does not work | Check the bundled addon first: only blender/addon/dsh_blender_bridge.zip is supported, and it must be enabled and connected. |
Development
- Node.js 24.9 is the minimum supported version; CI runs on Node 24.
- Development environment:
npm run setup:devafter cloning discovers Python 3.11+, creates or reuses.venv, installsrequirements-dev.txt,requirements-typecheck.txt, and npm dependencies (npm ci --legacy-peer-depsonly whennode_modulesis missing).npm run setup:dev -- --checkverifies without writing;npm run setup:dev -- --forcerecreates.venv..venvandnode_modulesare never committed. - Python tests need a virtualenv with
pytest(created bynpm run setup:dev). Tests auto-detect.venv; pointPYTHONat another interpreter when needed (PYTHONIOENCODING=utf-8andPYTHONUTF8=1on Windows); tests import the TypeScript sources directly. - The complete signal is
npm run gate(exit 0 pass, 1 fail, 3 blocked). The canonical command table — build, typecheck, test, lint, pack — isAGENTS.md§1.lib/is rebuilt fromruntime/andsrc/; never hand-edit it. - Test layers, fixtures, and per-layer commands:
tests/README.md. - Contribution workflow:
CONTRIBUTING.md·docs/zh/CONTRIBUTING.md. - Bundled skill source:
skills/blender-modeling/.
Support
If this project is useful to you, you can support its development on Afdian (爱发电): https://afdian.com/a/sixtysevenlf
License
The DSH host plugin is BSD-3-Clause (see LICENSE). The bundled Blender extension under
blender/addon/ is GPL-3.0-or-later (see blender/addon/LICENSE) and contains
MIT-licensed code derived from ahujasid/blender-mcp, whose
copyright and MIT notice are preserved in blender/addon/NOTICE. The bundled modeling skill is MIT; see
skills/blender-modeling/LICENSE and NOTICE.md. Blender is a trademark of the Blender Foundation.
链接
同类插件
Tencent/WeKnora#dsh-weknora★ 38705
把 WeKnora 知识库接入 dsh 的四个只读工具:列出知识库、混合检索原文片段、按顺序还原单篇文档,以及直接取用 WeKnora 自己带引用的 RAG 或 ReAct agent 回答(含可续聊的 session id)。
DayuanJiang/next-ai-draw-io#dsh-plugin★ 37321
dsh 的 draw.io 绘图插件:通过 next-ai-drawio MCP 服务器作图,点回复里的链接在右侧栏打开实时预览,可以手动修改图,AI 的每次修改都是可以恢复的版本。需 Node.js 18+,首次使用由 npx 下载 MCP 服务器。
yikart/AiToEarn#dsh-plugin-aitoearn★ 28986
帮你生成文案/图文/短视频,一键分发抖音、快手、小红书、公众号、bilibili、Facebook、TikTok 等海内外平台,覆盖自媒体运营从内容创作,内容发布到内容变现全链路。
superdesigndev/treg★ 10137
给 Agent 的工具目录:按「要做的事」检索约 2,600 个外部接口(SEO 与 SERP、外链、社交、人物与公司信息补全、广告库、抓取),查看参数与单次调用价格后直接调用,凭据由服务端注入。附带技能,MCP 行在未设置 TREG_TOKEN 前保持禁用。
T-Auto/dsh-ops★ 6125
为 Windows 的 DSH 提供 bash、PowerShell 7 及 Rust 高性能工具,减少 token 消耗。
Hithink-Tech-Org/Financial-API#hithink-finance★ 4781
在 DeepSeek Harness 中查询同花顺金融数据、在对话中查看图表,并保存可刷新的看板。
社区评论
评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。