Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from bundle
Skill for Browser Use CLI local automation, real-browser mode, sessions, cloud/platform flows, and tested command patterns.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
SKILL.md
1---2name: browser-use-cli3description: "Use when the task needs Browser Use CLI for fast persistent browser automation, browser daemon workflows, real Chrome profile reuse, cloud browser/API management, Browser Use tunnels, or Browser Use MCP mode. Triggers include requests to use `browser-use`, test Browser Use locally, automate a site with Browser Use, connect to Browser Use cloud, or manage Browser Use sessions/profiles from the terminal."4---56# Browser Use CLI78Use this skill for terminal-driven browser automation with `browser-use`.9It covers both local browser control and Browser Use cloud/platform workflows.1011## Start by Choosing the Mode1213Choose one mode before doing anything else:14151. Local Chromium mode162. Real browser mode173. Remote/cloud mode184. MCP mode1920Do not mix them casually.21Pick the simplest mode that matches the task.2223## Prefer the Right Mode2425### Use local Chromium mode when2627- the task is a local browser automation flow28- no existing login session is required29- you want a reproducible headless/default environment30- screenshots, state inspection, click/input, and JS execution are enough3132### Use real browser mode when3334- the task depends on existing Chrome logins/cookies35- the user wants to reuse a local browser profile36- site behavior differs in a real profile context37- you need to connect to an already running browser or Chrome profile3839### Use remote/cloud mode when4041- the task needs Browser Use cloud browsers42- you need a Browser Use API key workflow43- you need cloud tasks, workspaces, profiles, or billing/API operations44- you need tunnels for local dev servers exposed to cloud browsers4546### Use MCP mode when4748- the user wants Browser Use exposed as an MCP server49- another agent/client should drive Browser Use over stdio JSON-RPC5051## Core Local Workflow5253Default local flow:54551. `browser-use open <url>`562. `browser-use state`573. interact with indices using `click`, `input`, `type`, `select`, `hover`, `keys`584. inspect again with `state`595. capture with `screenshot` when needed606. finish with `browser-use close`6162Treat `state` as the main discovery step.63Element indices come from `state` and are the basis for later actions.6465## Most Useful Commands6667### Navigation and inspection6869- `browser-use open <url>`70- `browser-use back`71- `browser-use state`72- `browser-use screenshot [path]`73- `browser-use get title`74- `browser-use get html`75- `browser-use eval "<js>"`7677### Interaction7879- `browser-use click <index>`80- `browser-use input <index> "text"`81- `browser-use type "text"`82- `browser-use keys "Enter"`83- `browser-use select <index> "value"`84- `browser-use hover <index>`8586### Waiting and retrieval8788- `browser-use wait selector "css"`89- `browser-use wait text "Success"`90- `browser-use get text <index>`91- `browser-use get value <index>`92- `browser-use get attributes <index>`9394### Session management9596- `browser-use --session NAME ...`97- `browser-use sessions`98- `browser-use close`99- `browser-use close --all`100101## Real Browser Mode102103Use real mode when login reuse matters.104105Typical patterns:106107- `browser-use --browser real --profile "Default" open https://gmail.com`108- `browser-use --browser real --profile "Profile 1" open <url>`109- `browser-use --browser real open <url>`110111If a site requires an already running browser or existing local profile context, prefer real mode over local Chromium mode.112113## Cloud / Platform Mode114115Cloud mode depends on Browser Use API auth.116117Core commands:118119- `browser-use cloud login <api-key>`120- `browser-use cloud connect`121- `browser-use cloud v2 GET <path>`122- `browser-use cloud v2 POST <path> '<json>'`123- `browser-use cloud v2 poll <task-id>`124- `browser-use cloud logout`125126Use cloud mode when the task is about Browser Use platform objects, cloud browsers, tasks, profiles, or workspaces.127128## Tunnels129130Use Browser Use tunnels when a cloud browser must reach a local dev server.131132Core commands:133134- `browser-use tunnel <port>`135- `browser-use tunnel list`136- `browser-use tunnel stop <port>`137- `browser-use tunnel stop --all`138139## MCP Mode140141The CLI can run as an MCP server via stdio.142Use `browser-use --mcp` when another client/agent needs Browser Use tools over JSON-RPC.143144Treat this as a separate integration surface.145Do not confuse it with ordinary terminal usage.146147## Tested on This Machine148149The following was actually exercised successfully in this environment:150151- `uv tool install browser-use`152- `browser-use doctor`153- `browser-use open https://example.com`154- `browser-use state`155- `browser-use get title`156- `browser-use screenshot generated/browser_use_test/chromium_example.png`157- `browser-use --browser real open https://example.com`158- `browser-use --browser real state`159- `browser-use sessions`160- `browser-use close --all`161162Important nuance:163164- `browser-use install` attempted to install system dependencies and failed because Linux dependency installation wanted `sudo`165- despite that, local `open/state/screenshot` still worked in this environment166167## Practical Guidance168169- Start with local Chromium mode unless logins or cloud are required.170- Use named sessions for parallel work.171- Use `state` after every meaningful page change.172- Close sessions when done.173- For cloud mode, authenticate first.174- For remote sites with login state, prefer real browser mode.175176## References177178Read these bundled references when needed:179180- `references/quickstart.md` for the short command flow181- `references/cloud-and-platform.md` for cloud/API/tunnel usage182- `references/tested-notes.md` for what was actually validated here183