给 agent 真实浏览器能力的插件:Cloudflare 网络上的无头 Chrome,JS 渲染页、截图与 PDF 全部开箱即用
A DeepSeek Harness plugin that gives the agent real browser access : headless Chrome on Cloudflare's network, so JS-rendered pages, screenshots, and PDFs all just work.
安装
dsh plugin --profile web add github:realalexandreai/dsh-cloudflare-browser-runGitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试
安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗
安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。
README
dsh-cloudflare-browser-run
给 DeepSeek Harness 的 agent 真正的浏览器访问能力:headless Chrome 跑在 Cloudflare 网络上,JS 渲染页面、截图、PDF 都能处理。
由 pi-cloudflare-browser-run 移植,完全符合 dsh 的 Cordis 插件规范。
为什么需要它
dsh 内置的 web_fetch 只是普通 HTTP fetch——JS 页面拿回来是空壳,官方也标注 SSRF 防护待补。本插件补上:
- 任意公开页面的干净 markdown(SPA/JS 页面也能读)
- 截图(PNG)和 PDF
- 登录态会话、WebMCP 站点
快速开始
dsh plugin --profile web add dsh-cloudflare-browser-run
在 profile/settings 层配置凭据:
- id: cloudflare-browser-run
name: dsh-cloudflare-browser-run
config:
cf_api_token: <你的 token>
cf_account_id: <你的 account id>
Token:Cloudflare 控制台 → API Tokens → 模板选 Browser Rendering: Edit。
Account id:dash.cloudflare.com/<ACCOUNT_ID>/...。
工具
| 工具 | 说明 |
|---|---|
browse |
抓取公开 URL → 干净 markdown(默认);action 可选 screenshot / pdf |
screenshot |
页面截图存为 PNG,返回本地路径 |
pdf |
页面渲染为 PDF,返回本地路径 |
配置
| 键 | 必填 | 说明 |
|---|---|---|
cf_api_token |
✅ | 你的 API token(Browser Rendering:Edit) |
cf_account_id |
✅ | 你的 Cloudflare 账号 ID |
cf_api_base |
– | API 地址覆盖 |
output_dir |
– | 截图/PDF 输出目录(默认系统临时目录) |
隐私
- 只访问公网:所有 URL 先过 SSRF 防护(localhost/内网 IP/IPv6/userinfo 一律拒绝)
- token 只存在于你的配置文件——不写日志、不落盘
- Browser Run 以合规 bot 身份访问,是正规的抓取方式
开发
npm install
npm run typecheck
npm test # SSRF 防护 / 配置 / API 调用形状
npm run build
真实 API 集成测试(不参与 npm test):
DSH_TEST_CF_TOKEN=<token> DSH_TEST_CF_ACCOUNT=<account> node --import tsx tests/real/real-cf.mjs
License
MIT
原始 README: https://github.com/RealAlexandreAI/dsh-cloudflare-browser-run/blob/main/README.zh.md ↗
同类插件
查看全部 →
dsh-anchored-standard
两阶段 DeepSeek Harness 预设:先 Minimal 对齐的 bootstrap,再切完整 Standard 工具(Project2 98/99)

PicGo-Core
极致的图片上传引擎,CLI 与 API 双支持

awesome-deepseek-harness
DeepSeek Harness(DSH)及其优秀社区插件的精选指南。

awesome-deepseek-harness
DeepSeek Harness (DSH)生态系统:来自dsh-external/hub和公共dsh-plugin主题的精选插件、工具和基础设施。

AI-Novel-Writer
本地优先 AI 小说创作工作台,提供 Windows/macOS 桌面版与 DeepSeek Harness 插件开发预览,支持角色、大纲、章节蓝图、审稿修稿和本地模型。

mcp-for-stata
MCP-for-Stata:把 Stata 集成进你的 agent