omdsh-dev/dsh-browser
Chrome sidebar extension that lets DeepSeek Harness operate your browser directly, no vision capabilities required. 一款 Chrome 侧边栏扩展程序,可让 DeepSeek Harness 直接操控您的浏览器,无需视觉能力。
dsh-browser — what it is
dsh-browser is a companion project to DeepSeek Harness (dsh), DeepSeek AI's open-source, plugin-based agent harness. It provides a bridge plugin plus a Chrome/Firefox browser extension (MV3) that let the dsh model work inside the browser tabs you already have open — reading page content, clicking, typing, navigating, and managing tabs — while keeping your logins, sessions, and cookies intact. The conversation UI lives in a side panel or sidebar.
How it works
- Pages are turned into structured text: a snapshot containing the title, URL, main text, a numbered list of interactive controls, and masked form fields. Tools address elements by their number or a CSS selector.
- The model uses tools such as
browser_snapshot(read page),browser_click,browser_type(text input),browser_press(keys),browser_scroll,browser_navigate,browser_list_tabs,browser_follow_tab,browser_close_tab,browser_get_text,browser_wait,browser_clipboard,browser_upload(Chrome only), andbrowser_screenshot(requires approval). - Clicks, typing, and scrolling work inside the selected document, including cross-origin iframes. Chrome uses its debugger for native keyboard events, caret insertion, system paste, and file uploads.
- The side panel accepts PNG/JPEG/WebP/GIF image attachments when the host supports images, and lets you quote highlighted page text in your next message.
Version pinning
The workspace targets the latest public dsh release, pinned to 0.2.1-rc.5; older dsh releases are not supported. The exact runtime command is npx @deepseek-ai/dsh@0.2.1-rc.5 web.
Installation
The standard dsh plugin command alone can't install this — it needs both the bridge plugin and the extension. One-line installers (Chrome build) are provided:
- macOS/Linux:
curl -fsSL https://raw.githubusercontent.com/Lum1104/dsh-browser/refs/heads/main/scripts/install.sh | bash - Windows (PowerShell): downloads and runs
install.ps1
The installer downloads main, builds and registers the bridge plugin, builds the Chrome extension into ~/.dsh/browser-extension, and opens chrome://extensions for you to load it as an unpacked extension (or click Reload on updates). Restart dsh if it's already running.
Note: the unscoped
dsh-browserpackage on npm belongs to a different, unrelated project; this project is not published to npm.
Requirements
- Node.js >= 24, Corepack/pnpm
- Chrome 125+ or Firefox 140+
- Windows: PowerShell 5.1 (ships with Windows) or PowerShell 7+
Firefox
Firefox uses a separate MV3 manifest, event-page background, and sidebar. Build from a source checkout with pnpm --filter dsh-browser-extension run build:firefox, then load extensions/dsh-browser/dist-firefox/manifest.json via about:debugging. Firefox's extension UUID doesn't authenticate, so you must copy the bearer token from ~/.dsh/ext-bridge-token into the extension settings.
Performance
In a paired 60-run end-to-end benchmark, both backends completed all 30 assigned runs. dsh Browser Control used fewer model/tool round trips and finished faster:
| Backend | Success | Mean end-to-end latency | Mean browser tool calls |
|---|---|---|---|
| dsh Browser Control | 30/30 | 5.32 s | 3.4 |
| Matched Playwright baseline | 30/30 | 6.67 s | 4.7 |
The ratio was 1.24 (95% CI 1.16–1.34): Playwright took ~24% longer; dsh reduced latency ~20% and saved 1.35 s per task on average. The suite used six browser tasks, five deterministic seeds, the same dsh profile and model (deepseek-v4-flash), and independently validated page state.
Privacy & security
- Passwords and payment-card values are always rendered as
••••and never leave the page. - The bridge does its own bearer-token authentication, outside dsh's
/apitrust boundary. Privileged gateway methods (settings.*,credentials.*,host.open*) reject non-loopback callers. - Page reads default to
auto(reads only the controlled tab without prompting);askadds per-read confirmation,offblocks reads entirely. - Click, type, keypress, navigation, history, and reload fail closed until approved. Allow unrestricted browser control is an explicit global opt-in.
- Screenshots capture visible pixels without field masking and require approval unless unrestricted control is enabled; page sharing set to
offblocks screenshots under restricted control. - The assistant binds to the active tab when work begins. If you switch tabs, actions pause and the panel asks whether to stay or follow; the extension never silently retargets your visible tab.
- Highlighted text is captured only while a panel is open and page sharing isn't
off, never from password/payment fields, and is only sent when you send the message. - On browser-protected pages and extension stores, the model can read tab metadata and use browser-level navigation, but can't inspect or operate the protected page DOM.
Development
The bridge plugin (@yuxianglin/dsh-bridge-browser) and extension (dsh-browser-extension) live in one pnpm workspace. Commands include pnpm run build, typecheck, test, check:runtime, test:smoke, and pnpm test:browser (real DSH + Chromium, no model credentials needed). The bridge plugin must be built before startup. Dependencies are pinned to the same tested dsh release line; upgrades must update manifests and lockfile together.
Related
- Project
- Project
- Project
- Project