dsh-openai-account-connector: Connecting OpenAI Account Login to DSH Unified Model Catalog

Preface

When building agents or conversational applications in DeepSeek Harness (DSH), model sources are often fragmented: some rely on API Keys, while others utilize various account systems. If you wish to use an official OpenAI account to log in and directly select GPT models within the Harness, while utilizing account-side image generation capabilities under the same route, you need a connector that links “browser login → model list → text/image output” to ctx.llm, rather than manually entering tokens in the plugin.

The following introduces the community plugin dsh-openai-account-connector (maintainer lxy271713). Aimed at DSH Desktop, it integrates OpenAI account login, real-time GPT model catalogs, and image generation capabilities into the Harness’s unified model catalog.

What is this

dsh-openai-account-connector is a community plugin for DSH, categorized as Model Inference. Its description is: OpenAI account model and image connector for DeepSeek Harness.

Users complete the login process solely on the official OpenAI browser page; the plugin does not provide a Token input field, nor does it read, copy, record, or return OAuth Tokens. Upon successful connection, the openai-codex route is registered in ctx.llm; the native DSH Composer fetches the model catalog from the app-server and receives text or Harness-persistable image blocks on the selected route. Generated files undergo checks for path containment, symbolic links, file types, and byte limits before entering the Harness attachment storage.

Core Features

Account and Models

  • Official OpenAI account login (on the browser side); the Harness credential library only stores a non-sensitive connected marker.
  • The plugin includes a tested Codex runtime; users simply complete the browser login. The list of available models is refreshed from this runtime every time the model list is requested.
  • Advanced installation allows setting the environment variable CODEX_BIN or the plugin’s executable option to use the system’s Codex CLI instead.

Text and Images

  • Text conversations run through the same openai-codex route.
  • Image generation is exposed as a real-time account capability and may not appear as a separate entry in the model list.
  • Each request runs in a new temporary execution workspace; images are imported only from the generated_images root directory declared by the official runtime, avoiding implicit writes to the project directory.
  • The DSH native tool schema is exposed as an app-server dynamic tool; calls return to the Harness agent loop and execute under the selected DSH permission policy.

Division of Labor with the Account Surface

You must first install the Provider-neutral account surface package dsh-account-authorization, and then install this OpenAI-specific Connector. This package is responsible only for the OpenAI flow and adapter, and assigns openai-codex to that adapter to avoid competing for the same route with the generic pi-ai adapter. Uninstalling this Connector will not remove the account surface of other Providers.

Security and State (README Summary)

  • The Codex app-server exclusively possesses ChatGPT OAuth storage and refresh capabilities.
  • The Harness ctx.llm remains the sole Provider/model catalog; the attachment system holds the generated image bytes and playback references.
  • Disconnecting only removes the DSH connection and route; it does not log the user out of other Codex clients.

Environment and Dependencies

This version targets the official DSH Desktop 2.0.3 and is used when dsh-account-authorization@0.1.0 provides a compatibility layer that “preserves the authorization target.” Higher versions of the Harness may natively provide equivalent contracts following changes related to authorization-target (after commit 732a504). Additionally, llm-pi-ai.delegatedProviders is required.

Updating the Connector updates its bound compatible Codex runtime; it does not grant access to models that OpenAI has not enabled for the current account.

Installation and Activation

First, set up the Provider-neutral account surface, then install the OpenAI Connector (commands from the project README; version numbers are subject to the release package):

dsh plugin --profile desktop add --save-exact dsh-account-authorization@0.1.0
dsh plugin --profile desktop add --save-exact dsh-openai-account-connector@0.1.4

After installation, complete the OpenAI login in the browser following the account connection flow in DSH Desktop; upon successful connection, GPT models refreshed by the runtime will be visible in the model catalog. You can then select the openai-codex route for conversation or image generation (specific UI may vary in Desktop 2.0.3).

Typical Usage (Documentation-Level Flow)

The README does not provide a standalone “curl example.” The release acceptance path can be summarized as follows:

  1. Complete the plugin installation and OpenAI browser login in DSH Desktop 2.0.3 as described above.
  2. Confirm that the model list refreshes with requests, and initiate a short text conversation.
  3. If the account possesses image generation capabilities, verify the generated image preview and attachment playback after a restart.
  4. After disconnecting, confirm that the openai-codex route is removed.

Developers can use the repository scripts for local build and test verification:

pnpm install
pnpm typecheck
pnpm test
pnpm build
pnpm pack:check

Note: Unit tests do not constitute release evidence; official release requires completing connection, model refresh, text turns, image generation preview, restart playback, and route removal after disconnection within a real Desktop window.

Known Limitations and Notes

  • The app-server’s image completion items and dynamic tool protocol remain experimental; the Connector probes for real-time image generation capabilities and will fail closed if the protocol drifts.
  • The app-server does not expose DSH’s temperature, maxTokens, or stop; requests setting these parameters (including auxiliary title requests) will explicitly fail rather than being silently ignored or having the title prompt resolved on the Harness side.
  • For image generation turns, the first completed image is published only after the runtime confirms the turn has been interrupted.
  • Since the app-server lacks a stable image-creation id, full-turn retries are disabled for this Provider route (including pure text); transient errors will be presented directly to the user.
  • Harness attachments currently lack a staging transaction; canceling immediately after successfully saving an attachment may leave an unreferenced content-addressed object (handled by the attachment retention policy).
  • Other Providers require independent Connector packages; stacking branches in this UI or the Harness core is not recommended.

Applicable Scenarios

  • Developing within the DSH Desktop 2.0.3 ecosystem and wishing to access GPT and account-side image generation using an OpenAI account rather than self-managed API Keys.
  • Requiring a clear division of labor with dsh-account-authorization and an integration method with a fixed openai-codex route.

Please Note Before Installing

Community plugins run under the permissions of the current dsh process; before installation, you should read the source code and the MIT license (see GitHub repository), and understand that OAuth and Codex runtime are held on the app-server side. The DSH community plugin directory is an independent site and has no official affiliation with DeepSeek or High-Flyer.

Conclusion

dsh-openai-account-connector connects official OpenAI account login, dynamic GPT model catalogs, and controlled image generation imports to the Harness’s ctx.llm. It is suitable for developers on Desktop 2.0.3 who prefer the account route over token pasting.

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

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

Xiaoye