Introduction to DeepSeek Harness Plugin: dsh-opencode-go-plus

Preface

DeepSeek Harness (DSH) is an agent development framework based on a plugin architecture. When using the OpenCode Go subscription model, developers typically need to manually handle API Key configuration, monitor plan quotas, and deal with updates to the gateway model list. The dsh-opencode-go-plus plugin aims to solve these pain points; it is a maintained fork that preserves access to the model catalog and supports direct configuration from the settings page.

Plugin Introduction

This is an OpenCode Go model provider plugin for DeepSeek Harness, maintained by HaydenSmith1121 and licensed under MIT.

Core Features

The plugin provides the following capabilities:
* Supports streaming responses
* Supports tool calling
* Supports image input
* Displays remaining plan quota
* Automatically adapts to new models (cloning protocols and parameters)
* Automatically adds session headers
* Retrieves the available model catalog from the gateway

Installation and Activation

Install using the official plugin command.

Web Profile:

dsh plugin --profile web add dsh-opencode-go-plus

Headless Profile:

dsh plugin --profile headless add dsh-opencode-go-plus

After installation, you can also manually install it via the Git repository address in the plugin manager: https://github.com/HaydenSmith1121/dsh-opencode-go-plus.

Configuring API Key

  1. Open Settings -> Models in the Harness.
  2. Locate the OpenCode Go row.
  3. Paste the key into the OpenCode Go API Key input box and click Save and Check.
  4. Confirm that the status summary displays green (configured and verified).

Headless Usage Example

  1. Install the plugin to the Headless profile.
  2. Prepare a configuration file headless.patch.yml specifying the default model:
- id: agent-default-model
  config:
    provider: opencode-go
    model: deepseek-v4.1-flash
  1. Export the environment variable OPENCODE_API_KEY and run the task:
read -s OPENCODE_API_KEY
export OPENCODE_API_KEY
dsh --profile headless --patch ./headless.patch.yml "Hello"

Notes

  • Version Compatibility: Different Harness versions (0.1.6, 0.1.7, 0.2) require different setting models. The plugin detects and routes at runtime.
  • Dependencies and Conflicts: This package is a maintained fork of dsh-opencode-go and cannot be installed simultaneously with dsh-opencode-go. It depends on packages such as @deepseek-ai/cordis.
  • Parameter Estimation: Parameters used when automatically adapting to new models are estimated values and can be overridden using modelOverrides.
  • Permissions: The plugin runs with the privileges of the current DSH process; please review the source code and license before installation.

Conclusion

This plugin simplifies the integration process of OpenCode Go in DSH, providing a visual configuration entry point and quota monitoring capabilities.

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

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

Xiaoye