插件目录 / UI & Skins / dsh-plugin-grok
dsh-plugin-grok
已验证 · 实测可装 toolazytoname
功能简介
DeepSeek Harness plugin: drive the local Grok Build CLI for text, image, and video.
可用 — 实测通过,早期项目
DeepSeek Harness plugin: drive the local Grok Build CLI for text, image, and video. 实测能干净安装、正常启动。早期项目,但功能可用。
「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。
README
dsh-plugin-grok
DeepSeek Harness plugin that drives your local Grok Build CLI — the same grok binary, whether you signed in with SuperGrok or exported an API key.
One worker, three jobs:
| Tool | When the model should call it |
|---|---|
grok_ask |
Text, review, planning, code |
grok_imagine_image |
Still images (image_gen / image_edit) |
grok_imagine_video |
Clips — still first, then image_to_video |
It is not grok2api and does not call Imagine over raw HTTP. It only execs local grok. Auth is whichever Grok Build already accepts.
Install
dsh plugin --profile web add github:toolazytoname/dsh-plugin-grok
Then restart dsh web and hard-refresh the browser.
If pnpm ≥ 10 blocks the git prepare script, allow the build once in that profile:
# in ~/.dsh/profiles/web/pnpm-workspace.yaml
allowBuilds:
dsh-plugin-grok: true
Or install from a local checkout:
dsh plugin --profile web add /absolute/path/to/dsh-plugin-grok
Prerequisite
- Install Grok Build so
grokis onPATH(usually~/.grok/bin/grok). - Provide one of these (same order the official CLI uses):
grok login— SuperGrok / grok.com session in~/.grok/auth.json. This wins if both exist.XAI_API_KEY— key from console.x.ai, for people who never log in. You can also putapiKeyon the plugin row incordis.yml; env is safer.
- In mainland China, set
https_proxy/HTTPS_PROXY(Clash mixed port, oftenhttp://127.0.0.1:7891). The plugin forwards those vars.
If you are logged in, a leftover XAI_API_KEY is unset on the child process so Imagine stays on the session pool instead of the API bill.
You do not need a live DSH session to develop or test this repo (npm test uses a stub grok).
What the model gets
grok_ask—grok --prompt-file … --always-approvewith the full coding toolset.grok_imagine_image— same CLI, tools restricted toimage_gen,image_edit. Returns absolute image path(s).grok_imagine_video— Grok has no text-to-video. The prompt tells Grok to stage a still, then callimage_to_video. Returns absolute video path(s).
Missing grok, missing both login and XAI_API_KEY, empty prompt, non-zero exit, or a media run with no parseable path all fail closed.
CLI (optional)
npx dsh-plugin-grok status
npx dsh-plugin-grok ask "summarize this repo"
npx dsh-plugin-grok image "a red cube on a table" --ratio 1:1
npx dsh-plugin-grok video "slow cinematic push-in" --duration 6 --resolution 480p
Known limits
- Login users spend SuperGrok / coding-plan quota. API-key users spend console credits. Image and video are slow either way; a key without Imagine access will fail closed.
- Video is still-then-animate, not native text-to-video. Default
6s/480p. Cap is720p. - One local
grokprocess per tool call. No ACP /grok agent stdiowrapper. - DeepSeek Harness is a developer preview; the Cordis
apply+ctx.tools.registercontract may drift. - This is the worker, not a kanban or budget butler.
Develop
npm install
npm run check
License
MIT
安装
装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:
dsh plugin add dshbase-catalog 然后对 agent 说「帮我装 dsh-plugin-grok」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。
该插件是 GitHub 源码(未发 npm)——直接从仓库装:
Web profile:
dsh plugin --profile web add github:toolazytoname/dsh-plugin-grok Headless(CLI)profile:
dsh plugin --profile headless add github:toolazytoname/dsh-plugin-grok 实测报告
验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。