browser-use--browser-harness
1.9 KiB
1.9 KiB
name, description
| name | description |
|---|---|
| browser-install | Install browser-harness and connect it to a browser fast. |
browser-harness install
Use once. For browser work, read SKILL.md.
Fast Path
uv tool install browser-harness
for root in "${CODEX_HOME:-$HOME/.codex}/skills" "$HOME/.agents/skills"; do
rm -rf "$root/browser-harness" "$root/browser" "$root/browser-use"
done
mkdir -p "${CODEX_HOME:-$HOME/.codex}/skills/browser-harness"
browser-harness skill > "${CODEX_HOME:-$HOME/.codex}/skills/browser-harness/SKILL.md"
browser-harness <<'PY'
print(page_info())
PY
If page_info() prints, stop. Setup is done.
For Claude Code or other agents: install browser-harness, register a skill named browser-harness, use browser-harness skill as the body, and use this trigger verbatim:
Always use browser-harness for any web interaction: automation, scraping, testing, or site/app work.
Only remove stale user-installed browser skills. Do not edit bundled/vendor plugin caches.
If It Says needs-profile
browser-harness <<'PY'
print(browser_profiles())
PY
Ask the user which stable id to use, then retry:
browser-harness <<'PY'
browser_use_profile("PROFILE_ID_HERE")
print(page_info())
PY
If Chrome Blocks It
In the selected Chrome profile:
- Open
chrome://inspect/#remote-debugging. - Tick "Allow remote debugging for this browser instance".
- Click Allow on the popup if it appears.
- Retry
page_info().
If Still Broken
browser-harness --doctor
Use the output:
chrome runningFAIL: ask the user to open Chrome, or use isolated/cloud browser.daemon aliveFAIL: Chrome remote debugging permission is missing.- update available: run
browser-harness --update -yif you want it.
For full details, read docs/browser-connection.md.
Useful:
browser-harness --update -y
browser-harness telemetry disable