Introduction¶
Running agents or conversations in DeepSeek Harness (DSH) typically requires applying for a separate API Key for each vendor and writing it into the configuration. If you are already paying for subscriptions on platforms such as Kimi Code, Grok (X Premium), Google Antigravity, Zhipu GLM, etc., the same capabilities often come with a Web/API quota available after OAuth login—a separate line from the open platform API Key.
Below we introduce the community plugin dsh-plugin-subscription-oauth (repository EricFL1998/dsh-subscription-oauth). It performs each provider’s built-in OAuth / device code login within DSH, registers subscription accounts as ctx.llm routes, and displays plan quotas in Settings → Subscriptions; requests go directly to vendor endpoints, and tokens are stored locally. The maintainer is EricFL1998; the npm package name and plugin ID are dsh-plugin-subscription-oauth, licensed under MIT.
What This Is¶
In one sentence: it turns your already-paid-for AI subscription accounts into LLM Providers in your DSH sessions—log in once, select by model, and supports a cross-Provider auto fallback chain.
Compared with “finding your own Key and filling in environment variables,” the plugin’s focus is: the login flow is initiated by the plugin, the model list is read from each Provider’s endpoints and cached, models can be hidden and reordered in Settings, and the Composer chip shows real-time quota.
Supported Providers¶
The integration methods listed in the documentation are as follows (model IDs are determined by the list returned by each account’s endpoint, not hardcoded by the plugin):
| Provider | Capability Overview | Login Method |
|---|---|---|
| Kimi Code | e.g. kimi-for-coding, k3 (1M), k3-256k |
OAuth device flow (display code, confirm in browser) |
| Grok (X Premium) | Account model list (e.g. grok-4.7), including lightspeed fast variant |
Browser OAuth (automatic redirect) |
| Google Antigravity | Claude Sonnet/Opus, Gemini Flash, GPT-OSS and reasoning tiers | Google account OAuth |
| GLM (BigModel) | Models listed by the coding host (e.g. glm-5.3, glm-5.3-flash) |
ZCode browser login (polling) |
| Volcengine Ark | Coding models included in the plan | Volcano Engine SSO |
| Xiaomi MiMo | MiMo model list, two in-app model sets as fallback | Xiaomi account (QR code / password) |
| WorkBuddy (China edition) | Hy, GLM, Kimi, DeepSeek, MiniMax, etc. | Browser OAuth (Tencent) |
Models from all enabled Providers also enter the auto routing: when auto is selected in the model selector, the Harness tries them in your enabled order until a model responds successfully.
Core Features¶
OAuth Login and Local Credentials¶
Each Provider requires only one login—no need to find, paste, or rotate API Keys. The plugin executes the vendor’s own OAuth / device flow, writing tokens locally (the README example path: ~/.dsh/plugins/kimi-oauth/auth.json, permissions 0600, atomic writes). The plugin only communicates with each Provider’s host and OAuth endpoint; the README states there is no telemetry and no third-party relay.
Plan Usage and Model Selector¶
The Settings card and Composer chip display each account’s remaining quota (e.g. Kimi’s 5-hour / weekly windows and credits, Grok weekly credits, Antigravity’s Gemini / Claude buckets, GLM / Ark / MiMo / WorkBuddy credits, etc.), with progress bars and reset times.
Each Provider’s models appear in the session model selector with context windows and reasoning tiers; they can be hidden or drag-sorted by Provider in Settings, and you can also manually add model IDs not built into the current build. The model catalog comes from the Provider endpoint; refresh models in login or Settings re-pulls it; browsing the selector itself does not issue additional requests.
Fast / Lightspeed Variants¶
For models that support fast variants (e.g. Grok 4.7 corresponding to grok-4.7-build-fast), there is a lightning button next to the model selector to toggle; in the UI it appears as a reasoning tier, and the base model can still be selected separately.
Multi-Account and Auto Fallback¶
The same Provider can have multiple accounts logged in; when one account’s quota is exhausted, the plugin will use the next account. Auto fallback: when auto is selected, if the preferred model is rejected (renamed, rate-limited, quota exhausted, etc.), it jumps to the next enabled model; fallback does not continue after a streaming response has started.
Installation and Activation¶
The plugin targets the web profile (dsh.client.platform in package.json is web). The official installation command is:
dsh plugin --profile web add dsh-plugin-subscription-oauth
After installation, restart DeepSeek Harness and open Settings → Subscriptions.
To install a specific version or from GitHub (from the README):
dsh plugin --profile web add dsh-plugin-subscription-oauth@0.10.2
dsh plugin --profile web add github:EricFL1998/dsh-subscription-oauth
The runtime environment requires Node.js >= 20 (from engines in package.json).
Typical Usage¶
- Open Settings → Subscriptions. Each Provider has a card; logged-in ones are sorted first, with
autoat the top. - Click Connect on a Provider. The browser or device code initiates that vendor’s login; complete it in the browser; the card updates automatically.
- Select that Provider’s models or
autoin the Composer’s model selector; the chip displays the current Provider’s real-time usage. - Expand the card to manage accounts (default account, sign out, refresh token), toggle model visibility, drag-sort, add model IDs, and view the credentials file path and endpoint information.
Tip (from README): If you want to switch accounts within the same Provider, sign out first and then Connect; the account currently logged in in your browser is the one used for OAuth.
What Is Registered in DSH¶
| Surface | Content |
|---|---|
ctx.llm |
kimi, grok, antigravity, glm, ark, mimo, workbuddy and auto routes (models, reasoning, streaming) |
| Settings | Subscriptions section, one card per Provider |
| Model picker | Each Provider’s models + auto across all Providers |
| Composer chip | Real-time plan usage of the current Provider |
Hiding a Provider¶
If you don’t want to uninstall the plugin but don’t want a Provider’s models to appear in the selector, you can shorten the providers list in the profile’s cordis.patch.yml:
# $DSH_HOME/profiles/<profile>/cordis.patch.yml
plugins:
dsh-plugin-subscription-oauth:
providers: [kimi, grok, antigravity, glm, ark, mimo, workbuddy]
Just remove the items you don’t need; the default includes all the above implemented routes.
Use Cases and Caveats¶
Who it’s for: Developers who already have subscriptions on channels such as Kimi Code, X Premium Grok, Antigravity, Zhipu GLM, Volcano Ark, Xiaomi MiMo, WorkBuddy, etc., and want to uniformly select models and view quotas in DSH without maintaining multiple sets of API Keys.
Permissions and security: The plugin runs with the user permissions of the current DSH process, and credentials are stored locally in the ~/.dsh directory; before installation, it is recommended to review the source code and the MIT license in the GitHub repository to confirm compliance with your requirements. Subscription accounts are used only locally; the README states they are not shared between machines.
Ecosystem note: DSH adopts an “everything is a plugin” extension approach; the SkillHub directory page is a community site with no official affiliation with DeepSeek / High-Flyer.
Conclusion¶
dsh-plugin-subscription-oauth connects the OAuth login, model lists, and quota display of common subscription products to DSH’s ctx.llm and Settings UI, supplemented by multi-account pooling and ordered auto fallback. If your primary models come from the above subscriptions rather than open platform Keys, you can install it per the README and complete the connection in Settings → Subscriptions.
- Directory page: https://www.skillhub.cn/plugins/EricFL1998/dsh-subscription-oauth
- GitHub: https://github.com/EricFL1998/dsh-subscription-oauth