dsh-plugin-oauth-subs: Reusing Subscription Accounts for Model Inference in DeepSeek Harness

Introduction

Running agents or conversations in DeepSeek Harness (DSH) typically requires configuring model APIs: providing your own Key, using a gateway, or connecting to various OpenAI / Anthropic compatible endpoints. If you already have a subscription or local login state for products like ChatGPT Codex, Cursor, GitHub Copilot, or Claude, purchasing a separate inference Key is often redundant and hard to maintain.

The community plugin dsh-plugin-oauth-subs targets this scenario: it connects various “Subscription / OAuth” accounts to DSH, transforming requests into api formats supported by DSH, such as openai-responses, openai-completions, and anthropic-messages, via a local loopback proxy or direct connection. The following sections introduce its positioning, capabilities, and installation usage; facts are subject to the repository README and package.json.

What is this

dsh-plugin-oauth-subs is an OAuth subscription plugin for DSH, version 0.0.110, licensed under MIT.

Currently, the repository lingdong0128-sys/dsh-plugin-oauth-subs maintained by lingdong0128-sys on GitHub is a backup mirror of the original project xxww0098/dsh-plugin-oauth-subs: the original repository has been taken offline (404), and this mirror was preserved from the locally installed dsh-plugin-oauth-subs@0.0.110 on 2026-10-21. Its functionality is identical to the original; copyright and credits belong to xxww0098. The SkillHub directory page categorizes it as “Model Inference”.

In short: Log in or import existing credentials within the Harness, and use subscription quotas to drive model calls on the aforementioned api routes.

Core Features

Supported Providers (Families)

The providers listed in the README and their approximate correspondence to DSH api and upstreams are as follows (authentication methods vary by vendor, including PKCE, device-code, pasting callbacks, importing local files, etc.):

Provider DSH api Description (Summary)
ChatGPT Codex openai-responses Local PKCE, upstream Codex Responses
xAI Grok openai-responses device-code or PKCE
GLM · Z.ai / BigModel anthropic-messages ZCode CLI polling, etc.
AWS Kiro openai-completions Social PKCE / Builder ID / IdC, etc.
Google Antigravity openai-completions Google OAuth local callback
Cursor openai-completions PKCE or import local Cursor
Ollama Cloud openai-completions API Key
Kimi Code Plan openai-completions device-code or import ~/.kimi-code/...
GitHub Copilot openai-completions device-code or import Copilot hosts
Devin Agent / Cline openai-completions PKCE or device-code, import local config
Claude (Anthropic) anthropic-messages Claude.ai / Console PKCE, read-only import of Claude Code login
OpenCode Go openai-completions / openai-responses API Key, direct connection to opencode.ai

Subscription-based providers are forwarded via a local loopback proxy; OpenCode Go connects directly to its API. The default proxy port is 8318 (configurable via config.port for id: oauth-subs in the profile’s cordis.patch.yml).

Import Existing Credentials

The plugin supports importing from common local paths, such as ~/.codex/auth.json (Codex), ~/.grok/auth.json (Grok), ~/.zcode/v2/config.json (GLM), and corresponding paths or environment variables for Kiro / Antigravity / Cursor / Kimi / Copilot. See the “Import existing credentials” section in the repository README for the full table.

Workbench Interface

After installation and activation, open Subscriptions under the Plugins sidebar on the host side. The left side of the workbench is the provider track, and the right side is a scrollable panel; the top is fixed with three tabs: Quota, Models, and Version. Each account has a card (Ollama Cloud has no quota bar). Version compares the running version with the latest GitHub tag, supporting update checks, installation of updates, and an optional 15-minute auto-update (Desktop lifecycle is managed by Electron and does not restart the host via CLI).

Development and Patching

Besides dsh plugin add, the README mentions the following usage:

pnpm dsh web --patch ./cordis.patch.yml

Here, the patch id is oauth-subs.

Installation and Activation

Web profile

The installation command given in the README is (pointing to the original repository URL; if the original repository returns 404, you need to switch to the currently accessible mirror repository address, e.g., this mirror’s GitHub URL; the installation method is the same):

dsh plugin --profile web add https://github.com/xxww0098/dsh-plugin-oauth-subs
dsh web

Then, enter Subscriptions in the interface to complete logins or imports for each provider.

Desktop profile

The desktop profile is managed exclusively by the Electron application and cannot use dsh plugin --profile desktop. The steps are:

  1. DeepSeek Harness → Plugins → Add Plugin
  2. Paste the repository URL (README example: https://github.com/xxww0098/dsh-plugin-oauth-subs) → Install
  3. Turn on the plugin switch; the component row should display Running

Data directory: ~/.dsh/profiles/desktop/data/dsh-plugin-oauth-subs/. It does not share login state with the web profile; you can copy auth.json (and optionally models.json) from ~/.dsh/profiles/web/data/dsh-plugin-oauth-subs/. This must be done after quitting the application to prevent the running memory state from overwriting the files.

Note: The proxy port is bound locally globally. Web and Desktop cannot occupy the same port simultaneously, otherwise it will result in EADDRINUSE; you need to terminate the other side or modify config.port.

Typical Usage

  1. Install the plugin as per the previous section and start dsh web or the desktop application.
  2. Open Subscriptions and select a provider on the left (e.g., Cursor, Copilot, Claude).
  3. Follow the prompts on the card to complete OAuth, device-code, or Import existing local credential files / environment variables.
  4. In Models, select the model route exposed by that account; in the Harness session, select the corresponding model of the api type to route through the subscription upstream.

If you need to migrate from web to desktop, copy the files under data according to the README and restart the application; data/ will be retained after plugin updates.

Scenarios and Notes

Who it is for: Developers who already hold subscriptions or local OAuth states in various IDE / assistant products and wish to orchestrate agents uniformly in DSH without configuring multiple sets of Keys repeatedly.

Permissions and Security: The plugin runs with the user privileges of the current DSH process. It reads and writes to data/ under the profile, listens on local ports, and may read credential paths of various vendors listed in the README. You should review the source code and MIT license of the mirror repository yourself before installation; do not paste session tokens in untrusted environments.

Mirror and Version: The version in package.json is 0.0.110; this package is not published on the public npm registry, and the upstream git is unavailable. This mirror is the currently available public backup of the same artifact. The SkillHub page and GitHub stars (current clue: 1 star) are subject to the directory site display and do not constitute a functional guarantee.

Desktop-specific Behavior: The plugin has lifecycle adjustments for Desktop (it does not self-execute spawn dsh/npm or restart the host). Updates depend on the in-app Install Update or reinstalling the plugin URL.

Conclusion

dsh-plugin-oauth-subs connects subscriptions for Codex, Grok, GLM, Kiro, Antigravity, Cursor, Ollama Cloud, Kimi, Copilot, Claude, etc., and OpenCode Go Keys to DSH’s unified api surface, supplemented by subscription management and version update UI. The original author is xxww0098; code is now available from the mirror lingdong0128-sys/dsh-plugin-oauth-subs, and the directory introduction is available at SkillHub Plugin Page. Installation commands are subject to the original README; if the original Git URL fails, simply switch to the mirror repository URL.

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

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

Xiaoye