aihaoran0015/dsh-web-companion ↗★ 1
@local/dsh-web-companion
Right-sidebar DeepSeek/Doubao web companion with persistent login and Doubao image recognition
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:aihaoran0015/dsh-web-companion说明文档
阅读完整 README ↗Usage
Sidebar entries
- Bottom of the left sidebar:
DeepSeekandDoubao. Each opens its page in the persistent browser. - The right sidebar's Start tab also carries a Web companion card that opens the panel.
- 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:
| Key | Default | Meaning |
|---|---|---|
port | 9334 | CDP port for the plugin browser, bound to 127.0.0.1 |
browserPath | empty | Explicit executable; empty auto-detects Edge, then Chrome |
profileDir | ~/.dsh/web-companion/profile | Persistent profile directory |
hidden | false | Start the window off-screen; keep false until the first sign-in |
doubaoUrl / deepseekUrl | vendor URLs | Replace if a site moves |
replyTimeoutMs | 180000 | Per-recognition timeout |