| name | remote-browser |
| description | Controls a cloud browser from a sandboxed remote machine. Use when the agent is running in a sandbox (no GUI) and needs to navigate websites, interact with web pages, fill forms, take screenshots, or expose local dev servers via tunnels. |
| allowed-tools | Bash(browser-use:*) |
Remote Browser Automation for Sandboxed Agents
This skill is for agents running on sandboxed remote machines (cloud VMs, CI, coding agents) that need to control a browser. Install browser-use and drive a cloud browser — no local Chrome needed.
Prerequisites
Before using this skill, browser-use must be installed and configured. Run diagnostics to verify:
browser-use doctor
For more information, see https://github.com/browser-use/browser-use/blob/main/browser_use/skill_cli/README.md
Core Workflow
Commands use the cloud browser:
browser-use open https://example.com
browser-use state
browser-use click 5
browser-use type "Hello World"
browser-use input 3 "text"
browser-use screenshot
browser-use screenshot page.png
browser-use close
Essential Commands
browser-use open <url>
browser-use back
browser-use scroll down
browser-use state
browser-use screenshot
browser-use screenshot path.png
browser-use click <index>
browser-use type "text"
browser-use input <index> "text"
browser-use keys "Enter"
browser-use select <index> "option"
browser-use eval "document.title"
browser-use get text <index>
browser-use get html --selector "h1"
browser-use wait selector "h1"
browser-use wait text "Success"
browser-use close
browser-use run "task"
browser-use task status <id>
Commands
Navigation & Tabs
browser-use open <url>
browser-use back
browser-use scroll down
browser-use scroll up
browser-use scroll down --amount 1000
browser-use switch <tab>
browser-use close-tab
browser-use close-tab <tab>
Page State
browser-use state
browser-use screenshot
browser-use screenshot path.png
browser-use screenshot --full p.png
Interactions
browser-use click <index>
browser-use type "text"
browser-use input <index> "text"
browser-use keys "Enter"
browser-use keys "Control+a"
browser-use select <index> "option"
browser-use hover <index>
browser-use dblclick <index>
browser-use rightclick <index>
Use indices from browser-use state.
JavaScript & Data
browser-use eval "document.title"
browser-use get title
browser-use get html
browser-use get html --selector "h1"
browser-use get text <index>
browser-use get value <index>
browser-use get attributes <index>
browser-use get bbox <index>
Cookies
browser-use cookies get
browser-use cookies get --url <url>
browser-use cookies set <name> <val>
browser-use cookies set name val --domain .example.com --secure
browser-use cookies set name val --same-site Strict
browser-use cookies set name val --expires 1735689600
browser-use cookies clear
browser-use cookies clear --url <url>
browser-use cookies export <file>
browser-use cookies import <file>
Wait Conditions
browser-use wait selector "h1"
browser-use wait selector ".loading" --state hidden
browser-use wait text "Success"
browser-use wait selector "#btn" --timeout 5000
Python Execution
browser-use python "x = 42"
browser-use python "print(x)"
browser-use python "print(browser.url)"
browser-use python --vars
browser-use python --reset
browser-use python --file script.py
The Python session maintains state across commands. The browser object provides:
browser.url, browser.title, browser.html — page info
browser.goto(url), browser.back() — navigation
browser.click(index), browser.type(text), browser.input(index, text), browser.keys(keys) — interactions
browser.screenshot(path), browser.scroll(direction, amount) — visual
browser.wait(seconds), browser.extract(query) — utilities
Agent Tasks
browser-use run "Fill the contact form with test data"
browser-use run "Extract all product prices" --max-steps 50
browser-use run "task" --llm gpt-4o
browser-use run "task" --llm claude-sonnet-4-20250514
browser-use run "task" --proxy-country uk
browser-use run "task 1" --keep-alive
browser-use run "task 2" --session-id abc-123
browser-use run "task" --flash
browser-use run "task" --wait
browser-use run "task" --thinking
browser-use run "task" --no-vision
browser-use session create --profile <cloud-profile-id> --keep-alive
browser-use run "task" --session-id <session-id>
browser-use run "task" --start-url https://example.com
browser-use run "task" --allowed-domain example.com
browser-use run "task" --metadata key=value
browser-use run "task" --skill-id skill-123
browser-use run "task" --secret key=value
browser-use run "task" --structured-output '{"type":"object"}'
browser-use run "task" --judge
browser-use run "task" --judge-ground-truth "answer"
Task Management
browser-use task list
browser-use task list --limit 20
browser-use task list --status finished
browser-use task list --session <id>
browser-use task list --json
browser-use task status <task-id>
browser-use task status <task-id> -c
browser-use task status <task-id> -v
browser-use task status <task-id> --last 5
browser-use task status <task-id> --step 3
browser-use task status <task-id> --reverse
browser-use task stop <task-id>
browser-use task logs <task-id>
Cloud Session Management
browser-use session list
browser-use session list --limit 20
browser-use session list --status active
browser-use session list --json
browser-use session get <session-id>
browser-use session get <session-id> --json
browser-use session stop <session-id>
browser-use session stop --all
browser-use session create
browser-use session create --profile <id>
browser-use session create --proxy-country uk
browser-use session create --start-url https://example.com
browser-use session create --screen-size 1920x1080
browser-use session create --keep-alive
browser-use session create --persist-memory
browser-use session share <session-id>
browser-use session share <session-id> --delete
Cloud Profile Management
browser-use profile list
browser-use profile list --page 2 --page-size 50
browser-use profile get <id>
browser-use profile create
browser-use profile create --name "My Profile"
browser-use profile update <id> --name "New Name"
browser-use profile delete <id>
Tunnels
browser-use tunnel <port>
browser-use tunnel <port>
browser-use tunnel list
browser-use tunnel stop <port>
browser-use tunnel stop --all
Session Management
browser-use sessions
browser-use close
browser-use close --all
Common Workflows
Exposing Local Dev Servers
Use when you have a dev server on the remote machine and need the cloud browser to reach it.
Core workflow: Start dev server → create tunnel → browse the tunnel URL.
python -m http.server 3000 &
browser-use tunnel 3000
browser-use open https://abc.trycloudflare.com
browser-use state
browser-use screenshot
Note: Tunnels are independent of browser sessions. They persist across browser-use close and can be managed separately. Cloudflared must be installed — run browser-use doctor to check.
Running Subagents
Use cloud sessions to run autonomous browser agents in parallel.
Core workflow: Launch task(s) with run → poll with task status → collect results → clean up sessions.
- Session = Agent: Each cloud session is a browser agent with its own state
- Task = Work: Jobs given to an agent; an agent can run multiple tasks sequentially
- Session lifecycle: Once stopped, a session cannot be revived — start a new one
Launching Tasks
browser-use run "Search for AI news and summarize top 3 articles"
browser-use run "Research competitor A pricing"
browser-use run "Research competitor B pricing"
browser-use run "Research competitor C pricing"
browser-use run "Log into example.com" --keep-alive
browser-use task status task-1
browser-use run "Export settings" --session-id sess-123
Managing & Stopping
browser-use task list --status finished
browser-use task stop task-abc
browser-use session stop sess-123
browser-use session stop --all
Monitoring
Task status is designed for token efficiency. Default output is minimal — only expand when needed:
| Mode | Flag | Tokens | Use When |
|---|
| Default | (none) | Low | Polling progress |
| Compact | -c | Medium | Need full reasoning |
| Verbose | -v | High | Debugging actions |
browser-use task status <id> -c --last 5
browser-use task status <id> -v --step 10
Live view: browser-use session get <session-id> returns a live URL to watch the agent.
Detect stuck tasks: If cost/duration in task status stops increasing, the task is stuck — stop it and start a new agent.
Logs: browser-use task logs <task-id> — only available after task completes.
Global Options
| Option | Description |
|---|
--session NAME | Named session (default: "default") |
--browser MODE | Browser mode (only if multiple modes installed) |
--profile ID | Cloud profile ID for persistent cookies. Works with open, session create, etc. — does NOT work with run (use --session-id instead) |
--json | Output as JSON |
Tips
- Run
browser-use doctor to verify installation before starting
- Always run
state first to see available elements and their indices
- Sessions persist across commands — the browser stays open until you close it
- Tunnels are independent — they persist across
browser-use close
- Use
--json for programmatic parsing
tunnel is idempotent — calling it again for the same port returns the existing URL
Troubleshooting
"Browser mode 'chromium' not installed"?
- Expected for sandboxed agents — remote mode only supports cloud browsers
- Run
browser-use doctor to verify configuration
Cloud browser won't start?
- Run
browser-use doctor to check configuration
Tunnel not working?
- Verify cloudflared is installed:
which cloudflared
browser-use tunnel list to check active tunnels
browser-use tunnel stop <port> and retry
Element not found?
- Run
browser-use state to see current elements
browser-use scroll down then browser-use state — element might be below fold
Session reuse fails after task stop:
Create a new session instead:
browser-use session create --profile <profile-id> --keep-alive
browser-use run "new task" --session-id <new-session-id>
Task stuck at "started": Check cost with task status — if not increasing, the task is stuck. View live URL with session get, then stop and start a new agent.
Sessions persist after tasks complete: Run browser-use session stop --all to clean up.
Cleanup
Always close resources when done:
browser-use close
browser-use session stop --all
browser-use tunnel stop --all