dsh-xai-auth
Manifest validdsh plugin that signs in to an xAI SuperGrok subscription and serves it as the xai-supergrok model route.
dsh-xai-auth
English | 中文
Use an xAI SuperGrok or X Premium subscription in dsh through cli-chat-proxy. No XAI_API_KEY is needed. The built-in xai API route stays unchanged.
Install
Install from GitHub:
dsh plugin --profile <profile> add github:pzyyll/dsh-xai-auth
The repository includes the prebuilt host entry at dist/index.js. No build step is needed to install this plugin.
To rebuild a local checkout, install mise, then run these commands in the package directory:
mise trust
mise install
mise exec -- pnpm install --frozen-lockfile
mise exec -- pnpm run build
To install the local checkout, run this command from its parent directory:
dsh plugin --profile <profile> add ./dsh-xai-auth
Requires dsh >=0.2.0 <0.3.0. The default profile includes all required services.
Usage
- Open Plugins → dsh-xai-auth → Sign in.
- Open the verification page and enter the code to approve sign-in.
- Select an
xai-supergrok/...model to start chatting.
On the plugin page:
- Refresh models updates the model list.
- Usage shows subscription credits and billing details. Readings are cached for 2 minutes. The chat composer also shows the remaining percentage when an
xai-supergrokmodel is selected. - Sign out removes local credentials; it does not revoke the token at xAI.
Notes
- If you reload during sign-in approval, choose Sign in again.
- Listed model prices are short-context API prices, not subscription usage. Check Usage for subscription credits.
- Set
GROK_OAUTH_USE_API_URL=1to usehttps://api.x.ai/v1instead of cli-chat-proxy.
Development
Use Node.js >=24.9.0. After code changes, run:
mise exec -- pnpm run format
mise exec -- pnpm run lint
mise exec -- pnpm run typecheck
mise exec -- pnpm test
mise exec -- pnpm run build
Run mise exec -- pnpm run check for read-only checks. See AGENTS.md for coding rules.
License
Comments
Loading…
Similar plugins
by cyjyyd
Native SuperGrok / X Premium OAuth provider for DeepSeek Harness. Reuses local grok-bridge tokens; no xAI API key.
★ 0
↓ 431/wk
MIT
TypeScript
Sep 10, 2026
dsh plugin --profile web add dsh-llm-xai-oauthby TuDouPn
Unofficial DeepSeek Harness plugin: use a SuperGrok / X Premium subscription, Grok models, live usage, models and pricing.
★ 2
MIT
JavaScript
Nov 2, 2026
dsh plugin --profile web add @local/dsh-grok-xaiby tonylee2022
Sign in to an xAI Grok subscription with device-code OAuth, refresh the access token, and use it as the xai route credential without an API key.
★ 0
MIT
JavaScript
Oct 20, 2026
dsh plugin --profile web add dsh-xai-oauthby MirDie
xAI Grok SuperGrok / X Premium OAuth for DeepSeek Harness
★ 3
↓ 16/wk
NOASSERTION
JavaScript
Sep 23, 2026
dsh plugin --profile web add dsh-xaiby Eve-146T
dsh plugin for openai codex subscriptions that can pool multiple accounts.
★ 3
GPL-3.0
JavaScript
Sep 5, 2026
dsh plugin --profile web add dsh-openai-codex-authxAI Grok subscription chat: SuperGrok or X Premium+ OAuth, a displayed model subset, Responses through the Grok CLI proxy, and always-on server-side web_search and x_search.
★ 0
↓ 75/wk
dsh plugin --profile web add dsh-llm-grok