Gyanano/dsh-grok-auth0

dsh-grok-auth

DeepSeek Harness plugin that reuses the official Grok CLI login (SuperGrok / X Premium OAuth) for an xai LLM route

AI Analysis

核心用途是允许 DSH 复用官方 Grok CLI 的登录状态来接入 xai 语言模型路由。适合拥有 X Premium 订阅并希望在 DSH 中使用 Grok 模型的用户。

Package
dsh-grok-auth
Version
0.1.2
License
MIT
Last updated
Aug 22, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Gyanano/dsh-grok-auth

Weekly usage

The settings card shows a best-effort weekly credit snapshot from the Grok proxy backend:

GET https://cli-chat-proxy.grok.com/v1/billing?format=credits

A failure of any kind degrades to dashes; it never blocks login or requests.

Host configuration

The bundle patch activates one Host row:

RowExportPurpose
llm-grok-authdsh-grok-authShared auth coordinator and the xai LLM route

All fields are optional. Set llmEnabled: false to keep the shared Login State coordinator available without owning an LLM route:

FieldDefaultMeaning
llmEnabledtrueRegister the xai LLM route
authJsonPath''$GROK_HOME/~/.grok/auth.jsonGrok auth file
credentialRefGROK_OAUTH_TOKENValue-free reference shown by the card
refreshLeadMs300000Refresh lead time in milliseconds (the CLI's own default)
grokCommandgrokCLI command used for browser login and version probing
displayNamexAI Grok (subscription)Provider label in model selectors
baseUrl''Endpoint override; empty keeps the catalog's api.x.ai/v1
timeoutMs120000Request timeout in milliseconds (0 disables it)
liveModelstrueOverlay the installed catalog with the account's live model listing

Do not also add an xai entry under llm-pi-ai.providers; duplicate route ownership is rejected with an explicit diagnostic.