open-source 是什么?
Reference for writing Python code against the browser-use 1.0 open-source library (Agent, Browser, Tools, models, sensitive data, results). Use it whenever the user writes code that imports from browser_use, asks about Agent or Browser options, supported models, custom tools, or migrating from browser-use 0.x. Do NOT use this for Cloud API/SDK usage or pricing (use the cloud skill), or for driving a browser through the CLI (use the browser-use skill).
以上为来源原文,中文用途说明尚待整理。
怎么接入你的 Agent?
- 定位完整 Skill 目录
打开本项目来源,核对
SKILL.md及其引用的脚本和资料。 - 交给你正在用的 Agent
在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。
- 确认识别,再做具体任务
让 Agent 回报安装目录和识别到的名称
open-source,然后告诉 Agent 你的任务和实际输入,让它先核对触发条件。
展开并复制给 Codex 的安装指令
安装并检查 open-source
请在 Codex 的当前工作环境中安装并检查 open-source 这个 Skill。
项目身份:browser-use/browser-use / open-source
来源:https://github.com/browser-use/browser-use/blob/ccbdb8095fbaf903c748880a600054a34c7b6191/skills/open-source/SKILL.md
已定位的源文件:skills/open-source/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Claude Code 的安装指令
安装并检查 open-source
请在 Claude Code 的当前工作环境中安装并检查 open-source 这个 Skill。
项目身份:browser-use/browser-use / open-source
来源:https://github.com/browser-use/browser-use/blob/ccbdb8095fbaf903c748880a600054a34c7b6191/skills/open-source/SKILL.md
已定位的源文件:skills/open-source/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Cursor 的安装指令
安装并检查 open-source
请在 Cursor Agent 的当前工作环境中安装并检查 open-source 这个 Skill。
项目身份:browser-use/browser-use / open-source
来源:https://github.com/browser-use/browser-use/blob/ccbdb8095fbaf903c748880a600054a34c7b6191/skills/open-source/SKILL.md
已定位的源文件:skills/open-source/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 当前 Agent 的安装指令
安装并检查 open-source
请在 当前 Agent 的当前工作环境中安装并检查 open-source 这个 Skill。
项目身份:browser-use/browser-use / open-source
来源:https://github.com/browser-use/browser-use/blob/ccbdb8095fbaf903c748880a600054a34c7b6191/skills/open-source/SKILL.md
已定位的源文件:skills/open-source/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。来源原文与资料状态
- 源文件
- 已保存 SKILL.md,抓取于 2026-11-20T19:31:09.802Z
- 中文使用说明
- 尚待整理,保留英文来源内容
- 安装与任务测试
- 本站未执行安装或任务测试
- 来源复核
- 已保留来源记录;当前完整用法未逐项人工复核
展开 SKILL.md 原文、章节与历史收录资料
skills/open-source/SKILL.md · 抓取时间 2026-11-20T19:31:09.802Z
以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。
抓取成功不代表已完成安装或任务测试。
Reference for writing Python code against the browser-use 1.0 open-source library (Agent, Browser, Tools, models, sensitive data, results). Use it whenever the user writes code that imports from browser_use, asks about Agent or Browser options, supported models, custom tools, or migrating from browser-use 0.x. Do NOT use this for Cloud API/SDK usage or pricing (use the cloud skill), or for driving a browser through the CLI (use the browser-use skill).
查看源文件章节 / Source sections
- 原文:Browser Use 1.0 library
- 原文:Install and first agent
- 原文:Agent
- 原文:Models
- 原文:Browser
- 原文:Custom tools
- 原文:Sensitive data
- 原文:Feedback
原文:Browser Use 1.0 library
The agent writes Python in a persistent REPL with browser helpers and raw CDP (on Pydantic AI). The full list of 0.x options and what replaced them is MIGRATING.md in the repo; every 0.x option 1.0 dropped raises one "was removed in browser-use 1.0" error naming the replacement, before any browser starts.
原文:Install and first agent
```bash uv pip install 'browser-use==1.0.6' # Python >= 3.11. Always pin with ==, never >=: releases move fast browser-use login # one Browser Use key: default model and cloud browser (or set BROWSER_USE_API_KEY) browser-use install # only for Browser('chromium') without an installed Chrome ``` ```python import asyncio from browser_use import Agent async def main(): result = await Agent('Find the top story on Hacker News').run() print(result.final_result()) asyncio.run(main()) ``` `Agent(task).run_sync()` works outside async code (not inside a running event loop). Defaults: model `bu-4.0` on the Browser Use gateway, browser `Browser()` = a Browser Use Cloud browser.
原文:Agent
```python Agent( task, # non-empty str llm=None, # default ChatBrowserUse('bu-4.0') browser=None, # default Browser() (cloud) tools=None, # Tools() with custom actions output_model_schema=None, # pydantic model, Literal, enum...: result.structured_output sensitive_data=None, # {'name': 'value'} or {'https://site.com': {'name': 'value'}} extend_system_message=None, reasoning=None, # 'low' | 'medium' | 'high' mode=None, # default: 'ultrafast' on bu-fast / bu-ultrafast, else 'default'; 'ultrafast' = accessibility-tree helpers workspace=None, # the agent's files; default a temp dir ) await agent.run(max_steps=100, timeout=1700) # max_steps >= 1; timeout in seconds for the agent loop agent.add_new_task('next task') # the next run() continues the same conversation ``` The result: `final_result()`, `structured_output`, `status` (`completed` | `max_steps` | `timeout` | `error`), `is_successful()` (the agent's own verdict), `error`, `partial` (last `checkpoint(..., partial=True)`), `usage`, `cost_usd`, `messages` (the transcript), and the files in `agent.workspace` (downloads in `workspace/downloads`).
原文:Models
```python from browser_use import ChatBrowserUse, ChatOpenAI, ChatAnthropic, ChatGoogle ChatBrowserUse('bu-4.0') # also 'bu-4.0-mini', 'bu-4.0-pro', 'bu-fast', 'bu-ultrafast', 'bu-smart' ChatOpenAI('gpt-6-luna') # OPENAI_API_KEY; Responses API ChatOpenAI('my-model', base_url='http://localhost:8000/v1', api_key='x') # any OpenAI-compatible server ChatAnthropic('claude-haiku-5-5') # ANTHROPIC_API_KEY ChatGoogle('gemini-3.5-flash') # GOOGLE_API_KEY Agent(task, llm='groq:llama-3.3-70b-versatile') # any Pydantic AI model string (groq: pip install 'pydantic-ai-slim[groq]'), or a Pydantic AI Model ```
原文:Browser
```python from browser_use import Browser Browser() # Browser Use Cloud (default): cloud_profile_id, cloud_proxy_country_code='us', # cloud_timeout (minutes, 1-240), live_view, captcha_solver Browser('chromium') # a fresh local Chrome/Chromium with a temp profile; headless, executable_path, # user_data_dir (a dedicated profile kept between runs) Browser('chrome') # the Chrome you have open (enable chrome://inspect/#remote-debugging) Browser('chrome', profile='Work') # a new Chrome on a temporary copy of your profile 'Work' Browser(cdp_url='http://127.0.0.1:9222') # any CDP endpoint Browser(keep_alive=True) # run() leaves it running: await browser.stop() Browser(allowed_domains=['example.com']) # also prohibited_domains, block_ip_addresses (every mode) ``` Give each concurrent Agent its own `Browser()`; one running Agent per Browser.
原文:Custom tools
```python from browser_use import Agent, Tools, ActionResult tools = Tools() @tools.action('Look up the internal price of a product') def get_price(sku: str) -> str: return prices[sku] Agent(task, tools=tools) ``` Actions get only the arguments the model passes (no injected browser or page). Returning `ActionResult(extracted_content=...)` or any value works; an action that raises returns the error to the model.
文件 SHA256:115466ab51e9728aa6e159693e78226b4d348833601bb6d14d400d9d5c8e1618
仓库许可证记录:MIT;repository-license-recorded-scope-unverified,查看来源。
Reference for writing Python code against the browser-use 1.0 open-source library (Agent, Browser, Tools, models, sensitive data, results). Use it whenever the user writes code that imports from browser_use, asks about Agent or Browser options, supported models, custom tools, or migrating from browser-use 0.x. Do NOT use this for Cloud API/SDK usage or pricing (use the cloud skill), or for driving a browser through the CLI (use the browser-use skill).
历史收录数据
| 来源仓库 | browser-use/browser-use |
|---|---|
| Skill源路径 | skills/open-source/SKILL.md |
安装前请让使用的Agent先读取这个SKILL.md及其所在目录,确认依赖和所需权限。此页不生成未经来源验证的安装命令。
