DeepSeek Harness 插件

dsh-llm-grok-oauth

Grok (xAI) subscription OAuth provider for DeepSeek Harness: one-click login in Settings → Models, token refresh, live catalog, streaming over cli-chat-proxy.grok.com(英文原文)

跳到安装方式

来源信息

GitHub 仓库
wangyaominde/dsh-llm-grok-oauth
最近更新
2026年8月16日
分类
插件市场与管理
GitHub stars
0
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/wangyaominde/dsh-llm-grok-oauth
插件名:dsh-llm-grok-oauth
作者:wangyaominde

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器3 个文件
README.md来源说明 · 只读预览

<p align="center"> <img src="docs/en/banner.jpg" alt="dsh-llm-grok-oauth" width="920"> </p>

<h1 align="center">dsh-llm-grok-oauth</h1>

<p align="center"> DeepSeek Harness plugin: sign in with a Grok account under Settings → Models<br> and run models on a SuperGrok / X Premium+ subscription. No xAI API key. </p>

<p align="center"> English · <a href="README.zh.md">简体中文</a> </p>

<p align="center"> <a href="https://github.com/topics/dsh-plugin"><img src="https://img.shields.io/badge/topic-dsh--plugin-1f6feb?style=flat-square" alt="dsh-plugin"></a> <a href="https://github.com/wangyaominde/dsh-llm-grok-oauth/stargazers"><img src="https://img.shields.io/github/stars/wangyaominde/dsh-llm-grok-oauth?style=flat-square" alt="stars"></a> <a href="LICENSE"><img src="https://img.shields.io/github/license/wangyaominde/dsh-llm-grok-oauth?style=flat-square&label=license" alt="MIT"></a> <a href="https://github.com/deepseek-ai/deepseek-harness"><img src="https://img.shields.io/badge/dsh-0.1.0--rc.6+-111827?style=flat-square" alt="dsh"></a> <img src="https://img.shields.io/badge/API%20Key-not%20required-2ea44f?style=flat-square" alt="no api key"> </p>

---

The built-in Grok provider in DSH accepts an API key only. This plugin adds account login on the same page. The control is at:

Settings → Models → Grok (xAI 订阅)

<p align="center"> <img src="docs/en/models-login.jpg" alt="Settings → Models → Grok (xAI subscription)" width="720"> </p>

Install

Requires DeepSeek Harness and pnpm. If dsh is not on PATH, use npx:

npx @deepseek-ai/dsh plugin --profile web add github:wangyaominde/dsh-llm-grok-oauth

If the dsh command is already installed:

dsh plugin --profile web add github:wangyaominde/dsh-llm-grok-oauth

Restart dsh web after installation. Client modules are loaded at process start; the login button will not appear until restart.

If pnpm warns about missing peers such as @deepseek-ai/cordis, ignore it. Those packages are provided by the DSH runtime and should not be installed into the plugin directory.

Usage

Open Settings → Models and click Sign in with Grok on Grok (xAI 订阅). Browser sign-in is the default. The official Grok CLI is not required.

1. Complete xAI authorization in the browser. The confirmation code is issued by xAI for that attempt; it is not shared across machines or clicks. 2. Return to a session and select a Grok model. If the current session still targets DeepSeek, start a new session before sending.

The DSH process must be able to reach https://auth.x.ai and https://cli-chat-proxy.grok.com. Sign-in, the model catalog, and chat share the same proxy stack (HTTPS_PROXY or the macOS system proxy). If a browser can open those hosts but sign-in or sending a message still fails, set the proxy in the environment that launches dsh web and retry.

If the official Grok CLI is already signed in, that session is reused silently. Machines without the CLI are not asked to run grok login.

Sign-out is on the same row. It clears this plugin's session immediately and does not delete the official Grok CLI login file. CLI reuse stays off until Sign in is clicked again. If an older build signs back in immediately after Sign out, or sign-in works but chat fails with TRANSPORT, update to 0.2.10 and fully restart dsh web.

Requirements

ItemRequirement
DeepSeek Harness0.1.0-rc.6 or later
AccountSuperGrok or X Premium+
Official Grok CLInot required. Reused only when already signed in
xAI API keynot required

Relation to the API key field

This pluginBuilt-in Grok config
LocationSettings → ModelsSettings → Models
AuthenticationGrok account loginAPI key
BillingSuperGrok / X Premium+xAI API credit

Both may be configured at the same time. This plugin does not write or overwrite a saved API key.

Uninstall

npx @deepseek-ai/dsh plugin --profile web remove dsh-llm-grok-oauth

Restart dsh web after uninstall.

License

[MIT](LICENSE)