dsh-grok-auth
DeepSeek Harness plugin that reuses the official Grok CLI login (SuperGrok / X Premium OAuth) for an xai LLM route
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Gyanano/dsh-grok-auth说明文档
阅读完整 README ↗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:
| Row | Export | Purpose |
|---|---|---|
llm-grok-auth | dsh-grok-auth | Shared 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:
| Field | Default | Meaning |
|---|---|---|
llmEnabled | true | Register the xai LLM route |
authJsonPath | '' → $GROK_HOME/~/.grok/auth.json | Grok auth file |
credentialRef | GROK_OAUTH_TOKEN | Value-free reference shown by the card |
refreshLeadMs | 300000 | Refresh lead time in milliseconds (the CLI's own default) |
grokCommand | grok | CLI command used for browser login and version probing |
displayName | xAI Grok (subscription) | Provider label in model selectors |
baseUrl | '' | Endpoint override; empty keeps the catalog's api.x.ai/v1 |
timeoutMs | 120000 | Request timeout in milliseconds (0 disables it) |
liveModels | true | Overlay 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.