dsh-llm-xai-oauth
Run the following command in DeepSeek Harness:
dsh plugin install cyjyyd/dsh-llm-xai-oauth
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install cyjyyd/dsh-llm-xai-oauth in your DeepSeek Harness terminal to install this plugin (source: https://github.com/cyjyyd/dsh-llm-xai-oauth); after installation, log in via OAuth to start using SuperGrok as an LLM provider.
About this plugin
If you already subscribe to SuperGrok or X Premium and do not want to pay separate xAI API metering, this plugin lets DeepSeek Harness use your subscription as a native LLM channel end to end: OAuth device-flow login, on-disk token storage, and on-demand refresh — all without touching the billable api.x.ai endpoints. It also solves a subtle but common problem: SuperGrok access tokens live only about an hour, and the dsh process itself does not refresh them offline. The plugin ships an independent daemon mode that re-reads the token roughly once a minute and refreshes five minutes before expiry, so you are not stuck with cascading 401s on /usage and chat after a laptop sleeps overnight. On the feature side, the plugin registers a live SuperGrok adapter route inside Harness, pulls the remote model catalog at startup (currently grok-4.6 with xhigh reasoning, grok-4.5, and grok-4.3), supports 500K to 1M context windows, and proactively raises CONTEXT_WINDOW_EXCEEDED when the remaining window cannot hold the requested max_tokens — handing off to Harness overflow compaction instead of letting a long conversation die with a generic 400. Every proxy, client ID, and endpoint is overridable via environment variables, and settings hot-reload without restarting dsh. It is aimed at developers who already run DSH with dsh-ssh-tui, hold a SuperGrok or X Premium subscription, and want Grok models in daily chat and long-form reasoning — particularly on remote SSH hosts or CI boxes where token expiry is a recurring headache.
Use Cases
- Drive daily Grok conversations with a SuperGrok or X Premium subscription, no xAI API metering
- Keep OAuth tokens alive overnight on a remote SSH host via a standalone daemon
- Switch to Grok models in dsh-ssh-tui for 500K-context long-form reasoning
Best For
- Developers with a SuperGrok or X Premium subscription who want to skip xAI API fees
- Terminal users running DSH with dsh-ssh-tui who need Grok models
- CI or headless pipelines that rely on stable Grok access without manual token management
Related Plugins
A network security red-team benchmark plugin for DeepSeek-V4.1/Flash featuring dual-layer kernel injection and zero-tool architecture for controlled model safety assessment.
A security red-team prompt plugin for DeepSeek-V4 that uses code-formal mapping and zero-trigger system prompts to enable unconditional output, intended for authorized testing and research only.
Adds an Auto approval mode on the official workspace-write sandbox, classifying semantic risks, asking when ambiguous, and denying destructive operations.
Undo/rollback system for DSH: config & plugin snapshots, one-click undo/redo/restore, message-level revert, secret masking, safe mode, and offline WebUI/GUI/CLI rescue tools for when DSH won't start.