aihaoran0015/dsh-web-companion ↗★ 1

@local/dsh-web-companion

Right-sidebar DeepSeek/Doubao web companion with persistent login and Doubao image recognition

Package
@local/dsh-web-companion
Compatibility
Unverified
Version
0.1.0
License
MIT
Last updated
Nov 13, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:aihaoran0015/dsh-web-companion

Usage

Sidebar entries

  1. Bottom of the left sidebar: DeepSeek and Doubao. Each opens its page in the persistent browser.
  2. The right sidebar's Start tab also carries a Web companion card that opens the panel.
  3. The panel's own buttons open the same browser; only if the host route is unavailable do they fall back to a Harness Browser tab (that partition is ephemeral — you would sign in again).

Image recognition

Attach an image in the harness, then ask the model to recognise it with Doubao. The model calls:

{ "image_path": "C:\\path\\to\\image.png", "prompt": "What text is in this image? Answer with the text only." }

imageBase64 (raw or a data: URL) is accepted instead of image_path. The tool returns the Doubao reply as the tool result, so the model can answer from it.

Managing the browser

{ "action": "status" }                       // running?, profile dir, open pages
{ "action": "open", "target": "doubao" }     // open or switch to a page
{ "action": "login", "target": "deepseek" }  // open the sign-in page once

Configuration

config in cordis.patch.yml:

KeyDefaultMeaning
port9334CDP port for the plugin browser, bound to 127.0.0.1
browserPathemptyExplicit executable; empty auto-detects Edge, then Chrome
profileDir~/.dsh/web-companion/profilePersistent profile directory
hiddenfalseStart the window off-screen; keep false until the first sign-in
doubaoUrl / deepseekUrlvendor URLsReplace if a site moves
replyTimeoutMs180000Per-recognition timeout