在 DeepSeek Harness (DSH) 的生態中,智能體執行真實網頁任務(打開頁面、點擊、輸入、填表、提取數據)通常需要外部工具。zoahdev/dsh-browser-use 提供了 Browser Use Cloud API 的橋接,讓 dsh agent 能夠通過該 API 完成這些操作。
插件介紹¶
這是一個社區維護的插件,本身不重新實現 Browser Use 的邏輯,而是一個“薄橋接”。它向模型註冊了一個名爲 browser_use_run 的工具,將任務轉發給 Browser Use 的雲端端點,並返回原始運行結果。
安裝與配置¶
安裝¶
使用官方安裝命令添加插件:
dsh plugin --profile web add dsh-browser-use
Cloud 模式配置¶
Cloud 模式需要配置 Browser Use 的 API Key。可以通過配置項或環境變量設置:
- API Key: 配置項
apiKey或環境變量BROWSER_USE_API_KEY。 - Base URL: 默認爲
https://api.browser-use.com。 - Timeout: 請求超時時間,默認爲 300000 毫秒。
- Model: 默認模型(可選)。
本地模式配置¶
本地模式(免費,無需 API Key)由 DeepSeek Harness 自帶的 mcp-client 提供,不依賴此插件。若要使用本地模式,需安裝 Browser Use(Python 環境),並在 cordis.yml 中配置:
- insert:
- id: browser-use-local
name: '@deepseek-ai/dsh-mcp-client'
config:
serverName: browser_use
transport: stdio
command: browser-use
args: ['--cli-mcp']
cwd: !!js process.cwd()
這會註冊 mcp__browser_use__browser_exec 和 mcp__browser_use__browser_screenshot 工具。
功能與用法¶
Cloud 模式工具¶
插件註冊了一個模型可調用的工具 browser_use_run。
參數:
* task (string): 執行的具體任務描述。
* model (string, 可選): 提供商前綴的模型 ID,例如 openai/gpt-5.5。
返回值:
返回原始運行結果,格式爲 { result }。
注意事項¶
- API Key 依賴: Cloud 模式需要有效的 Browser Use API Key。
- 原始響應: 插件返回的是原始響應,不進行流式傳輸或輪詢等待。
- 社區性質: 這是一個社區插件,並非 Browser Use 或 DeepSeek 的官方產品。
- 權限運行: 插件以當前 DSH 進程的權限運行,使用前建議檢查源碼與許可證。