dsh-browser: Headed Chromium and Session-Preserving Browser Tool for Agents

Preface

Common approaches to enabling models to “view webpages, click buttons, and fill forms” in DSH include HTTP scraping or headless browser scripts. The former fails to capture the DOM after full interaction, while the latter often relies on a runtime different from your desktop browser, making debugging unintuitive. dsh-browser (@istarry/dsh-browser) takes a different path—installing and reusing a Chromium instance under the harness home directory, providing the Agent with a real, headed browser via browser_open and browser_interact, while maintaining session state across multiple tool calls. Below is an introduction to what it is, how to install it, and what to watch out for during use.

What Is This

An open-source DSH plugin by maintainer iStarryDust, categorized as a Networking Tool in the community directory. In short: it manages a Chromium runtime within the DSH process and exposes two browser tools to the Agent, allowing page state to persist within the same session.

The current package version is 0.1.1 (see the repo’s package.json), licensed under MIT.

Core Features

Two Agent Tools

  • browser_open: Opens a page and returns an interactive page state.
  • browser_interact: Clicks, types, scrolls, and reads within the same browser session; state is maintained across multiple calls.

Settings Page and Chromium Management

The plugin includes a settings UI (package @istarry/dsh-client-ui-settings-browser) used to:

  • Control whether to allow the Agent to use the browser (config item agentUseBrowser).
  • Edit custom request headers (e.g., specific UA, Referer).
  • View Chromium installation status.

Chromium is not distributed with the npm package; it is detected, installed, and reused by the plugin at runtime. It is installed in the harness home under the user directory (~/.dsh) and does not write to system-wide browser paths.

Package Structure (Responsibility Separation)

Package Responsibility
@istarry/dsh-browser Chromium runtime management, browser_open / browser_interact tools, installation/detection of Remote
@istarry/dsh-client-ui-settings-browser Settings page: Agent usage switch, request header editing, installation status

Installation and Activation

Execute the official installation command in the DSH environment:

dsh plugin add @istarry/dsh-browser

Restart the DSH service after installation. The README states: Chromium must be installed in the settings page upon first use (approximately 400MB download, hundreds of files); it will not be downloaded repeatedly once installed.

Typical Usage (Workflow)

The README does not provide specific dialogue examples, but the reproducible workflow is as follows:

  1. Install the plugin and restart DSH.
  2. Open the plugin settings page to complete the Chromium installation; configure request headers as needed and decide whether to enable agentUseBrowser.
  3. In the session, have the Agent call browser_open to open the target URL and obtain the page state.
  4. Continue calling browser_interact within the same session to complete clicking, typing, scrolling, or reading content; there is no need to restart the browser each time.

Tool names and behaviors are subject to the repository README; peer dependencies include @deepseek-ai/cordis, @deepseek-ai/dsh-tools, @deepseek-ai/dsh-session, etc. (see respective package.json files).

Permissions, Compatibility, and Use Cases

Behaviors You Must Be Aware Of

This section is highlighted separately in the README and should be read before installation:

  • It will download and install the Chromium runtime to ~/.dsh (approx. 400MB on first run, requires network).
  • It will launch a headed browser process (not headless), consuming memory and displaying a window.
  • browser_interact allows the model to operate on real webpages (clicking, typing, submitting forms). You should only allow the Agent to use this if agentUseBrowser is explicitly enabled in the settings page; the model may access any page you have open.

The plugin runs with the permissions of the current DSH process; before installation, it is recommended to review the source code and LICENSE to ensure compliance with your security policy.

Compatibility

  • The README records the tested environment: DSH 0.2.0-rc.2.
  • Chromium is installed by the plugin in the user directory and is independent of any system-installed Chrome/Chromium.

Who Is It For

  • Agent developers who need to perform interactive webpage operations (post-login pages, forms, dynamic rendering) within DSH.
  • Scenarios where you want to use a headed Chromium to visualize page behavior, rather than relying solely on static HTTP or headless scripts.

It is not suitable for environments where you only want to lightly scrape public HTML and do not wish to have an additional browser process and a ~400MB runtime download on your local machine.

Conclusion

dsh-browser encapsulates “real headed Chromium + session persistence” into a DSH plugin: two tools cover opening and interaction, while the settings page manages Chromium installation, request headers, and Agent switches. Community directory and GitHub links are below; details are subject to the README.

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

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

Xiaoye