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¶
- Open Settings -> Models in the Harness.
- Locate the OpenCode Go row.
- Paste the key into the OpenCode Go API Key input box and click Save and Check.
- Confirm that the status summary displays green (configured and verified).
Headless Usage Example¶
- Install the plugin to the Headless profile.
- Prepare a configuration file
headless.patch.ymlspecifying the default model:
- id: agent-default-model
config:
provider: opencode-go
model: deepseek-v4.1-flash
- Export the environment variable
OPENCODE_API_KEYand 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-goand cannot be installed simultaneously withdsh-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.