Preface¶
DeepSeek Harness (DSH) implements model access as a pluggable provider routing system. If you already have a ChatGPT Plus or Pro subscription and wish to use the official “Sign in with ChatGPT” within Harness—so that subscription models appear in the model selector like other providers—the generic OpenAI adapter is often insufficient. The ChatGPT plan utilizes a restricted Responses API with field definitions that differ from generic routing, and the authorization flow provided by Harness may be registered but lacks a consumer. Starlight-bananice/dsh-chatgpt-plugin (npm package name @bananiceee/dsh-chatgpt-provider) is a model inference plugin designed specifically to address this.
What is this¶
Maintained by Starlight-bananice, categorized under Model Inference. The plugin handles ChatGPT OAuth login within DSH, registers the chatgpt provider route, and authenticates via the OpenAI public Responses API using Sign in with ChatGPT OAuth tokens. Account, token, and refresh management are hosted via Harness credential documentation; it does not act as a proxy and does not route through third-party servers. Current version: 0.1.1, License: MIT (subject to GitHub / package.json).
It relies on OpenAI’s “Sign in with ChatGPT” capability opened to open-source clients. This feature is currently in Preview, and endpoints, scopes, and field limitations may change before the official release.
Why a separate plugin is needed¶
According to documentation: Harness’s built-in @deepseek-ai/dsh-llm-pi-ai has registered the ChatGPT authorization flow, but the product lacks a provider that consumes this flow. Furthermore, ChatGPT plan usage routing enforces store: false / stream: true, does not support continuation via previous_response_id, and requires system instructions to be passed via instructions, among other constraints. A generic OpenAI adapter will send fields that this route does not accept. This plugin implements an adapter strictly following this wire format.
Environment Requirements¶
- DeepSeek Harness 0.2.x
- A Plus or Pro ChatGPT account
- An available port on local
127.0.0.1(OAuth callback uses loopback; default callback port is 1455, configurable viacallbackPort)
Installation and Activation¶
Install from the registry under the desktop profile (command from README):
dsh plugin --profile desktop add @bananiceee/dsh-chatgpt-provider
For local development, install from the source directory:
dsh plugin --profile desktop add /path/to/dsh-chatgpt-provider
The plugin runs with the permissions of the current DSH process; it is recommended to review the source code and MIT license on GitHub before installation. After installing or updating plugin code, if behavior does not change, you must restart Harness at the application level (simply toggling the plugin will not reload lib/index.js from the Node ESM cache).
Quick Start¶
- Restart Harness and open Settings → ChatGPT (the plugin’s dedicated page is more reliable than the provider card in Settings → Models).
- Click Continue with ChatGPT to open the official OpenAI authorization page in your browser.
- Log in and agree to use your ChatGPT plan for requests from this app.
- Return to Harness; the card should display the logged-in account.
- Select a ChatGPT model in the model selector to start a conversation.
The settings page features a Test Connection function: it sends a real small request and reports the model name, reply, and token usage.
Core Features¶
- Login & Multi-Account: Re-authorization, logout, redirect to ChatGPT usage settings, and reporting of expiration/quota/revocation errors by type.
- Model List: Defaults to items with
visibility: "list"from the account’sGET /v1/models; you can append models outside this list in the profile’scordis.patch.ymland are advised to fill in thecontextWindow(documentation for the entire GPT-6 series lists 1,050,000, facilitating Harness context compaction triggers). - Reasoning Effort: The
reasoningEffortsconfig defaults tolow/medium/high/xhigh/max, withreasoningEffortas the default level. - Images in Tool Results: Fixed the issue of missing images in function returns starting from version 0.1.0. Images are sent as a user message immediately following the output (single image limit 8 MiB, total image limit 24 MiB per request; excess images are skipped with an explanation).
Runtime dependencies are primarily jose (ID token signature verification) and @deepseek-ai/schemastery.
Configuration Example¶
Extend models and set test models in the profile’s cordis.patch.yml:
- id: dsh-chatgpt-provider
name: "@bananiceee/dsh-chatgpt-provider"
config:
models:
- id: gpt-6.1-sol
name: GPT-6.1 Sol
contextWindow: 1050000
- id: gpt-6-sol
name: GPT-6 Sol
contextWindow: 1050000
- id: gpt-6-luna
name: GPT-6 Luna
contextWindow: 1050000
testModel: gpt-6-luna
Common fields also include displayName (default ChatGPT), account, agentName (app name on authorization page, default DeepSeek Harness), etc. See the repository README for the full table.
To verify if a specific model ID is available (read-only credentials, does not refresh tokens):
node tests/live-models.mjs gpt-6-astra
Troubleshooting Key Points¶
- No ChatGPT card in Settings: Restart Harness first; the browser module registry is scanned at startup.
- Login button unresponsive: Visit
curl -s http://127.0.0.1:<port>/chatgpt/api/status | python3 -m json.toollocally to check fields like route, directory, settings namespace, andclientModule. - Plus Quota: The 5-hour limit is shared with other applications. The card does not display the remaining number but only provides a “Manage Usage” link; Pro is not affected by this 5-hour limit (subject to README description).
/chatgpt/api/*: Listens only on127.0.0.1with no extra authentication. It exposes account email/identity and login controls but does not contain the token itself.
Use Cases and Notes¶
Suitable for: Plus/Pro users who are already developing or using agents daily on DSH 0.2.x, wish to use ChatGPT plan models, and accept the risk of Preview API changes.
Notes:
- Tokens are stored in
$DSH_HOME/.credentials.yaml(0600). Login communicates only withauth.openai.comandapi.openai.com; if a user disconnects the app in ChatGPT settings, OpenAI will not actively notify the plugin. - This plugin only handles the connection and wire format. GPT-6’s agent habits under Harness (step-by-step reporting, easily stopping to ask questions, extra charges for >272K context, etc.) can be combined with the independent project dsh-gpt-agent-preset; the two can be used separately.
- The community directory skillhub.cn plugin page has no official affiliation with DeepSeek or Quantwai; star counts and other metadata are subject to the directory site’s display (current indication is 0).
Links¶
- Directory Page: https://www.skillhub.cn/plugins/Starlight-bananice/dsh-chatgpt-plugin
- GitHub: https://github.com/Starlight-bananice/dsh-chatgpt-plugin
- Install Package Name:
@bananiceee/dsh-chatgpt-provider(dsh plugin --profile desktop add @bananiceee/dsh-chatgpt-provider)