DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Xai Oauth — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins

dsh-xai-oauth

Xai Oauth

xAI (Grok/X subscription) OAuth login plugin for DeepSeek Harness

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add dsh-xai-oauth@0.1.3
READMECompatibilityVersions

Compatibility and provenance

Xai Oauth is published as dsh-xai-oauth and currently resolves to version 0.1.3. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
npm
Registry updated
9/24/2026

Versions

0.1.3stable
9/24/2026

Related plugins

Loading related plugins…

Latest
0.1.3
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
51.4 kB
Files
6
Surface
web
License
MIT
Source
npm
GitHub
★ 0
Weekly downloads
0
Last push
9/24/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in security-access.

Doctor@linxin666/dsh-doctorTransactional rescue mode for DSH profiles with a supervised launcher, isolated recovery capsule, deterministic repairs, health monitoring, and a local Web recovery consoleDSCODE@toddzheng024/dscode-bundleA complete DeepSeek coding agent with persistent shell, Ultra collaboration and automatic permission review.Plugin Subscriptionsdsh-plugin-subscriptionsUse ChatGPT (Codex), Claude, Grok (X Premium), GitHub Copilot, and Google Antigravity subscriptions as DeepSeek Harness LLM providers, with OAuth login from the web Settings pageCodex Subscriptiondsh-codex-subscriptionUse ChatGPT and Codex subscriptions in DeepSeek Harness with OAuth, quota, safe resets, web search, images, and Fast mode

README

dsh-xai-oauth

Native xAI(Grok / X 订阅)OAuth 登录插件 for DeepSeek Harness。

用 SuperGrok 或 X Premium 订阅登录 xAI,不需要 API key。插件完成 xAI 设备码(RFC 8628 device-code)授权,把 access token 注入 DSH 凭据 (XAI_OAUTH_TOKEN),并在 token 接近过期时用 refresh token 自动续期, 让 llm-pi-ai 的 xai provider 路由每次请求都能拿到有效令牌。

安装

从 npm 安装(推荐):

dsh plugin --profile web add dsh-xai-oauth

或从 GitHub 安装:

dsh plugin --profile web add github:tonylee2022/dsh-xai-oauth

本地源码安装(开发调试用):

dsh plugin --profile web add ./dsh-xai-oauth

然后重启 web profile(dsh --profile web)。重启后在 设置 → 模型提供方 旁会出现 xAI(Grok/X) 设置页:点击“登录 xAI”→ 复制用户码 → 点“打开授权页”在 xAI 官方页面登录并批准 → 自动完成授权。

原理

  1. 插件向 https://auth.x.ai/oauth2/device/code 申请设备码(客户端 id 与 scope 与 xAI CLI / pi-ai 一致,scope 含 grok-cli:access api:access)。
  2. 轮询 https://auth.x.ai/oauth2/token 直到用户批准,得到 access token + refresh token,原子写入 $DSH_HOME/xai-oauth.json (0600 / 0700)。
  3. 通过 ctx.credentials 把当前 access token 写入 XAI_OAUTH_TOKEN; bundle patch 给 llm-pi-ai 的 xai 路由配置 apiKeyEnv: XAI_OAUTH_TOKEN,每次请求解析最新值。
  4. 每 60 秒检查一次,距过期不足 5 分钟时用 refresh token 续期并重新写入。

配置(可选)

- id: xai-oauth
  config:
    path: /secure/path/xai-oauth.json   # 默认 $DSH_HOME/xai-oauth.json
    controlPort: 1457                    # 本机状态服务端口

安全边界

  • 令牌只保存在 Host 侧文件(owner-only 权限);Web 页面不接触令牌。
  • 本机控制服务只监听 127.0.0.1:1457,仅接受本地 DSH Web origin; 登出请求带 CSRF token。
  • access token 等效于该订阅的 API 凭据,请勿外泄。

License

MIT