opencode-eyes-nvidia: Integrating NVIDIA NIM Vision Capabilities into Text Models

Introduction

The plugin ecosystem of DeepSeek Harness allows developers to extend model capabilities. For pure text models, the lack of visual understanding capability is a common limitation. The opencode-eyes-nvidia plugin provides visual reasoning capabilities to the Harness via NVIDIA NIM, enabling text models to “see” and process images.

Plugin Positioning

  • Name: opencode-eyes-nvidia
  • Maintainer: bauerelizabeth07139
  • License: MIT
  • Core Value: Provides a visual interface for models that lack multimodal capabilities, defaulting to image description via the MiniMax-M3 model.

Installation and Activation

Run the following command in the terminal to install the plugin into the web profile:

dsh plugin --profile web add bauerelizabeth07139/opencode-eyes-nvidia

If Git is not installed on the system, you can use the tarball address for installation:

dsh plugin --profile web add https://codeload.github.com/bauerelizabeth07139/opencode-eyes-nvidia/tar.gz/main

To uninstall, run:

dsh plugin --profile web remove dsh-opencode-eyes-nvidia

Prerequisites

  • Python: Version ≥ 3.8 is required, and it must be available in the PATH environment variable.
  • Pillow: This library must be installed in the Python environment (pip install Pillow).
  • NVIDIA API Key: At least one valid NVIDIA API key is required.

Core Features

The plugin mainly provides the following capabilities:
1. Multi-model Support: Integrates 7 NVIDIA-hosted vision models, defaulting to minimaxai/minimax-m3.
2. Key Rotation: Automatically switches to the next key when an API key encounters rate limiting or failure, without manual intervention.
3. MCP Server: The plugin bundles an MCP server internally; it is ready to use upon installation without the need to manually configure the mcpServers file.
4. Toolset: Exposes two tools, automatically registered as mcp__opencode_eyes_nvidia__<tool>.

Tool Usage

The plugin registers two tools. When invoking them, please note the DSH namespace prefix.

describe_image

Sends an image to the selected vision model and retrieves a description. Parameters include:
- image_path (required): Local image path.
- prompt (optional): Description prompt.
- model (optional): Specify the model ID.

list_vision_models

Returns a list of currently available vision models. If a valid API Key is configured, it queries the /models endpoint.

Configuration

The plugin is loaded via cordis.patch.yml. Below are the key configuration items:

Configuration Item Environment Variable Default Value Description
model NVIDIA_MODEL minimaxai/minimax-m3 ID of the default vision model to use
apiKey NVIDIA_API_KEY (empty) The first key in the rotation ring
env — {} Used to pass through multiple keys or other environment variables
timeoutSeconds NVIDIA_TIMEOUT 120 The server’s own HTTP timeout
maxDimension NVIDIA_MAX_DIMENSION 2048 Maximum size for scaling image edges
jpegQuality NVIDIA_JPEG_QUALITY 85 JPEG quality for re-encoding images
thinkingMode NVIDIA_THINKING_MODE (unset) Only effective for models containing minimax; values: enabled / disabled / adaptive
toolCallTimeoutMs — 300000 Budget time for a single DSH invocation

Configuration Example (Multi-Key Rotation):

- id: dsh-opencode-eyes-nvidia
  name: 'dsh-opencode-eyes-nvidia'
  config:
    apiKey: 'nvapi-first-key'
    model: 'minimaxai/minimax-m3'
    env:
      NVIDIA_API_KEYS: 'nvapi-first-key,nvapi-second-key'
      NVIDIA_ROTATION_BACKOFF: '2'

Notes

  1. ThinkingMode Limitation: The thinkingMode configuration only takes effect when the model ID contains minimax; otherwise, it is ignored.
  2. Credential Security: DeepSeek Harness automatically filters credential-related variables (such as KEY, TOKEN, etc.) from the environment variables inherited by subprocesses. Therefore, it is recommended to explicitly pass keys via the plugin’s config.apiKey or config.env, rather than setting them directly in global environment variables.
  3. Standalone Operation: This plugin is merely a DSH wrapper for the opencode-eyes-nvidia project. Its core server is a standard stdio MCP server and can operate independently in other environments supporting MCP.

Conclusion

The opencode-eyes-nvidia plugin provides a low-cost, highly compatible visual access solution for the Harness by wrapping NVIDIA NIM. It solves the issues of multi-key rotation and complex configuration, making it suitable for scenarios requiring image understanding integrated into text streams.

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

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

Xiaoye