用途:Browser Use 是面向浏览器自动化的智能体工程技能,让 Agent 在真实 Chrome 中自主完成任务,例如查找信息、操作页面并返回结果。
主要能力:通过 Agent(task=..., llm=...) 驱动浏览器;采用 DOM 序列化加视觉的方式实现稳健的元素定位;支持 BrowserProfile 配置,如 headless、allowed_domains、profiles 与 CDP 连接;支持结构化输出提取与敏感数据处理;提供云 API 与自研优化模型 ChatBrowserUse,并支持 MCP 服务器模式。架构上采用“感知—动作”循环,动作是类型化的浏览器原语,LLM 适配层与模型无关。
使用方式:安装命令为 uv add browser-use,或 pip install browser-use。可用 uvx browser-use init 获取模板。核心 API 示例:
import asyncio from browser_use import Agent, BrowserProfile, ChatBrowserUse
async def main(): agent = Agent( task="Find the number of stars of the browser-use repo", llm=ChatBrowserUse(model='openai/gpt-5.5'), browser_profile=BrowserProfile(headless=False, allowed_domains=["*.github.com"]), ) history = await agent.run() asyncio.run(main())
适用场景:需要自主浏览器操作、页面信息提取、结构化数据采集与受域名限制的自动化任务。生态定位为默认开源浏览器智能体,替代方案包括 stagehand(SDK 风格、确定性混合)与 skyvern(偏工作流)。
限制与注意事项:需先正确安装 Python 与依赖;启动前应安全配置模型提供方与 API 密钥;若执行 AI 生成的代码,应使用沙箱或权限隔离。资料未提供具体收费、价格与平台支持细节。参考:https://github.com/browser-use/browser-use 与 https://docs.browser-use.com。