dsh-deepseek-account-vision: Adding Vision to Any Main Model with a DeepSeek Account

Introduction

When running agents in DeepSeek Harness (DSH), the main model often acts as a pure text router: it can read files and call tools, but if you paste a screenshot in the GUI or ask the model to “take a look” at a local image, the adapter will directly reject multimodal input. The alternative is to configure a separate API key or account for a vision LLM, which adds a layer of cost and configuration.

Here we introduce the community plugin dsh-deepseek-account-vision (package name @caesarloo/dsh-deepseek-account-vision): image recognition utilizes DeepSeek-V4.1-Flash (model id deepseek-flash, version 1017) on your already logged-in DeepSeek account. It requires no additional API keys and does not rely on independent VLM accounts or image processing libraries. Instead of turning the main model into a multimodal model, it converts images into text first and then passes them to the original model for processing.

What is this

Maintained by caesarloo, it is categorized under Model Inference in the DSH community directory. The plugin registers two types of capabilities via Cordis patches:

  1. A model-facing tool deepseek_vision (name is configurable).
  2. An “automatic image recognition” route added for each registered provider (default id is <provider>-vision).

Vision requests are sent via DSH’s deepseek-account route; credentials are managed by the DSH account service, and the plugin does not store login information.

Core Features

deepseek_vision Tool

Any main model can call this tool within a session. Input parameters support:

  • Local path: image_path, limited to PNG / JPEG / WebP / GIF formats.
  • Remote address: image_url (http or https).
  • Optional prompt: passed verbatim to the vision model; if omitted, a built-in full transcription prompt is used.

Return fields include text, model, source, and truncated. The image content does not enter the main model’s context; only the transcribed text enters the subsequent conversation.

Automatic Transcription Route

Select the entry with the display name “{Original Route Name} + Auto Vision” (id format like <provider>-vision) in the model selector, and attach images as usual. The flow is: the route declares support for image input → each image is transcribed by DeepSeek-V4.1-Flash → the original text model receives a pure text request and responds normally. The transcription result prefix defaults to [Image Transcription]; if transcription fails and failureMode is placeholder (default), a [Image Transcription Failed: ...] marker is inserted, and the session can continue.

Performance and Edge Behavior

  • In-process caching based on image content hash (default 200 entries, can be set to 0 to disable).
  • Merges concurrent requests for the same image; failed images have a 60-second cooldown; single image recognition default timeout is 120000 ms, URL download default is 30000 ms.
  • Pure text conversations are not rewritten by the plugin; main models with existing native vision capabilities do not need to rely on this plugin specifically for “looking at images.”

Division of labor with the built-in read_image: read_image hands image blocks to models that support images; deepseek_vision returns text for use by any text model.

Installation and Activation

Requirements: DSH >= 0.2.1-rc.2 (Node >= 22.19.0 in package), a logged-in DeepSeek account within DSH, and the bundled llm, attachments, and fs services.

Official installation command:

dsh plugin --profile <profile> add @caesarloo/dsh-deepseek-account-vision

If installing from a local checkout directory, simply replace the package name with the project directory path. After bundle-level installation, DSH needs to be restarted once (bundle layer does not support hot reload); during development, you can use the patch layer insert pointing to the plugin entry, and code changes can be hot-loaded.

Confirm that deepseek_vision appears in the tool list of a new session, indicating the tool has been registered.

Default configuration values are in the plugin’s cordis.patch.yml; you can override them in the profile’s cordis.patch.yml using - id: dsh-deepseek-account-vision, such as visionProvider, visionModel, autoTranscribe, failureMode, etc. (See GitHub README for the full key list).

Typical Usage

Scenario 1: Main model reads images via tool

The model calls the tool, passing a local screenshot path and an optional prompt:

{
  "image_path": "screenshot.png",
  "prompt": "Recognize all visible text verbatim and describe the layout"
}

For remote images, you can just pass the URL:

{ "image_url": "https://example.com/chart.png" }

Scenario 2: Pure text main model pasting images in GUI

Select the corresponding provider’s “+ Auto Vision” route in the model list, attach the image, and send. The main model will receive a text description with the [Image Transcription] prefix.

Situation Recommendation
Any model, image is in file or URL deepseek_vision tool
Pure text model, image attached in GUI <provider>-vision route
Main model already supports image input Plugin may not be needed/used for this turn

Use Cases and Notes

Suitable for: Scenarios where you are already logged into a DeepSeek account in DSH, want to reuse the account-side Flash for image recognition, but do not want to configure a separate VLM for every text agent. Transcription of dense screenshots or UIs with extremely small font sizes may miss details; to achieve higher accuracy, you can adjust visionModel or customize recognitionPrompt / transcribePrompt.

Limitations summary:

  • Does not accept PDF, audio, or video.
  • Images are sent to DeepSeek with the request for recognition (the plugin does not persist images on disk); caching is only in process memory.
  • The plugin runs with the current dsh process permissions. Before installation, please review the source code and the MIT license yourself to ensure it meets your security and compliance requirements.

The DSH ecosystem emphasizes “Everything is a plugin”; the SkillHub directory page is a community site and has no official affiliation with DeepSeek / High-Flyer.

Conclusion

dsh-deepseek-account-vision uses DeepSeek-V4.1-Flash on the account route to perform OCR and layout description, connecting vision capabilities to any main model via tools or automatic routes without requiring additional API keys. For details and configuration tables, see the GitHub repository. Install and use it with the command above: dsh plugin --profile <profile> add @caesarloo/dsh-deepseek-account-vision.

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

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

Xiaoye