DSH Hub
dsh-browser-control cover

caob23/dsh-browser-control

dsh-browser-control

BundleBrowser21 GitHub stars· updated 2026-09-04

dsh-browser-control is a community DeepSeek Harness plugin. Read the repository README before installing.

Install

npx @deepseek-ai/dsh plugin --profile web add @caob23/dsh-browser-control

Restart `dsh web` after install. Bundle APIs can change during the developer preview.

README badge

dsh-browser-control DSH Hub badge
[![DSH Hub](https://dshhub.dev/badge/dsh-browser-control.svg)](https://dshhub.dev/plugins/dsh-browser-control)

Paste this into your README. The star count updates with every catalog sync.

From the README

Excerpt from caob23/dsh-browser-control, cleaned of badges and images.

DSH Browser Control

<a href="README.md">简体中文</a> · <a href="README.en.md">English</a>

Chrome 浏览器扩展 + DeepSeek Harness 插件,让 AI Agent 像人一样操控你的真实浏览器。

这是什么

不是无头浏览器,不是 Puppeteer——是你的真实 Chrome,带着你的登录态、你的 cookies。AI 通过 Chrome DevTools Protocol 驱动标签页,你可以在屏幕上看到每一步操作。

你对 AI 说一句话
      ↓
Agent 调用 browser_* 工具
      ↓
DSH 插件(WebSocket 桥)
      ↓
Chrome 扩展(CDP 驱动)
      ↓
你的真实浏览器执行操作
      ↓
结果返回给 Agent

和 MCP 浏览器方案的区别

市面上已经有 Playwright MCP、Puppeteer MCP、browser-use 等,它们的共同点:启动一个自己下载的全新浏览器实例。本项目走的是另一条路:

本项目Playwright / Puppeteer MCP
浏览器你正在用的真实 Chrome自动下载的独立实例
登录态 / Cookies✅ 全部继承,无需重新登录❌ 每次全新 profile
过验证码 / 扫码登录你的会话已经登录,基本不遇到经常卡在登录墙
可见性屏幕上实时可见,随时鼠标接管无头运行或独立窗口
环境依赖无需 Node / npx / Python需要 npx 或 uvx 运行时
接入方式加载扩展 + 设置页开关编辑 MCP 客户端 JSON 配置
磁盘占用复用现有 Chrome,零新增额外下载数百 MB 浏览器
集成深度dsh 原生插件(设置卡片 / 状态页 / 清理按钮)通用 MCP server

一句话:要 AI 用"你自己的"浏览器干活(已登录的 B 站、知乎、淘宝后台),用本项目;要做跨浏览器、跨应用的通用自动化测试,用 MCP。

下载

文件说明
DSH-Browser-Control-1.0.7.zipChrome 扩展(解压后加载)
dsh-browser-control-plugin-v1.0.7.zipdsh 插件(离线兜底,在线装直接用方式 A/B)

安装 Chrome 扩展(30 秒)

下载 zip → 解压到固定文件夹(别删)→ Chrome 打开 chrome://extensions → 开启「开发者模式」→ 点「加载已解压的扩展程序」→ 选解压后的文件夹。

工具栏出现鲸鱼图标 → 绿点呼吸 = 已连接。需要 Chrome 116+。

安装 dsh 插件

📦 本包是 bundle 包(package.json 中 dsh.bundle.patch 指向 cordis.patch.yml)。dsh plugin 安装成功后会自动把它加入 profile 的 dsh.profile.bundles,重启即加载。

前置:dsh plugin 转发给 pnpm,需要 pnpm 在 PATH 上;首次使用会自动初始化目标 profile。

方式 A:从 npm 安装(推荐)

# 通过 dsh plugin 从 npm registry 安装并自动注册到 profile
dsh plugin --profile web add @caob23/dsh-browser-control

如果自行管理 profile 的 node_modules,也可以在对应目录中直接使用 npm 安装:

npm install @caob23/dsh-browser-control

方式 B:从 GitHub 或本地目录安装

# 直接从 GitHub 安装
dsh plugin --profile web add "github:caob23/dsh-browser-control#v1.0.7"

# 本地目录调试(注意:必须显式 file: 前缀)
dsh plugin --profile web add "file:D:\path\to\dsh-browser-control"

重启 DSH 后生效。卸载:

dsh plugin --profile web remove @caob23/dsh-browser-control

⚠️ 本地目录请用 file: 前缀。裸路径 / 相对路径会被 pnpm 当作 link: 协议, 在 hoisted 布局下不会物化到 node_modules 顶层,导致启动时无法解析该包。

安装并重启后,桥接默认开启(v1.0.6+),不需要再去设置里手动启用。状态页 http://127.0.0.1:9777/ 可看到服务已监听。

想关掉默认开启:在 ~/.dsh/settings.yml 的 browser-bridge.config 下写 enabled: false 即可。

方式 C:复制进 harness 源码树(旧方式,v1.0.2 及以前)

git clone https://github.com/caob23/dsh-browser-control.git
cd dsh-browser-control
git checkout v1.0.2   # 旧布局在 v1.0.2 tag
./install.sh /你的路径/deepseek-harness

脚本只负责把插件文件复制到位,完成后仍需手动改三处配置,改完重启 dsh 才会生效:

下载 dsh-browser-bridge-plugin-v1.0.2.zip,解压到 deepseek-harness 的 packages/web/browser-bridge/。

然后补充三处配置:

  1. packages/bundle/base/package.json 的 dependencies 加:
"@deepseek-ai/dsh-browser-bridge": "workspace:^"
  1. cordis.patch.yml 的 plugins 列表加:
- id: browser-bridge
  name: '@deepseek-ai/dsh-browser-bridge'
  config:
    enabled: false
  1. tsconfig.host.json 的 references 加:
{ "path": "./packages/web/browser-bridge" }

…

Related plugins