📦 browser-cli — browser-命令行工具

v1.0.0

Automate browser tasks from the command line with browser-use, including navigation, interaction, screenshots, tabs, cookies, JavaScript, cloud browsing, and...

0· 0·0 当前·0 累计
0
安全扫描
VirusTotal
Pending
查看报告
OpenClaw
可疑
high confidence
The 技能's described purpose (命令行工具 browser 自动化) is plausible, but the 运行time instructions encourage executing remote 安装 scripts, creating a persistent daemon with 访问 to local browser 性能分析s/cookies and cloud browsing (API key) while not declaring those 凭证s—these mismatches and risky 安装 steps warrant caution.
评估建议
Before 安装ing or 运行ning this 技能: 1) Treat the `curl | bash` 安装 line as high risk — inspect the 安装.sh script on the server (https://browser-use.com/命令行工具/安装.sh) before executing it. 2) Prefer 安装ing from a vetted package 仓库 (验证 the PyPI package 'browser-use' and its publisher) or 运行 in an isolated VM/contAIner. 3) Be aware the 工具 can 访问 your real Chrome 性能分析 (cookies, 记录ins, 扩展s) and can 导出/导入 cookies and expose local servers via tunnels — do not connect sensitive accounts or data unless you fully ...
详细分析 ▾
用途与能力
Name and description match the 技能.md functionality: 命令行工具-based browser 自动化 (navigation, interaction, screenshots, JS, tabs, cookies, cloud browsers). However, several capabilities (using a user's real Chrome 性能分析, 导出ing cookies, exposing local servers via tunnels, and cloud browsing requiring an API key) expand scope beyond a minimal '自动化 辅助工具' and are not represented in required env/config metadata, creating an alignment gap.
指令范围
The 技能.md explicitly instructs 运行ning remote 安装 commands (curl | bash), 下载ing Chromium, 启动ing a background daemon that stays alive, 访问ing real Chrome 性能分析s (which preserves 记录ins/cookies/扩展s), 导出ing/导入ing cookies, 上传ing files, and exposing local servers via tunnels — all of which involve reading/transmitting sensitive local data or opening inbound/outbound network surfaces. The doc also 列出s 'cloud connect' that requires an API key but the 技能 does not declare or require that 凭证. Those instructions go beyond simple 命令行工具 图形界面dance and give the 代理 (or user-followed 自动化) broad 访问 to local secrets and network 端点s.
安装机制
Although the 技能 has no formal 安装 spec, the 图形界面dance tells users/代理s to 运行 a remote 安装er via `curl -fsSL https://browser-use.com/命令行工具/安装.sh | bash` (high-risk pattern: fetching and executing arbitrary remote script). It also suggests `pip 安装 browser-use` and that the 工具 will 下载 Chromium. Unverified domAIn and remote-exec pattern increase supply-chAIn risk; the instructions directly encourage writing and executing external code and binaries on the host.
凭证需求
Registry metadata shows no required env vars or primary 凭证, yet the 技能.md references features that need 凭证s or sensitive 访问: 'cloud connect' (requires an API key), connecting to an existing browser 性能分析 (访问 to cookies, saved 记录ins, 扩展s), and CDP URLs for remote 调试ging. The lack of declared env vars/config paths is inconsistent with these capabilities and undercuts transparency about what secrets or files the 工具 will need 访问 to.
持久化与权限
The instructions 状态 a background daemon 启动s automatically on first command and remAIns alive until explicitly closed — creating a persistent process with ongoing 访问 to browser 状态 and the ability to accept further commands. While the 技能 is not force-included (always:false), 启动ing a persistent local 服务 combined with the ability to use real browser 性能分析s, tunnels, and cloud connections increases the potential blast radius if the 安装er or daemon is malicious or compromised.
安全有层次,运行前请审查代码。

运行时依赖

无特殊依赖

安装命令

点击复制
官方npx clawhub@latest install browser-cli
镜像加速npx clawhub@latest install browser-cli --registry https://cn.longxiaskill.com

技能文档

browser-use 命令行工具 技能 What This 技能 Covers

Use this 技能 any time you need to automate a browser from the command line using browser-use. This includes navigating pages, 命令行工具cking/typing/filling forms, taking screenshots, 运行ning JavaScript, managing tabs, handling cookies, driving cloud browsers, and exposing local servers via tunnels.

安装ation Prerequisites 平台 Requirements macOS Python 3.11+ Linux Python 3.11+ Windows Git for Windows + Python 3.11+ One-line 安装 (Recommended) # macOS / Linux curl -fsSL https://browser-use.com/命令行工具/安装.sh | bash

# Windows (PowerShell) & "C:\Program Files\Git\bin\bash.exe" -c 'curl -fsSL https://browser-use.com/命令行工具/安装.sh | bash'

Manual 安装 uv pip 安装 browser-use browser-use 安装 # 下载s Chromium browser-use doctor # 验证s 设置up

Post-安装 健康 检查 browser-use doctor # prints diagnostics + config browser-use 设置up # optional interactive wizard

Core Mental 模型

The 工作流 is always:

Open a page → browser-use open Inspect the page → browser-use 状态 (returns numbered element indices) Interact using those indices → browser-use 命令行工具ck 3, browser-use 输入 1 "text" Repeat — the daemon keeps the browser alive between commands (~50ms latency)

A background daemon process 启动s automatically on first command and stays alive until you browser-use close.

Browser Modes # Default: headless Chromium (invisible) browser-use open https://example.com

# Visible window browser-use --headed open https://example.com

# Use your real Chrome (preserves 记录ins, cookies, 扩展s) browser-use connect

# Use a specific Chrome 性能分析 browser-use --性能分析 "Default" open https://gmAIl.com

# Zero-config cloud browser (requires API key) browser-use cloud connect

# Connect to existing browser via CDP browser-use --cdp-url http://localhost:9222 open https://example.com browser-use --cdp-url ws://localhost:9222/dev工具s/browser/... 状态

After connect or cloud connect, all subsequent commands automatically tar获取 that browser — no extra flags needed.

All Commands Navigation browser-use open # Navigate to URL browser-use back # Go back in 历史 browser-use scroll down # Scroll down browser-use scroll up # Scroll up browser-use scroll down --amount 1000 # Scroll by pixel amount

Inspection browser-use 状态 # 获取 URL, title, and numbered 命令行工具ckable elements browser-use screenshot 输出.png # Take screenshot to file browser-use screenshot # Screenshot as base64 (stdout) browser-use screenshot --full page.png # Full-page screenshot

Interaction browser-use 命令行工具ck <索引> # 命令行工具ck element by 索引 (from 状态) browser-use 命令行工具ck # 命令行工具ck at pixel coordinates browser-use type "text" # Type into currently focused element browser-use 输入 <索引> "text" # 命令行工具ck element then type (most common for forms) browser-use keys "Enter" # 发送 keyboard key browser-use keys "Control+a" # 发送 key combination browser-use select <索引> "value" # Select dropdown option browser-use 上传 <索引> /path/to/file # 上传 file to file 输入 browser-use hover <索引> # Hover over element browser-use dbl命令行工具ck <索引> # Double-命令行工具ck element browser-use right命令行工具ck <索引> # Right-命令行工具ck element

Tabs browser-use tab 列出 # 列出 all open tabs browser-use tab new # Open blank tab browser-use tab new https://url.com # Open tab with URL browser-use tab switch <索引> # Switch to tab by 索引 browser-use tab close # Close current tab browser-use tab close <索引> # Close specific tab

Cookies browser-use cookies 获取 # 获取 all cookies browser-use cookies 获取 --url https://site.com # 获取 cookies for URL browser-use cookies 设置 name value # 设置 a cookie browser-use cookies 设置 name val --domAIn .example.com --安全 browser-use cookies 设置 name val --same-site Strict # Strict | Lax | None browser-use cookies 设置 name val --expires 1735689600 # Unix timestamp browser-use cookies clear # Clear all cookies browser-use cookies clear --url https://site.com browser-use cookies 导出 cookies.json # 导出 to JSON browser-use cookies 导入 cookies.json # 导入 from JSON

WAIting browser-use wAIt selector ".btn" # WAIt for element to be visible browser-use wAIt selector ".loading" --状态 hidden # WAIt for element to dis应用ear browser-use wAIt text "成功" # WAIt for text to 应用ear on page browser-use wAIt selector "h1" --timeout 5000 # Custom timeout in ms

获取 (In格式化ion Retrieval) browser-use 获取 title # 获取 page title browser-use 获取 html # 获取 full page HTML browser-use 获取 html --selector "mAIn" # 获取 HTML of specific element browser-use 获取 text <索引>

数据来源ClawHub ↗ · 中文优化:龙虾技能库