微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🌐

云端浏览器自动化 · AI任务代理

Browser Use 1.0.0 · v1.0.0
效率 安全 B 级 作者 makforce 公开目录收录
下载 1.4k 安装 0 收藏 6.1k 浏览 4
原始页面

简介

云端浏览器自动化平台,提供API驱动的浏览器会话托管与AI代理任务执行,支持持久化登录状态与按需计费

原始描述

Use Browser Use cloud API to spin up cloud browsers for Clawdbot and run autonomous browser tasks. Primary use is creating browser sessions with profiles (pe...

中文使用说明 来自收录源

核心用法

Browser Use 是一项云端浏览器自动化服务,主要面向开发者与AI代理场景,提供两大核心能力:

1. 浏览器会话托管(Primary) 通过 REST API 快速创建云端 Chromium 浏览器实例,返回 CDP(Chrome DevTools Protocol)连接地址,使 Clawdbot 等客户端能够远程控制浏览器。支持「配置文件(Profile)」机制,可将 Cookie、登录态持久化存储,避免重复登录。典型工作流:创建会话 → 配置 Clawdbot 使用 profile=browseruse → 直接调用 browser 工具操作页面。

2. 自主任务代理(Task Subagent) 向 API 提交自然语言指令(如"去亚马逊查 MacBook Air M3 价格"),后端启动专用 AI 代理自动完成浏览器交互。强制使用 browser-use-llm 模型,官方宣称速度较通用模型快 3-5 倍。支持 flashMode 极速模式、vision 视觉理解、maxSteps 步数限制等参数。

显著优点

  • 零基础设施:无需自建浏览器集群或处理 WebDriver 兼容性
  • 状态持久化:Profile 机制解决自动化场景中最棘手的登录态保持问题
  • 弹性计费:$0.06/小时(随用随付)或 $0.03/小时(商业版),按分钟计费且未用时间可退款
  • 生态整合:与 Clawdbot 深度集成,CDP 配置一键完成

潜在缺点与局限性

  • 会话时长硬限制:单次最多 4 小时,长时间任务需自行分段
  • 并发限制:未明确披露最大并发数,高并发场景需商务沟通
  • 网络依赖:所有流量绕行云端,内网或敏感站点访问受限
  • 成本控制:自动化任务按步骤计费,复杂查询可能产生意外费用
  • 平台锁定:CDP URL 与 Profile 数据托管于 Browser Use 云端,迁移成本存在

适合人群

  • 需要为 AI 代理提供「浏览器手」的开发者
  • 不愿维护 Playwright/Puppeteer 基础设施的小团队
  • 需要跨会话保持登录态的自动化场景(如社交媒体监控、电商数据获取)

常规风险

  • API 密钥泄露:密钥硬编码或日志泄露可能导致会话被恶意利用
  • 数据驻留:浏览行为、Cookie、截图等数据流经第三方服务器
  • 服务连续性:依赖单一云服务提供商,需关注 SLA 与数据导出机制
  • 合规边界:自动化访问某些平台可能违反 ToS,用户自行承担法律风险

技术细节补充

  • 基础端点:https://api.browser-use.com/api/v2
  • 认证方式:HTTP Header X-Browser-Use-API-Key
  • 关联开源库:https://github.com/browser-use/browser-use(本地替代方案)

技能正文


name: browser-use description: Use Browser Use cloud API to spin up cloud browsers for Clawdbot and run autonomous browser tasks. Primary use is creating browser sessions with profiles (persisted logins/cookies) that Clawdbot can control. Secondary use is running task subagents for fast autonomous browser automation. Docs at docs.browser-use.com and docs.cloud.browser-use.com.

Browser Use

Browser Use provides cloud browsers and autonomous browser automation via API.

Docs:

Setup

API Key is read from clawdbot config at skills.entries.browser-use.apiKey.

If not configured, tell the user:

To use Browser Use, you need an API key. Get one at https://cloud.browser-use.com (new signups get $10 free credit). Then configure it:

clawdbot config set skills.entries.browser-use.apiKey "bu_your_key_here"

Base URL: https://api.browser-use.com/api/v2

All requests need header: X-Browser-Use-API-Key: <apiKey>


1. Browser Sessions (Primary)

Spin up cloud browsers for Clawdbot to control directly. Use profiles to persist logins and cookies.

Create browser session

# With profile (recommended - keeps you logged in)
curl -X POST "https://api.browser-use.com/api/v2/browsers" \
  -H "X-Browser-Use-API-Key: $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"profileId": "<profile-uuid>", "timeout": 60}'

# Without profile (fresh browser)
curl -X POST "https://api.browser-use.com/api/v2/browsers" \
  -H "X-Browser-Use-API-Key: $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"timeout": 60}'

Response:

{
  "id": "session-uuid",
  "cdpUrl": "https://<id>.cdp2.browser-use.com",
  "liveUrl": "https://...",
  "status": "active"
}

Connect Clawdbot to the browser

gateway config.patch '{"browser":{"profiles":{"browseruse":{"cdpUrl":"<cdpUrl-from-response>"}}}}'

Now use the browser tool with profile=browseruse to control it.

List/stop browser sessions

# List active sessions
curl "https://api.browser-use.com/api/v2/browsers" -H "X-Browser-Use-API-Key: $API_KEY"

# Get session status
curl "https://api.browser-use.com/api/v2/browsers/<session-id>" -H "X-Browser-Use-API-Key: $API_KEY"

# Stop session (unused time is refunded)
curl -X PATCH "https://api.browser-use.com/api/v2/browsers/<session-id>" \
  -H "X-Browser-Use-API-Key: $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"status": "stopped"}'

Pricing: $0.06/hour (Pay As You Go) or $0.03/hour (Business). Max 4 hours per session. Billed per minute, refunded for unused time.


2. Profiles

Profiles persist cookies and login state across browser sessions. Create one, log into your accounts in the browser, and reuse it.

# List profiles
curl "https://api.browser-use.com/api/v2/profiles" -H "X-Browser-Use-API-Key: $API_KEY"

# Create profile
curl -X POST "https://api.browser-use.com/api/v2/profiles" \
  -H "X-Browser-Use-API-Key: $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "My Profile"}'

# Delete profile
curl -X DELETE "https://api.browser-use.com/api/v2/profiles/<profile-id>" \
  -H "X-Browser-Use-API-Key: $API_KEY"

Tip: You can also sync cookies from your local Chrome using the Browser Use Chrome extension.


3. Tasks (Subagent)

Run autonomous browser tasks - like a subagent that handles browser interactions for you. Give it a prompt and it completes the task.

Always use browser-use-llm - optimized for browser tasks, 3-5x faster than other models.

curl -X POST "https://api.browser-use.com/api/v2/tasks" \
  -H "X-Browser-Use-API-Key: $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "task": "Go to amazon.com and find the price of the MacBook Air M3",
    "llm": "browser-use-llm"
  }'

Poll for completion

curl "https://api.browser-use.com/api/v2/tasks/<task-id>" -H "X-Browser-Use-API-Key: $API_KEY"

Response:

{
  "status": "finished",
  "output": "The MacBook Air M3 is priced at $1,099",
  "isSuccess": true,
  "cost": "0.02"
}

Status values: pending, running, finished, failed, stopped

Task options

Option Description
task Your prompt (required)
llm Always use browser-use-llm
startUrl Starting page
maxSteps Max actions (default 100)
sessionId Reuse existing session
profileId Use a profile for auth
flashMode Even faster execution
vision Visual understanding

Full API Reference

See references/api.md for all endpoints including Sessions, Files, Skills, and Skills Marketplace.

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

browser-automationcloud-browserai-agentcdpweb-scrapingapi-integrationheadless-browserautomation

同类 Skill