DeepSeek Harness plugin

dsh-llm-grok-sevncz

x.ai Grok 4.6 model access for DeepSeek Harness: registers the xai-custom provider (image input, tool calls, reasoning_content, reasoning-effort levels), API key via the DSH credential store.

Jump to install

Source facts

Repository
Sevncz/dsh-llm-grok
Latest update
Aug 21, 2026
Category
Tools & Capabilities
GitHub stars
1
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/Sevncz/dsh-llm-grok
Plugin: dsh-llm-grok-sevncz
Author: Sevncz

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer2 files
README.mdSource · read only

dsh-llm-grok

把 x.ai Grok 4.6 接到 DeepSeek Harness:图片输入、工具调用、思考过程流式显示、四档推理等级(low / medium / high / xhigh)。

路由名是 xai-custom,不是 xai。内置 dsh-llm-pi-ai 已占用 xai,同名会启动失败(DUPLICATE_DIRECTORY)。

安装

前置:已安装 DSH。OAuth 登录还需要本机 grok CLI;只贴 API Key 则不需要。

git clone https://github.com/Sevncz/dsh-llm-grok.git
cd dsh-llm-grok
./install.sh

然后重启 DSH(npx @deepseek-ai/dsh web)。dsh --profile web --dump-config 里应出现 # == dsh-llm-grok

不要手改 cordis.patch.yml 来插入本插件;用户层只按 id 覆盖配置。

pnpm add 时的 missing peer warning 属预期,由 scripts/link-host-peers.mjs 链到宿主已有的模块。不要把这些 peer 装进本仓库。

授权

对齐 cc-switch 的托管 xAI OAuth:DSH 是唯一写入者。

  • 登录走 xAI Device Code(不 spawn grok login,不写 ~/.grok/auth.json
  • 磁盘只存 refresh_token$DSH_HOME/xai_oauth_auth.json0600
  • access token 只放内存,距过期 60 秒内静默刷新
  • 刷新失败把账号标成需重登,orb 显示「需重登」,账号还在

输入框右侧的 xAI 按钮,两种方式:

1. 登录官方账号:点按钮 → 浏览器打开 accounts.x.ai → 确认设备码。 2. API Key:在 console.x.ai 创建后粘贴保存(长期 xai-... key,优先于 OAuth)。

撤销授权只清 DSH 自己的 store,不影响 grok CLI / grok-app。

也可直接写长期 key(改 key 无需重启):

XAI_API_KEY: sk-...

已有会话如果绑的是内置 xai 路由,会落到内置适配器;要用本插件,请选 xai-custom/grok-4.6

配置

组合包自带默认值。要改某项,在 ~/.dsh/profiles/web/cordis.patch.ymlid: llm-grok 整块覆盖 config(不是深合并):

默认说明
apiKeyEnvXAI_API_KEY凭据引用名
baseURLhttps://api.x.ai/v1OpenAI 兼容端点
modelsgrok-4.6模型目录
streamIdleTimeoutMs300000流空闲超时
logLeveloffoff / summary / full
retryPolicy默认重试策略

规格:500K context;约 $2/M input、$6/M output。改代码后需重启宿主。