dsh-plugin-subhub: Integrating Third-Party Subscriptions into DeepSeek Harness

Preface

DeepSeek Harness (DSH) extends its functionality through plugins. For users who already have third-party subscription accounts, it may be desirable to use the model capabilities covered by the subscription directly within DSH, rather than only configuring API keys. dsh-plugin-subhub is a third-party subscription integration plugin used to log in to third-party subscription accounts and use the model capabilities included in the subscription.

What This Is

dsh-plugin-subhub is maintained by kinoward and is licensed under MIT. It targets the web profile of DeepSeek Harness, integrating third-party subscription accounts into the DSH Web interface. The README lists support for OpenAI / ChatGPT, xAI (Grok), and GitHub Copilot subscriptions.

After installation, the login entry point is located at Settings → Third-party subscriptions.

Core Features

The following capabilities have been documented:

  • Integrates third-party subscription accounts and logs in via browser authorization.
  • Supports text chat, image understanding, image generation, and image editing.
  • Manage login and logout via Settings → Third-party subscriptions, with subscription models synced to the model selector.
  • Provides an optional CLI login script; the README states it currently covers OpenAI.

Installation and Enablement

First, verify that the environment meets Node.js 22.19 or higher. The plugin runs with the permissions of the current dsh process, so it is recommended to review the source code and the MIT license before installation.

  1. Install the plugin:
dsh plugin --profile web add github:kinoward/dsh-plugin-subhub
  1. Start the web profile:
dsh web
  1. Restart DeepSeek Harness after installation.

Typical Usage

Logging in to a Subscription Account

  1. Open Settings → Third-party subscriptions.

  2. Click Sign in on the target subscription card, such as OpenAI subscription or xAI Grok subscription.

  3. Open the authorization link in a browser and enter the one-time code. The code is valid for 15 minutes.

  4. Once authorization is complete, the page will synchronize automatically, and the subscription models will appear in the model selector.

Selecting Models and Adjusting Reasoning Level

Use the model selector in the bottom-left corner of the input area to view the current model and reasoning level. Select the desired model and adjust the reasoning level in the same menu. Available models and reasoning levels are determined by the subscription provider and account, and are synchronized automatically.

Image Understanding, Generation, and Editing

Upload an image in a session to ask about its content or extract text from a screenshot.

You can also generate an image using a description, such as:

A cinematic illustration of a neon street on a rainy night.

To edit an image, upload one first or use the most recently generated image, then enter an instruction like:

Change the sky to a sunset, keep everything else the same.

Editing will use the most recent image in the session.

Optional CLI Login

If you do not have a graphical interface, you can run the following from the profile directory:

node node_modules/dsh-plugin-subhub/login.js

The script will print an authorization link and a one-time code. After completing the browser authorization as prompted, open Settings → Third-party subscriptions once to make the subscription appear in the model selector. This script currently covers OpenAI; other providers can be logged in via the subscription page.

Suitable Scenarios and Notes

Suitable for:

  • Users who already have an OpenAI / ChatGPT, xAI (Grok), or GitHub Copilot subscription and want to use the subscription models in DSH Web.
  • Users who need text chat, image understanding, image generation, or image editing.
  • Users who need to complete login in a command-line environment and can use the CLI login script currently covering OpenAI.

Things to note before use:

  • Model availability, usage limits, and response speed are determined by the subscription provider and account, and services may be temporarily unavailable.
  • xAI login reuses the official Grok CLI OAuth flow, which is a community-supported path and may change at any time.
  • There is an inconsistency between the README and the package.json description regarding supported services: the README lists OpenAI / ChatGPT, xAI (Grok), and GitHub Copilot, while the package.json description only mentions current support for OpenAI / ChatGPT subscriptions, with more subscription services planned.
  • Login data is stored by default in ~/.dsh-plugin-subhub/<provider>-auth.json, and file permissions are restricted to the current system user.
  • The plugin does not read login data saved by other programs; you must log in within this plugin after installation.
  • Logging out deletes the currently used login file.
  • Do not share login files, one-time codes, or account information, and do not commit them to Git or Issue.

Conclusion

dsh-plugin-subhub solves the problem of integrating existing third-party subscriptions into DeepSeek Harness: first log in via browser authorization, then select a model in the model selector to complete text chat and image-related tasks. It is an MIT-licensed third-party plugin available in the DSH community directory, with source code and documentation accessible via the GitHub repository:

https://github.com/kinoward/dsh-plugin-subhub

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye