What it does
Let Claude Code, Codex or Cursor use your real Chrome, logged in as you. One prompt to set up. Open source, MIT.
- Connects Instruction files the AI reads, with steps that call an outside service
- Account or key Some steps need a key for Browser Use (per the README)
- Category Coding
For makers: add a badge to your README
If you made this, paste this code into your README. The badge links back to this page.
[](https://mcp.popnx.com/en/skills/browser-use-browser-harness)Use together with
MCP servers that connect the AI to services for the same work
Fallow
Codebase intelligence for TypeScript and JavaScript, exposed as structured MCP analysis tools.
Desktop Commander
MCP server for terminal commands, file operations, and process management
Similar Skills
Same kind of work, ordered like the Skills list
| This one browser-harness | rea | andrej-karpathy-skills | graphify | MoneyPrinterTurbo | |
|---|---|---|---|---|---|
| Maker | browser-use | morluto | multica-ai | Graphify-Labs | harry0703 |
| Skills | 1 | 1 | 1 | 1 | 1 |
| GitHub stars | 19,098 | 463,670 | 233,682 | 148,887 | 143,987 |
| Last code change | Nov 16, 2026 | Nov 17, 2026 | Apr 20, 2026 | Nov 17, 2026 | Nov 16, 2026 |
| License | MIT | MIT | – | Apache-2.0 | MIT |
1 skills (instruction sets) by browser-use that an AI reads and follows · not an MCP server
How a Skill differs from MCP
MCP = the hands
Connects the AI to an outside service or data, such as reading Notion or creating an invoice. A program or server has to be running.
Skill = the manual
A text file that teaches the AI how to do a task. It connects to nothing.
Some overlap: a few Skills run scripts that call tools, and a few MCP servers only send knowledge. Start from the task you want done.
Works with
Claude CodeCodexCursorGemini CLIGitHub Copilot
From the maker’s README and the folders in the repo
Install
Is it safe?
- Who made it
GitHub account browser-use (organization), 1 years old
- Use and upkeep
★ 19,098 stars · code last changed Nov 16, 2026
- Any scripts?
36 scripts that can run on a computer: browser-harness, agent-workspace/agent_helpers.py, agent-workspace/domain-skills/browser-use-cloud/cleanup-zombies.py, src/browser_harness/__init__.py and 32 more
- Uses the internet?
Scripts that go online: tests/unit/test_skill.py, tests/unit/test_brave_origin.py
- Changes machine-wide settings?
No hooks or writes to machine settings found
Checked automatically from the repo files at commit 1894799 (read only, nothing was run). Not a safety guarantee: read it and decide for yourself
First: which AI do you use?
Pick your app and this page shows only how to install it there
Option 1Upload to claude.ai (web and app)
Files are byte-for-byte the same as on GitHub at commit 1894799 · View on GitHub ↗
36 scripts
Once uploaded it runs on Claude’s systems, not on your computer. No need to unzip
Look inside before downloading
All 241 files · 4.5 MB
.claude-plugin/marketplace.json1 KB.claude-plugin/plugin.json1 KB.env.example1 KBAGENTS.md2 KBCONTRIBUTING.md1 KBLICENSE1 KBREADME.md9 KBSKILL.md14 KBagent-workspace/agent_helpers.py1 KBagent-workspace/domain-skills/BOSS-zhipin/chat.md13 KBagent-workspace/domain-skills/BOSS-zhipin/job-search.md13 KBagent-workspace/domain-skills/BOSS-zhipin/navigation.md3 KBagent-workspace/domain-skills/admin/microsoft-365.md1 KBagent-workspace/domain-skills/agentlist/discovery.md6 KBagent-workspace/domain-skills/alaska/checkout.md6 KBagent-workspace/domain-skills/ap/namecheap.md1 KBagent-workspace/domain-skills/apollo/search-and-lists.md5 KBagent-workspace/domain-skills/app/apollo.md1 KBagent-workspace/domain-skills/app/smartlead.md1 KBagent-workspace/domain-skills/archive-org/scraping.md15 KBagent-workspace/domain-skills/art-institute-chicago/scraping.md15 KBagent-workspace/domain-skills/articulate-rise/code-blocks.md9 KBagent-workspace/domain-skills/arxiv-bulk/scraping.md14 KBagent-workspace/domain-skills/arxiv/scraping.md13 KBagent-workspace/domain-skills/atlas/overview.md3 KBagent-workspace/domain-skills/aviationweather/scraping.md30 KBagent-workspace/domain-skills/bank-of-canada/scraping.md32 KBagent-workspace/domain-skills/bbb/scraping.md24 KBagent-workspace/domain-skills/bible-api/scraping.md13 KBagent-workspace/domain-skills/bigbang-hr/checkout.md5 KBagent-workspace/domain-skills/bilbasen/search.md4 KBagent-workspace/domain-skills/bilibili/navigation.md11 KBagent-workspace/domain-skills/bluesky/scraping.md35 KBagent-workspace/domain-skills/booking-com/scraping.md22 KBagent-workspace/domain-skills/booking/frontier-checkout.md1 KBagent-workspace/domain-skills/browser-use-cloud/cleanup-zombies.py6 KBagent-workspace/domain-skills/browser-use-cloud/cloud.md9 KBagent-workspace/domain-skills/capterra/scraping.md18 KBagent-workspace/domain-skills/carbon-intensity/scraping.md25 KBagent-workspace/domain-skills/centilebrain/generate-estimates.md5 KBagent-workspace/domain-skills/clinicaltrials-gov/scraping.md29 KBagent-workspace/domain-skills/coingecko/scraping.md14 KBagent-workspace/domain-skills/coinmarketcap/scraping.md17 KBagent-workspace/domain-skills/costco/scraping.md25 KBagent-workspace/domain-skills/craigslist/scraping.md15 KBagent-workspace/domain-skills/crossref/scraping.md23 KBagent-workspace/domain-skills/ctrip/hotels.md10 KBagent-workspace/domain-skills/dashboard/stripe.md1 KBagent-workspace/domain-skills/defillama/scraping.md33 KBagent-workspace/domain-skills/dev-to/scraping.md13 KBagent-workspace/domain-skills/dexscreener/scraping.md45 KBagent-workspace/domain-skills/docker-hub/scraping.md33 KBagent-workspace/domain-skills/docs/google-sheets.md1 KBagent-workspace/domain-skills/duckduckgo/scraping.md15 KBagent-workspace/domain-skills/eurostat/scraping.md31 KBagent-workspace/domain-skills/eventbrite/scraping.md15 KBagent-workspace/domain-skills/expedia/api.md3 KBagent-workspace/domain-skills/expedia/automation.md5 KBagent-workspace/domain-skills/expedia/flights-search.md10 KBagent-workspace/domain-skills/federal-register/scraping.md24 KBagent-workspace/domain-skills/feishu/docx-scraping.md5 KBagent-workspace/domain-skills/finviz/scraping.md21 KBagent-workspace/domain-skills/flighthub/flights-search.md7 KBagent-workspace/domain-skills/flightradar24/scraping.md20 KBagent-workspace/domain-skills/flipkart/shopping.md10 KBagent-workspace/domain-skills/flyfrontier/checkout.md1 KBagent-workspace/domain-skills/fotmob/scraping.md21 KBagent-workspace/domain-skills/framer/editor.md7 KBagent-workspace/domain-skills/frankfurter/scraping.md23 KBagent-workspace/domain-skills/free-dictionary/scraping.md15 KBagent-workspace/domain-skills/frontier/checkout.md7 KBagent-workspace/domain-skills/gbif/scraping.md35 KBagent-workspace/domain-skills/gemini/spark-skills.md2 KBagent-workspace/domain-skills/github/repo-actions.md3 KBagent-workspace/domain-skills/github/scraping.md8 KBagent-workspace/domain-skills/gmail/compose.md5 KBagent-workspace/domain-skills/goodreads/scraping.md19 KBagent-workspace/domain-skills/google-maps/scraping.md21 KBagent-workspace/domain-skills/google-patents/scraping.md27 KBagent-workspace/domain-skills/google-play/scraping.md32 KBagent-workspace/domain-skills/google-sheets/writing-cells.md3 KBagent-workspace/domain-skills/google-trends/scraping.md21 KBagent-workspace/domain-skills/google/flights-multi-city.md5 KBagent-workspace/domain-skills/hackernews/scraping.md8 KBagent-workspace/domain-skills/home-depot/scraping.md43 KBagent-workspace/domain-skills/hubspot/private-app-webhooks.md6 KBagent-workspace/domain-skills/huggingface/scraping.md32 KBagent-workspace/domain-skills/iherb/product-labels.md3 KBagent-workspace/domain-skills/imdb/scraping.md12 KBagent-workspace/domain-skills/itch-io/scraping.md17 KBagent-workspace/domain-skills/jetblue/checkout.md8 KBagent-workspace/domain-skills/lichess/scraping.md18 KBagent-workspace/domain-skills/loom/folder-enumeration.md9 KBagent-workspace/domain-skills/loom/read-recording.md5 KBagent-workspace/domain-skills/lulu/account-currency.md2 KBagent-workspace/domain-skills/manus/tasks.md12 KBagent-workspace/domain-skills/mercari/scraping.md25 KBagent-workspace/domain-skills/mermaid/render.md3 KBagent-workspace/domain-skills/met-museum/scraping.md16 KBagent-workspace/domain-skills/microsoft-365/domain-setup.md2 KBagent-workspace/domain-skills/musicbrainz/scraping.md19 KBagent-workspace/domain-skills/namecheap/advanced-dns.md2 KBagent-workspace/domain-skills/nasa/scraping.md12 KBagent-workspace/domain-skills/nhtsa/scraping.md23 KBagent-workspace/domain-skills/noaa/scraping.md17 KBagent-workspace/domain-skills/nobel-prize/scraping.md21 KBagent-workspace/domain-skills/nvd/scraping.md25 KBagent-workspace/domain-skills/ods/fact-sheets.md2 KBagent-workspace/domain-skills/oecd/scraping.md30 KBagent-workspace/domain-skills/open-library/scraping.md19 KBagent-workspace/domain-skills/open-trivia/scraping.md21 KBagent-workspace/domain-skills/openalex/scraping.md18 KBagent-workspace/domain-skills/openfda/scraping.md27 KBagent-workspace/domain-skills/openstreetmap/scraping.md20 KBagent-workspace/domain-skills/ourworldindata/scraping.md28 KBagent-workspace/domain-skills/outlook/webmail-compose.md2 KBagent-workspace/domain-skills/package-registries/npm-pypi.md16 KBagent-workspace/domain-skills/partsouq/vin-lookup.md2 KBagent-workspace/domain-skills/perplexity/computer.md16 KBagent-workspace/domain-skills/pokeapi/scraping.md31 KBagent-workspace/domain-skills/police-uk/scraping.md26 KBagent-workspace/domain-skills/polymarket/scraping.md13 KBagent-workspace/domain-skills/poshmark/scraping.md25 KBagent-workspace/domain-skills/producthunt/scraping.md11 KBagent-workspace/domain-skills/pubmed/scraping.md18 KBagent-workspace/domain-skills/qbo/report-export.md6 KBagent-workspace/domain-skills/reddit/scraping.md8 KBagent-workspace/domain-skills/redfin/scraping.md33 KBagent-workspace/domain-skills/rest-countries/scraping.md10 KBagent-workspace/domain-skills/rightmove/scraping.md33 KBagent-workspace/domain-skills/scryfall/scraping.md30 KBagent-workspace/domain-skills/sec-edgar/scraping.md16 KBagent-workspace/domain-skills/shopify-admin/README.md2 KBagent-workspace/domain-skills/shopify-admin/embedded-apps.md3 KBagent-workspace/domain-skills/shopify-admin/forms-app.md2 KBagent-workspace/domain-skills/shopify-admin/knowledge-base.md4 KBagent-workspace/domain-skills/shopify-admin/polaris-inputs.md5 KBagent-workspace/domain-skills/shopify-storefronts/scraping.md25 KBagent-workspace/domain-skills/slack/files.md3 KBagent-workspace/domain-skills/sleeper/scraping.md38 KBagent-workspace/domain-skills/smartlead/mailbox-warmup.md3 KBagent-workspace/domain-skills/sofascore/scraping.md25 KBagent-workspace/domain-skills/steam/scraping.md22 KBagent-workspace/domain-skills/stripe/account-sandboxes.md2 KBagent-workspace/domain-skills/substack/scraping.md12 KBagent-workspace/domain-skills/supabase/dashboard.md3 KBagent-workspace/domain-skills/swapi/scraping.md16 KBagent-workspace/domain-skills/swiss-transport/scraping.md30 KBagent-workspace/domain-skills/tasksquad-ai/agents.md3 KBagent-workspace/domain-skills/tasksquad-ai/auth.md3 KBagent-workspace/domain-skills/tasksquad-ai/tasks.md6 KBagent-workspace/domain-skills/tcgplayer/scraping.md23 KBagent-workspace/domain-skills/tfl/scraping.md30 KBagent-workspace/domain-skills/thetechgeeks/pricing.md3 KBagent-workspace/domain-skills/thorne/product-labels.md2 KBagent-workspace/domain-skills/ticketmaster/scraping.md22 KBagent-workspace/domain-skills/treasury-fiscal-data/scraping.md46 KBagent-workspace/domain-skills/trello/boards-and-lists.md4 KBagent-workspace/domain-skills/trulia/scraping.md25 KBagent-workspace/domain-skills/tvmaze/scraping.md40 KBagent-workspace/domain-skills/twitch/scraping.md41 KBagent-workspace/domain-skills/uniprot/scraping.md34 KBagent-workspace/domain-skills/upwork/scraping.md19 KBagent-workspace/domain-skills/usgs-earthquake/scraping.md22 KBagent-workspace/domain-skills/vercel/archive-and-audit.md3 KBagent-workspace/domain-skills/vercel/observability.md2 KBagent-workspace/domain-skills/vercel/vercel.md7 KBagent-workspace/domain-skills/wayback-machine/scraping.md11 KBagent-workspace/domain-skills/weather/scraping.md17 KBagent-workspace/domain-skills/wehotel/hotels.md10 KBagent-workspace/domain-skills/wellfound/scraping.md21 KBagent-workspace/domain-skills/weread/read.md9 KBagent-workspace/domain-skills/wikidata/scraping.md40 KBagent-workspace/domain-skills/wikipedia/scraping.md28 KBagent-workspace/domain-skills/world-bank/scraping.md12 KBagent-workspace/domain-skills/x/article-source-recovery.md2 KBagent-workspace/domain-skills/x/posting.md3 KBagent-workspace/domain-skills/xiaohongshu/scraping.md6 KBagent-workspace/domain-skills/youtube/playback.md4 KBagent-workspace/domain-skills/youtube/scraping.md18 KBbrowser-harness1 KBdocs/MCP.md2 KBdocs/allow-remote-debugging.png188 KBdocs/download-latest-20-x-videos.gif1.3 MBdocs/setup-remote-debugging.png50 KBdocs/snap-linux-headless.md2 KBinstall.md4 KBinteraction-skills/connection.md2 KBinteraction-skills/cookies.md1 KBinteraction-skills/cross-origin-iframes.md1 KBinteraction-skills/dialogs.md2 KBinteraction-skills/downloads.md1 KBinteraction-skills/drag-and-drop.md1 KBinteraction-skills/dropdowns.md1 KBinteraction-skills/iframes.md1 KBinteraction-skills/make-video.md4 KBinteraction-skills/network-requests.md1 KBinteraction-skills/print-as-pdf.md1 KBinteraction-skills/profile-sync.md5 KBinteraction-skills/screenshots.md1 KBinteraction-skills/scrolling.md1 KBinteraction-skills/shadow-dom.md1 KBinteraction-skills/tabs.md2 KBinteraction-skills/uploads.md1 KBinteraction-skills/viewport.md1 KBpyproject.toml1 KBskills/browser-harness/references/install.md3 KBsrc/browser_harness/__init__.py1 KBsrc/browser_harness/_ipc.py9 KBsrc/browser_harness/admin.py65 KBsrc/browser_harness/auth.py18 KBsrc/browser_harness/daemon.py40 KBsrc/browser_harness/helpers.py27 KBsrc/browser_harness/macos.py4 KBsrc/browser_harness/mcp_cli.py1 KBsrc/browser_harness/paths.py1 KBsrc/browser_harness/recorder.py12 KBsrc/browser_harness/run.py14 KBsrc/browser_harness/telemetry.py9 KBsrc/browser_harness/video-template.html69 KBsrc/browser_harness/video.py29 KBsrc/browser_harness/video_render.py20 KBsrc/mcp_server.py8 KBtests/__init__.py1 KBtests/conftest.py1 KBtests/integration/__init__.py1 KBtests/integration/test_js.py6 KBtests/unit/__init__.py1 KBtests/unit/test_admin.py60 KBtests/unit/test_auth.py1 KBtests/unit/test_brave_origin.py3 KBtests/unit/test_daemon.py31 KBtests/unit/test_helpers.py28 KBtests/unit/test_ipc.py5 KBtests/unit/test_macos.py4 KBtests/unit/test_mcp_cli.py1 KBtests/unit/test_mcp_server.py1 KBtests/unit/test_recorder.py3 KBtests/unit/test_run.py14 KBtests/unit/test_skill.py1 KBtests/unit/test_video_render.py1 KB
Download browser-harness.zip
Open Skills on claude.ai and upload
+Create skillUpload a skillpick browser-harness.zip
No Upload button? Turn on file creation first
SettingsCapabilitiesCode execution and file creation
Turn on Code execution and file creation first (newer menus: Create and edit files) · personal plans: Settings → Capabilities · Team/Enterprise: an admin turns it on under Organization settings → Plugins & skills · every plan, including Free
Upload once; it works in claude.ai and Claude Desktop, and in recent Claude Code signed in with a Claude account (not with an API key)
Cowork and cloud sessions use the skills turned on in your claude.ai account, not ~/.claude/skills on your computer (Claude Desktop scheduled tasks run locally and still load it)
Checked against official docs Nov 12, 2026 · Source: support.claude.com, support.claude.com, code.claude.com
Option 1Let Claude Code install it
Copy this sentence and paste it into a Claude Code chat
For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
Restart Claude Code, then type /browser-harness or ask for a matching task and Claude picks it up
Checked against official docs Nov 12, 2026 · Source: code.claude.com
For Terminal users
A Skill is instructions the AI will follow. Read the files before installing, and install only from makers you trust.
Open Terminal
Mac: press Command+Space and type Terminal · Windows: the command below does not work in PowerShell; use “Let AI install it” above instead
Copy the skill folder to ~/.claude/skills
This downloads the repo to a temporary folder and copies only the folders that contain a SKILL.md
git clone --depth 1 https://github.com/browser-use/browser-harness.git /tmp/popnx-skill-browser-use-browser-harness-1894799 && mkdir -p ~/.claude/skills && cp -R '/tmp/popnx-skill-browser-use-browser-harness-1894799/.' ~/.claude/skills/browser-harnessRestart Claude Code, then type /browser-harness or ask for a matching task and Claude picks it up
ChatGPT desktop app
The ChatGPT desktop app has Codex built in, and Codex reads skills from ~/.agents/skills
Option 1Let ChatGPT install it
Open Codex in the ChatGPT desktop app and paste this sentence into the chat
The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
Option 2Put the folder there yourself
Put the browser-harness folder at ~/.agents/skills/browser-harness
~ is your home folder ($HOME)
Without Terminal: download the ZIP, unzip it and move the browser-harness folder to ~/.agents/skills
For Terminal users
A Skill is instructions the AI will follow. Read the files before installing, and install only from makers you trust.
Open Terminal
Mac: press Command+Space and type Terminal · Windows: the command below does not work in PowerShell; use “Let AI install it” above instead
Copy the skill folder to ~/.agents/skills
This downloads the repo to a temporary folder and copies only the folders that contain a SKILL.md
git clone --depth 1 https://github.com/browser-use/browser-harness.git /tmp/popnx-skill-browser-use-browser-harness-1894799 && mkdir -p ~/.agents/skills && cp -R '/tmp/popnx-skill-browser-use-browser-harness-1894799/.' ~/.agents/skills/browser-harness
After installing
- ChatGPT desktop app: open Skills in the sidebar to see that the skill is there
- To use it: in ChatGPT type @ and pick the skill · in Codex CLI or the IDE extension run /skills or type $ and the skill name
- Codex picks up newly installed skills by itself; if one does not show up, restart Codex
Checked against official docs Nov 15, 2026 · Source: learn.chatgpt.com
ChatGPT on the web and mobile
Skills you install yourself do not work here; only skills that come with a plugin from the directory
To use this skill with ChatGPT, use the ChatGPT desktop app as above
Checked against official docs Nov 15, 2026 · Source: learn.chatgpt.com
Option 1Let Codex install it
Copy this sentence and paste it into a Codex chat · Works in Codex inside the ChatGPT desktop app, Codex CLI and the IDE extension
For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
Codex picks up newly installed skills by itself; if one does not show up, restart Codex · To use it: in ChatGPT type @ and pick the skill · in Codex CLI or the IDE extension run /skills or type $ and the skill name
Checked against official docs Nov 15, 2026 · Source: learn.chatgpt.com
For Terminal users
A Skill is instructions the AI will follow. Read the files before installing, and install only from makers you trust.
Open Terminal
Mac: press Command+Space and type Terminal · Windows: the command below does not work in PowerShell; use “Let AI install it” above instead
Copy the skill folder to ~/.agents/skills
This downloads the repo to a temporary folder and copies only the folders that contain a SKILL.md
git clone --depth 1 https://github.com/browser-use/browser-harness.git /tmp/popnx-skill-browser-use-browser-harness-1894799 && mkdir -p ~/.agents/skills && cp -R '/tmp/popnx-skill-browser-use-browser-harness-1894799/.' ~/.agents/skills/browser-harnessRestart Codex, then ask for a matching task; Codex lists the skill
Option 1Let Cursor install it
Copy this sentence and paste it into a Cursor chat
For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
In Cursor’s Agent chat, type / and pick browser-harness
Checked against official docs Nov 12, 2026 · Source: cursor.com
For Terminal users
A Skill is instructions the AI will follow. Read the files before installing, and install only from makers you trust.
Open Terminal
Mac: press Command+Space and type Terminal · Windows: the command below does not work in PowerShell; use “Let AI install it” above instead
Copy the skill folder to ~/.cursor/skills
This downloads the repo to a temporary folder and copies only the folders that contain a SKILL.md
git clone --depth 1 https://github.com/browser-use/browser-harness.git /tmp/popnx-skill-browser-use-browser-harness-1894799 && mkdir -p ~/.cursor/skills && cp -R '/tmp/popnx-skill-browser-use-browser-harness-1894799/.' ~/.cursor/skills/browser-harnessIn Cursor’s Agent chat, type / and pick browser-harness
Option 1Let the AI install it
For other apps that read skills. The sentence gives the paths for Claude Code, Codex and Cursor so the AI picks the one for your app · Copy this sentence into the app’s chat
For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
Checked against official docs Nov 12, 2026 · Source: code.claude.com, learn.chatgpt.com, cursor.com
For Terminal users
Other apps that support Agent Skills (such as Gemini CLI or GitHub Copilot) use different folders. Check that app’s guide, then copy the folder with the SKILL.md there.
Skill folders checked against the official Claude Code, Codex and Cursor guides on Nov 11, 2026
✓ Commands checked Nov 16, 2026
View the original SKILL.md
The text below comes from the maker’s repo, not from PopNx MCP
Showing the first 8,000 characters · Open the full file on GitHub
---
name: browser-harness
description: "Control a real browser via CDP: clicking, typing, navigation, logged-in sessions, JS-rendered or bot-protected pages. Not for plain HTTP fetches of public content - use curl for those."
---
# browser-harness
Direct browser control via CDP. For task-specific edits, use `agent-workspace/agent_helpers.py`. For setup, install, or connection problems, read https://github.com/browser-use/browser-harness/blob/main/install.md.
## When Not to Use
A basic fetch of public information needs no browser. If a plain HTTP request can read it — a public page, an API, docs — use `curl` or your fetch tool, and leave the browser alone. Use browser-harness when the task needs interaction (click, type, navigate), the user's logged-in session, JS rendering, or a bot-protected page. If a direct fetch fails or returns a shell page, then escalate to the browser.
Domain skills are off by default. Set `BH_DOMAIN_SKILLS=1` to enable them; see the bottom section.
**If `BH_DOMAIN_SKILLS=1` and the task is site-specific, read every file in the matching `$BH_AGENT_WORKSPACE/domain-skills/<site>/` directory before inventing an approach.**
## Usage
```bash
browser-harness <<'PY'
print(page_info())
PY
```
- Invoke as `browser-harness`. Use heredocs for multi-line commands.
- Helpers are pre-imported. `run.py` calls `ensure_daemon()` before `exec`.
- First navigation for a task is `new_tab(url)`, not `goto_url(url)`. The daemon
preserves the attached tab across separate CLI invocations, so do not call
`new_tab()` again in every script.
- Keep one working tab per task/site. Before opening another, inspect
`current_tab()` and `list_tabs()` and use `switch_tab()` to reuse a matching
tab. Do not leave duplicate tabs on the same URL or close tabs you did not
create.
- At task completion, close tabs created for the task that are no longer needed.
Keep a tab open if the user needs to see it, it is needed for a known follow-up,
or closing it could discard unsaved work or other important state.
- `new_tab()` and `switch_tab()` attach and move the horse marker without
changing Chrome's visible tab. Screenshots and normal CDP input work in the
background. Never call `activate_tab(target)` automatically: it brings Chrome
to the foreground. Call it only when the user explicitly asks to see or
visibly switch to that tab. Do not pair `switch_tab()` with `activate_tab()`.
- A local daemon is a connection to the whole Chrome instance, not to one site,
task, card, or agent. Omit `BU_NAME` and reuse the default daemon for normal
sequential local work across websites, tabs, screenshots, and Codex turns.
Do not invent per-job names such as `gmail1375` or `slack1371`: every new
local daemon opens another browser-level CDP connection and Chrome may show
another Allow prompt.
- Set `BH_TAB_MARKER=0` before starting the daemon to leave page titles unchanged.
The horse marker remains enabled by default.
- A timeout or page that pauses while hidden is not permission to foreground
Chrome. Keep using background CDP operations. For a focus-gated page,
temporarily call `cdp("Emulation.setFocusEmulationEnabled", enabled=True)`,
perform and verify the operation, then disable it in a `finally` block. If
background control still cannot work, report that limitation instead of
activating the tab. Do not invent a `Runtime.evaluate` scroll replacement or
a cross-frame JS walker.
- The normal local flow attaches to the running Chrome/Chromium CDP endpoint. No browser ids or local profile selection.
## Local Chrome
The default daemon can keep many tabs and visit many sites; browser-harness has
no per-site, screenshot, or result-count limit that requires a new daemon.
Chrome memory and page complexity are the practical limits. Reuse matching tabs
with `list_tabs()` and `switch_tab()`.
One daemon has one mutable attached/current tab. Many agents can share it when
their browser operations are serialized: treat local Chrome as one shared
browser lane while non-browser work continues in parallel. Sequential tab
switching, input, and screenshot capture are safe. Do not create another local
daemon merely because several agents exist.
Two agents that switch tabs and act simultaneously can race, causing one to act
on or capture the other's tab. For truly simultaneous interactive work, use
separate remote browsers when Browser Use Cloud authentication is already
available. Otherwise serialize browser operations through the default local
daemon. A named local daemon is a last resort when simultaneous isolation is
required, remote auth is unavailable or unsuitable, and the extra Chrome
approval prompt is acceptable. It creates another controller and dedicated tab
in the same local Chrome profile, not another Chrome profile or process.
If the default daemon becomes stale, use its built-in reattachment/recovery
first. A command timeout, truncated output, site change, closed tab, or new task
is not a reason to create another daemon. Run `browser-harness --doctor` and
restart or replace the default daemon only when it is actually dead or cannot
recover.
If the daemon cannot connect, run diagnostics:
```bash
browser-harness --doctor
```
If Chrome is not running at all, the harness launches it automatically and retries.
If Chrome is running but remote debugging is not enabled, the harness opens:
```text
chrome://inspect/#remote-debugging
```
On macOS, when local Chrome asks for remote-debugging permission, keep the
original browser command running and call `mac-approve` in another shell/tool
call. Preserve the exact daemon name: if the waiting command used
`BU_NAME=r7k2`, run:
```text
BU_NAME=r7k2 browser-harness mac-approve
```
For the default daemon, omit the `BU_NAME` prefix. The original command resumes
when the helper returns `ready`; do not rerun it. If the helper reports
`accessibility-required`, ask the user once to grant the app launching
browser-harness (for example Terminal, iTerm, or Codex) access in System
Settings > Privacy & Security > Accessibility, then call `mac-approve` once
again. This is only for local Chrome; do not call it for `BU_CDP_URL`,
`BU_CDP_WS`, or Browser Use Cloud.
When the shell tool can yield a still-running process, use a short 3-5 second
initial yield for the first local command, not a 30-second wait. If the command
yields with the Allow hint, leave that exact process running, immediately call
`browser-harness mac-approve` in a second tool call, then resume or poll the
original process. With a named daemon, preserve its exact `BU_NAME` for the
helper. Never start the browser command again. If the user clicks Allow first,
the same handshake completes and the original command returning successfully
is the agent's feedback; `mac-approve` also returns `ready` when the daemon is
already connected.
`mac-approve` is macOS-only. On Linux or Windows, keep the original browser
command running and ask the user to click Allow if Chrome presents the approval
dialog. Their click completes the same handshake, so resume or poll the original
process for success; do not rerun it or create a replacement daemon. If that
Chrome build presents no approval dialog, the original command simply connects.
## Remote Browsers
Use Browser Use cloud for headless servers, parallel sub-agents, or isolated work.
Remote browsers require Browser Use Cloud authentication. Check
`browser-harness auth status` before depending on them. `browser-harness auth
login` stores authentication for later processes, so an API key does not need to
be passed to every agent process; without stored authentication or an available
`BROWSER_USE_API_KEY`, serialize work through the default local daemon instead.
Cloud browsers are managed Chrome instances hosted by Browser Use. Each one is a fresh, isolated browser. Proactively suggest one (briefly explain why) when:
- **The user wants multiple concurrent tasks.** Local Chrome is one shared browser; pDiscussion
Ask, share a tip or report that it does not work. Sorted by what people marked helpful.
No posts yet. Be the first to ask or share.
Posts here are written by users, not the PopNx team.
From GitHub
- GitHub stars
- 19,098
- Maker
- browser-use
- License
- MIT
- Last code change
- Nov 16, 2026
- SKILL.md files in the repo (including translated copies and templates)
- 1
- Topics
- ai-agent, browser-agent, browser-automation, browser-use, browser-use-box, browser-use-cloud, cdp, chrome, chrome-devtools-protocol, claude-code, cloud-browser, codex