Use ChatGPT subscriptions in DeepSeek Harness Desktop via official Sign in with ChatGPT, with dynamic Agent registration and native model and reasoning selection.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:pyh-pan/dsh-openai-oauth
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
Use your ChatGPT subscription in DeepSeek Harness Desktop through official Sign in with ChatGPT (SIWC).
English | 简体中文
Independent community plugin; not affiliated with OpenAI or DeepSeek. This is not the legacy fixed-client Codex OAuth/backend-api integration.
Features
- Continue with ChatGPT, dynamic Agent registration, persistent host identity, and verified ID Tokens.
- Account-specific verified model/reasoning metadata in DSH's existing model selector, without renewing authorization just to edit a local choice.
- Public Responses streaming, verified image/document input, local function tools, tool results, and compatible history replay.
- Multiple saved account/workspace registrations, explicit account selection, rotating refresh, and scoped sign-out.
- Keeps DeepSeek Account, API-key providers, other sources, and existing sessions independent. No silent billing fallback.
- Stable account/session-scoped Responses affinity for cache reuse, without sending raw session identifiers.
- No Codex CLI, API key, patched ASAR, or replacement pi-ai installation.
Compatibility
Minimum Desktop requirement: >=0.2.0-rc.2. Development/install helpers require Node.js 24+. Historical native baselines are 0.2.1-rc.2, 0.2.1-rc.1 and 0.2.0-rc.2; current platform evidence is recorded below.
New release labels do not require an allowlist entry or a startup test subprocess. Loading uses the minimum floor; actual Interfaces, owner authentication and session protection decide capability. Unknown metadata and different component version strings alone do not disable a working Host. A broad loading range is not certification of every future release. See forward compatibility.
| Environment | Status |
|---|---|
| Windows Desktop 0.2.1-rc.2 | Native suites pass; initial UI recovery confirmed; hardened-startup recheck pending |
| Windows Desktop 0.2.1-rc.1 (0.2.0-rc.2 baseline) | Previously validated native suites and desktop source/account/selection |
| macOS Desktop 0.2.1-rc.2 / 0.2.1-rc.1 | Native and real desktop validation pending for these releases; 0.2.0-rc.2 native suites passed |
| macOS Desktop 0.2.1-rc.3 | 0.3.7 source/settings/coverage UI confirmed; 0.3.8 real interaction failed; 0.3.9 native checks pass, real-account acceptance pending |
| Windows/macOS/Linux Node CI | Protocol/package tests only; not proof of desktop login or inference |
| Older DSH, remote/headless Hosts, Linux Desktop | Not currently claimed supported |
See compatibility and verification. Do not bypass compatibility contracts or upgrade bundled framework dependencies to force compatibility.
Install from source
No npm publication is required or currently promised.
git clone https://github.com/pyh-pan/dsh-openai-oauth.git
cd dsh-openai-oauth
npm ci
npm test
npm run check
npm run test:package
npm run doctor
npm run dsh -- plugin --profile desktop add -w .
The dsh helper discovers the installed desktop executable and invokes its own bundled CLI; it does not install another Host. Use DSH_APP for a nonstandard installation. See installation for Windows PowerShell and macOS examples.
Only restart DSH after running tasks have finished. A window close may hide the application to the tray; use its normal Quit action.
Use a reviewed archive
For a clean/archive installation only. If the package is already linked to a checkout, keep it linked and use native add -w from the reviewed checkout instead; do not remove then install an archive over the Junction. See the safe linked-update procedure.
npm run pack
npm run dsh -- plugin --profile desktop add ./artifacts/pyh-pan-dsh-openai-oauth-0.3.9.tgz
Do not keep the old private bundle and this bundle enabled simultaneously: they deliberately preserve the same provider/credential identity. See migration.
Sign in and use
- Open Settings → Models → ChatGPT subscription.
- Click Continue with ChatGPT, then open the official authorization link in your browser.
- Name/approve the Agent on OpenAI's page. Finish authentication yourself; never copy tokens from another client.
- Read the first-use notice and select Use this account. Signing in alone does not switch your conversation's model.
- Select ChatGPT Subscription in the existing model picker. Its Reasoning level submenu shows only choices advertised by that model.
- Use Manage usage to review the Agent, quota, limits, and access at ChatGPT Settings → Usage.
Accounts without the granted direct-inference scope remain signed in but disabled for inference. Explicitly enable subscription inference to request consent again. Reauthorization reuses the registration; adding a different account is a separate action.
Authorization resilience (0.3.9)
Model/effort selection can use previously verified, account-scoped metadata. This disk cache never supplies authorization, context capacity or attachment capabilities. Actual preparation and native pressure compaction obtain credential-bound runtime capabilities; unknown facts still fail closed. Refresh status is read-only; Update model catalog uses the network and renews only when needed; Renew authorization is explicit maintenance, never an unattended install test.
The macOS direct connector uses only a recognized existing DNS policy, native proxy routing and strict original-host TLS; unknown/proxy/hosts-override routes and Windows remain with Host fetch. No global network settings are changed. Advanced native plugin configuration may select requestPolicy.transport: host to retain Host transport.
Unconfirmed rotating-token outcomes are durably fenced, not automatically retried by the next caller. Verified grants and operation fences use credential payload schema v2: an old reader refuses them rather than ignoring their safety state. Do not hand-edit records or downgrade them to v1. An account affected by a previous unconfirmed renewal should be officially reauthorized first. See the diagnosis, pi comparison, verification and rollout boundaries.
Limits and security
- Models, reasoning choices and quota are account/server dependent, not an unlimited or universal model entitlement.
- Supports text, normalized images and supported documents through inline Responses input when accepted by the selected model. Local per-request limits include 20 images, 10 files, 20 MiB per file and 40 MiB total file bytes. See attachment types, native contracts and verification boundaries.
- Audio/video, the Files upload API and hosted MCP/tool-search are not implemented. Unknown binary formats and over-limit history fail explicitly, rather than silently dropping attachments.
- Explicit
maxTokens/temperatureremain rejected under this provider's conservative SIWC preview contract, not silently ignored; clear them before ordinary chat. The same provider bundle integrates SIWC compaction and per-session coverage safety for compatible standard/cordis/ptc/minimal declarations, in memory without writing user presets. No separate local compatibility bundle is needed. From 0.3.7 integration follows actual Host capabilities, not an exact release. Missing/pending protection blocks session requests without removing account settings; custom/uncovered compositions are not silently approved. - Subscription failures never switch to an API-key/balance provider.
- Tokens stay in the native Host credentials service, not browser storage or ordinary plugin settings. Native local storage is not a promise of OS-keychain encryption.
- Sign-out attempts remote revocation and clears this account's local tokens, retaining its registration. Unconfirmed remote revocation is reported; review access in ChatGPT settings.
- Read SECURITY.md, protocol design, and third-party notices.
Development
npm ci
npm test
npm run check
npm run test:package
npm run test:native
npm run test:race
npm run test:compaction # installed native compaction contracts
npm run test:presets # real main entry + all supported preset realms
Run these suites explicitly during development/release review; production startup and installation never spawn them just because a Host version changed. Pure tests use generated identities and mock upstreams. Native tests use an installed DSH and temporary credentials; they do not read your grant or spend inference quota. Real-account desktop validation is separately documented and always user-controlled.
Source is published directly as ESM; no generated lib/ or vendor snapshot is necessary. See CONTRIBUTING.md.
Update / remove
If both the source and authorization settings disappear after a DSH upgrade, check version compatibility troubleshooting before signing in again. An incompatible bundle is skipped before its code runs.
For a linked checkout, review/pull changes, run checks, then restart DSH safely. For an archive, install the reviewed replacement using the native plugin command. To remove:
npm run dsh -- plugin --profile desktop remove @pyh-pan/dsh-openai-oauth
Removal preserves stored credentials. If you want to disconnect this Agent, sign out or manage access in ChatGPT settings first; do not delete the entire DSH profile.
Links
More in this category
Ebony-Vinyl/dsh-our-free-model★ 92328
Adds free model lanes to DeepSeek Harness — DeepSeek V4.1 Flash, Kimi K3 and others — with no login, sign-up or API key, plus a local OpenAI-compatible gateway, fallback routing and a usage dashboard.
dingminhua/dsh-connect-workbuddy★ 2184
Connects locally signed-in WorkBuddy models, CN and international alike, to DSH, reading each model's credit multiplier from the upstream catalog on every refresh, with per-model image input toggles, account switching backed by an auto-failing-over pool, manual daily check-in, and read-only credit overviews shown as compact pills on the card and in the composer.
Alice-Marx/dsh-model-router★ 1032
Routes DeepSeek Harness work across configured model APIs and supported vendor CLIs with dependency-aware packages and cost previews.
V1ki/dsh-plugin-subscriptions★ 653
Use ChatGPT (Codex), Claude, and Grok subscriptions as DeepSeek Harness LLM providers, with Settings login, model catalogs, usage, plus image_generate, video_generate, and x_search tools.
XDTrees/dsh-workbuddy-xdpool★ 650
Merge every locally signed-in WorkBuddy account into DeepSeek Harness as one auto-failing-over model pool (multi-account rotation, live credits, and a model catalog showing per-model credit multipliers and free/night-discount tags).
XDTrees/dsh-xdpool★ 650
Merge every locally signed-in WorkBuddy account into DeepSeek Harness as one auto-failing-over model pool: multi-account rotation, 429 cooldowns, live credits, a model catalog with per-model credit multipliers and free/night-discount tags, QR-code login for 13 vendors, and aggregate free-tier channels. Accounts persist across restarts.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.