Introduction¶
When using agent tools for web automation, a common approach is to launch a headless browser (e.g., Playwright, Puppeteer) and start from scratch—logging in, loading extensions, and rebuilding cookies. This approach is not only slow but also fails to reuse existing login sessions, making it even harder to handle flows that require manual verification.
DeepSeek Harness (DSH) is built on the philosophy of “everything is a plugin,” allowing plugins to chain together existing capabilities of the host. hxdts/dsh-browser-setup is a plugin package that bridges DSH with a real Google Chrome browser. It depends on and loads the community plugin @caob23/dsh-browser-control, providing a one-click installer and a localized wrapper layer.
What This Is¶
This is a DSH plugin package maintained by hxdts. It does not contain the core browser control logic itself; instead, it loads the dependent @caob23/dsh-browser-control plugin and ships with a Windows double-click installation script.
The core value of this plugin is: it enables DSH to directly control the real Chrome browser you use daily, preserving login sessions, cookies, and installed extensions—no more re-login or headless browser required.
Core Features¶
Real Login Session & Extension Reuse¶
DSH connects to your browser by loading a Chrome extension. The installer extracts the extension to %USERPROFILE%\.dsh\browser-control-extension. Once the extension is connected, DSH can directly read and interact with pages without rebuilding login state.
Visual Operations¶
DSH performs actions in a new tab that you can watch live in your own Chrome. When a page is being controlled, visual indicators appear: a 2px blue border around the edges, a “DSH in Control” badge in the top-left corner, and a white short-tailed arrow + blue border + blue glow virtual cursor.
Only Operates New Tabs, Never Hijacks Current Page¶
The plugin only operates in newly created tabs and will not interfere with the page you’re currently viewing. You can click the whale icon → “Lock” at any time to freeze the current control state with one click.
Speed Modes¶
- Everyday web pages: By default, uses in-page synthetic events (
el.click()/dispatchEvent) executed in batch—fast and efficient. - Exams / homework submissions / CAPTCHAs / payments: Uses CDP real clicks (
browser_click), where the page seesevent.isTrustedastrue, so it won’t be flagged by anti-cheat systems.
Drag & Drop Support¶
The original plugin lacks a drag tool. This repo implements dragging by injecting a pointer event sequence via browser_evaluate. Suitable for sliders, map panning, sortable lists, and Canvas dragging. The events are synthetic (isTrusted=false), so a very small number of sites that enforce trusted-event validation may not respond.
Installation & Activation¶
Option A: Install as a Plugin (Recommended)¶
dsh plugin add github:hxdts/dsh-browser-setup
Or specify a desktop profile:
dsh plugin --profile desktop add github:hxdts/dsh-browser-setup
After installation, restart DSH, then load the Chrome extension (one-time only):
- Open
chrome://extensions - Enable “Developer mode” in the top-right corner
- Click “Load unpacked extension” and select
%USERPROFILE%\.dsh\browser-control-extension
If that directory doesn’t exist, the node_modules/@caob23/dsh-browser-control repository does not bundle the extension. Use the Option B script to download it, or download from the author’s Release and extract it to that directory.
Option B: Double-Click Installer (Windows)¶
- Download this repository as a ZIP and extract it
- Double-click
install.bat: it automatically installs the plugin, downloads and extracts the Chrome extension, opens the extensions page, and places the extension path on the clipboard - In the browser, make two clicks: Developer mode → Load unpacked extension →
Ctrl+V→ Enter - Restart DSH
Note: Since Chrome 136, programmatic auto-loading of unlisted extensions is prohibited. This is a browser security restriction that cannot be bypassed, so the extension must be loaded manually.
Verifying the Connection¶
A whale icon appearing in the Chrome toolbar with a green breathing dot = connected.
Verify via PowerShell:
Invoke-WebRequest http://127.0.0.1:9777/api/status -UseBasicParsing | Select-Object -Expand Content
If extensionConnected is true, the connection is successful.
Typical Usage¶
Simply speak naturally in DSH, and the Agent will operate in a new tab:
- “Open Baidu and search for today’s weather”
- “Open this link and fill in the form”
The installer removes the tabGroups permission from the extension, keeping the tab bar clean without creating tab groups.
Use Cases & Cautions¶
Suitable for scenarios where you need to reuse a real browser’s login sessions, extensions, and cookies within DSH, such as web automation requiring authenticated states or simulating real user behavior.
Important: The plugin runs with the current DSH process privileges. You should review the source code and license before installing. The core plugin (the dependent @caob23/dsh-browser-control) is licensed under AGPL-3.0, while this repo’s wrapper layer and scripts are licensed under MIT. If redistributing the core plugin, comply with AGPL-3.0: retain the license and attribution, and provide the source code.
Conclusion¶
hxdts/dsh-browser-setup minimizes the cost of connecting DSH to a real Chrome browser through a single plugin package and a one-click install script. If you need to leverage an existing browser environment in agent development, this plugin eliminates the tedious process of logging in from scratch and rebuilding extensions.