dsh-oh-my-model: Manage Model Providers and Variants Independently in DSH

Introduction

When building agents or chat applications in DeepSeek Harness (DSH), the model requires not only changing API addresses and keys but also handling context length, billing, inference tiers, and multiple variants under the same provider. If these definitions and keys are mixed into scattered configurations, troubleshooting costs and model switching will slow down. Below introduces the community plugin Oh My Model (dsh-oh-my-model), which unifies the management of providers, models, and model-specific system prompts via a separate models.json and aligns with models.dev directory presets.

What is it

Oh My Model is released by maintainer Suzukaa-a, categorized as Model Inference. Its positioning is to independently manage AI providers, model definitions, and prompts within DSH. Configuration is stored in models.json in the Harness main directory, edited in the Oh My Model panel under Settings → Models, and the interface language displays English or Chinese according to Harness preferences.

In terms of the ecosystem, DSH follows “everything is a plugin”; the plugins directory skillhub.cn is a community site with no official affiliation with DeepSeek / Hypersphere.

Core Features

The following capabilities are derived from the plugin README and package.json description:

  1. Single File Multi-Provider: Manage multiple providers and API gateways (display name, base URL, protocol, etc.) in a single models.json.
  2. Fetch Upstream Model List: Execute Fetch upstream models on configured endpoints. Select IDs from the advertised list to add to drafts; manual entry is unnecessary. Lists are fetched on demand and not cached; selected items are only draft {} entries until Save.
  3. Key and Config Separation: Save writes the entered API key to the Harness credential store in one go; models.json retains only references like apiKeyEnv. Keys do not go into drafts, validation requests, or logs.
  4. Directory Inheritance: Inherit context window, output limits, input types, inference levels, and billing from inherit from (models.dev); fields not explicitly set are automatically inherited, and the interface displays the parsed values in gray text.
  5. Same Provider Aliases: alias a sibling reuses sibling model definitions, writing only overrides (e.g., upstream ID, sampling parameters).
  6. Model-specific System Prompt: Append systemPrompt when the model is selected; aliases inherit the target model’s prompt by default.
  7. Fine-grained Advanced Items: Upstream model ID, request parameters, rates, and compaction strategies can be adjusted in Advanced settings.

Running Requirements: DSH >=0.1.5-rc.3 and <0.3.0, Node.js >=22.13. License: MIT.

Installation and Enablement

The official recommendation is to install the specific version package from the DSH sidebar Plugins page:

dsh-oh-my-model@0.1.0-2

If installing from a local directory:

  1. Install the package using the absolute path of that directory in Plugins.
  2. Restart DSH (refreshing the browser alone will not reload the host module).
  3. Open Settings → Models and enter the Oh My Model panel below.

When upgrading locally, keep original links; after updating files in the directory, restart DSH as well.

Typical Usage

Panel Quick Start

  1. Click Add, fill in provider ID, display name, base URL, protocol (can leave empty for auto-detection).
  2. Enter the API key in API key; when saving, it writes to the credential store, and models.json records only the reference name.
  3. Click Add model, fill in the model ID; use inherit from to select a directory preset, or alias a sibling to reuse an existing model in the provider; use Fetch upstream models to pull IDs exposed by the endpoint.
  4. If needed, use Prompt to append a model-level system prompt, and Advanced settings to configure request parameters and compaction.
  5. Click Save to submit keys and definitions; before saving, everything is a draft. Discard will discard both entered keys and edits.

The top search box filters providers and models by name or ID; prompts appear when closing or refreshing with unsaved changes; confirmation appears before discarding or loading external revisions.

Example: GPT-6 Luna and Fast Variant

The reproducible logic given in the README: Add a provider, create gpt-6-luna and select openai/gpt-6-luna in inherit from; then add gpt-6-luna-fast as an alias of gpt-6-luna, set the upstream ID to gpt-6-luna, add {"service_tier":"priority"} to request parameters, and finally Save.

Equivalent models.json snippet (replace example URL with your endpoint, keep apiKeyEnv as GATEWAY_API_KEY, input the key in the panel API key and let Save store it):

{
  "version": 1,
  "providers": {
    "gateway": {
      "displayName": "My gateway",
      "api": "openai-responses",
      "baseURL": "https://gateway.example/v1",
      "apiKeyEnv": "GATEWAY_API_KEY",
      "models": {
        "gpt-6-luna": {
          "inherit": "openai/gpt-6-luna"
        },
        "gpt-6-luna-fast": {
          "aliasOf": "gpt-6-luna",
          "upstreamId": "gpt-6-luna",
          "name": "GPT-6 Luna · Fast",
          "samplingParams": {
            "service_tier": "priority"
          }
        }
      }
    }
  }
}

The fast alias shares the quota and billing default values of the base model; upstream sends as gpt-6-luna with priority; priority requires endpoint support, and rates can be overridden on the alias’s cost according to the provider’s actual situation.

Save Behavior Summary

Item API key Model config
Write Location Harness credential store models.json
Action Save Save
In File Only apiKeyEnv reference Provider and model definitions

Remove stored credential is an independent immediate action, different from Discard.

Applicability and Notes

Suitable for: Developers who need to connect multiple independent providers or gateways within the same DSH instance, want to reduce handwritten metadata using directory presets, or need to maintain variants like fast/inference tiers for the same logical model.

Notes:

  • The plugin runs under the permissions of the current DSH process; it is advisable to review the GitHub source code and the MIT license before installing.
  • models.json is located in the Harness main directory, supports external legal editing and automatic monitoring; damaged edits are ignored to preserve the last valid configuration. For a more complete field syntax, see docs/configuration.md, docs/catalog.md, etc., in the repository.
  • Compatibility range and test combinations are in docs/compatibility.md.

Conclusion

After the above steps, Oh My Model clarifies responsibilities for providers, model variants, directory inheritance, and key storage, reducing the cost of repeatedly modifying scattered configurations in Harness. Directory page: https://www.skillhub.cn/plugins/Suzukaa-a/dsh-oh-my-model; Source code and docs: https://github.com/Suzukaa-a/dsh-oh-my-model.

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

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

Xiaoye