Preface¶
DeepSeek Harness (DSH) decouples models, tools, and interfaces into pluggable modules. In actual development, beyond the official channels, it is common to integrate third-party OpenAI-compatible endpoints into the Harness while distinguishing between “standard conversation” and models with reasoning/thinking capabilities. Manually editing YAML and aligning with the settings protocols across different DSH versions can be error-prone: silent save failures, keys written directly into configs, and incompatibilities between the old installSection and the new entry-config.
The following introduces the community plugin Dsh-OtherAPI (Maintainer: ShukebtAb, Category: Model Inference). It provides an OtherAPI panel in the Web settings, utilizing DSH 0.1.7-rc.2 entry-config to set models. It allows for one-click configuration of any OpenAI-compatible API and supports options related to thinking modes. The implementation is modified based on dsh-plugin-thinking-api@0.1.8 (MIT, Author: qjf44).
- Plugin Directory Page: SkillHub - Dsh-OtherAPI
- Source Code & Documentation: GitHub - ShukebtAb/Dsh-OtherAPI
What is this¶
Dsh-OtherAPI (npm package name dsh-other-api, current version 0.1.0) is a web-side plugin for DeepSeek Harness. It centralizes the management of multiple OpenAI-compatible providers (base URL, model list, enabled status, thinking mode usage) within settings, and writes configurations into the entry-config format required by DSH 0.1.7. The package description also mentions that when connecting to third-party endpoints, it avoids issues where the endpoint rejects the developer role due to reasons like content_filter.
Unlike the hand-written patches or older thinking-api plugins from the 0.1.5/0.1.6 era, this repository explicitly removes the deprecated installSection / setSource / onChange compatibility layers. Instead, it adopts the Config schema, settings.configure({ auto: false }), and the loader/volatile-update event. The remote settings/mutate calls include the third argument expectedRevision according to the 0.1.7 protocol, and full try/catch/finally blocks are implemented for save, delete, and probe actions. This prevents UI buttons from remaining greyed out without feedback when remote errors occur.
Core Features¶
Settings Panel (Web → Settings → OtherAPI)¶
The README provides screenshots of the settings panel under the repository’s docs/ directory (not distributed with the npm package). The panel’s sidebar capabilities include:
- Provider Management: Configure connection details for OpenAI-compatible APIs. Model rows use two checkboxes: “Enabled” determines whether to write to the config, and “Thinking” marks whether the model is processed in thinking mode.
- Inline Provider Duplication: One-click duplication of existing providers. The route automatically appends
-copyand increments to avoid conflicts;apiKeyEnvfollows the source item. - Separation of Keys and Configuration: The config YAML only stores the environment variable reference name (e.g.,
apiKeyEnv: GOODAPI_API_KEY), not the plaintext key. The actual key is entered in the OtherAPI panel and written to therefssection of$DSH_HOME/.credentials.yamlby the credentials service. The reference name is automatically derived from the route (e.g.,goodAPI→GOODAPI_API_KEY).
Adaptation points relative to upstream thinking-api¶
- Settings integration changed to the 0.1.7 entry-config model.
- Inlined
deepEqualJson, removing the runtime dependency ondsh-util-values. - Key Resolution: When a credentials service is available, it only uses credentials and does not “fail over to reading environment variables.” It only reads environment variables from the launch environment when no credentials service exists. This is an intentional design choice to prevent environment variables from overwriting panel-entered keys in production deployments.
Installation and Activation¶
The DSH ecosystem emphasizes “Everything is a plugin”; directories like SkillHub are community sites and have no official affiliation with DeepSeek or QuantumHeaven. Before installing, it is recommended to review the repository source code and MIT license, and understand that the plugin runs with the current DSH process privileges.
Install from GitHub (Recommended in README):
dsh plugin --profile web add github:ShukebtAb/Dsh-OtherAPI
Local directory debugging:
dsh plugin --profile web add file:/absolute/path/to/Dsh-OtherAPI
Runtime environment requires Node.js >= 20; peerDependencies points to the DSH 0.1.7-rc.x series (<0.1.8).
Typical Usage¶
1. Install plugin and open Web Settings¶
After running the dsh plugin --profile web add ... command above, navigate to Settings → OtherAPI in the Web interface to add or edit providers (base URL, models, etc.).
2. Enter API Key in the Panel¶
Do not write keys into the provider’s static configuration. Enter the key in the OtherAPI panel; upon saving, the credentials service will write it to $DSH_HOME/.credentials.yaml by reference name.
The configuration file retains only the reference, for example:
providers:
goodAPI:
apiKeyEnv: GOODAPI_API_KEY # Reference name, not the key itself
3. Check models and save¶
Check “Enabled” for each model; check “Thinking” if reasoning/thinking behavior is required. Save, delete, and probe operations go through the remote settings API; under 0.1.7, if mutate parameters are incomplete, you will receive a clear protocol error (this plugin is implemented according to the three-argument protocol).
4. Select model in Harness¶
After the steps above, the model selector should list the enabled third-party models for use alongside DSH built-in flows (specific UI depends on the current DSH Web version).
Version Compatibility and Notes¶
| Plugin Version | DSH Version | Status |
|---|---|---|
| 0.1.0 | 0.1.7-rc.2 |
Runtime verified (Startup, Settings Panel, Model Selector) |
| 0.1.0 | 0.1.5 – 0.1.6 | Not supported (Missing volatile, settings.configure, etc.) |
| 0.1.0 | 0.1.8-rc.1 and later |
Unverified (peer upper bound <0.1.8, will be relaxed if needed) |
Who it is for: Developers who are already using or plan to use DSH 0.1.7-rc.2, need to quickly mount multiple OpenAI-compatible endpoints, and want to distinguish between standard and thinking models in the UI.
Notes:
- Installation on 0.1.5/0.1.6 will result in errors like
volatile is not a functionorchild.settings.configure is not a function. You should upgrade DSH or switch to other plugins compatible with those versions. - In deployments with a standard credentials service, do not expect to use environment variables with the same name to overwrite panel keys.
- For bug reports, please use GitHub Issues: https://github.com/ShukebtAb/Dsh-OtherAPI/issues
Conclusion¶
Dsh-OtherAPI consolidates “OpenAI-compatible API + Thinking Mode + 0.1.7 entry-config” into a one-click configuration flow within the Web UI, and fixes the UI freezing issues found in older implementations when settings fail. If your Harness runs on 0.1.7-rc.2, you can install it via the official commands from the SkillHub directory page or the GitHub README, manage providers and keys in the OtherAPI panel, and then select models for inference.
- Directory Page: https://www.skillhub.cn/plugins/ShukebtAb/Dsh-OtherAPI
- GitHub: https://github.com/ShukebtAb/Dsh-OtherAPI