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

包名
dsh-grok-auth
版本
0.1.2
许可证
MIT
最近更新
2026年8月22日

安装

$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.