browser-harness
Skill by browser-use
Controls a real browser over CDP for clicks, typing, navigation, logged-in sessions and JavaScript-heavy or bot-protected pages. Use curl instead for plain fetches of public content.
Install browser-harness
Built from the published package, never by AI.
git clone --depth 1 https://github.com/browser-use/browser-harness /tmp/browser-harness && mkdir -p ~/.claude/skills && cp -r /tmp/browser-harness ~/.claude/skills/browser-harnessRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/browser-use/browser-harness /tmp/browser-harness && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/browser-harness ~/.gemini/antigravity-cli/skills/browser-harnessAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
browser-harness gives an AI assistant direct control of a real browser through the Chrome DevTools Protocol (CDP). It can click, type, navigate, use the person's logged-in session, and work with JavaScript-rendered or bot-protected pages. The skill tells the assistant to find elements with the accessibility tree, verify each change, and save screenshots as proof of work.
Each agent drives only its own tabs. Tabs can be marked as deliverables or handoffs, and releasing tabs closes the unmarked ones the agent opened. The source says a plain HTTP request for public content should use curl instead. The skill is aimed at agents that need interactive browser work, and it covers local Chrome and Browser Use cloud browsers.
Written from the project's SKILL.md and checked against it.
What it can do
- Browser controlClicks, types and navigates in a real browser through CDP.
- Accessibility tree lookupFinds elements by role and name, then clicks at their box center.
- Tab ownershipLists tabs by owner and marks or releases the tabs the agent opened.
- ScreenshotsSaves a screenshot with capture_screenshot as proof of work.
- File uploadsSends local files to file inputs with upload_file.
- Raw CDP callsRuns any CDP method through cdp("Domain.method", ...).
- Captcha solvingCalls solve_captcha on cloud browsers that support it.
- Cloud browsersStarts and stops named remote browser daemons with start_remote_daemon and stop_remote_daemon.
- Domain skillsReads site-specific notes when BH_DOMAIN_SKILLS=1 is set.
What you need
- Chrome with remote debugging enabled for local control
- Browser Use API key for cloud browsers
- Browser-harness install as described in install.md
Try asking
- Open the product page and click through to the checkout form.
- Upload this PDF to the form on my open tab and save a screenshot.
- Check the price shown on this JavaScript-rendered page and report it.
Good to know
- Login walls, passwords, MFA and consent require asking the user first.
- Domain skills are off unless BH_DOMAIN_SKILLS=1 is set.
- Cloud browsers must be stopped manually; the source says to ask before leaving them running.
- Chrome shows an Allow remote debugging dialog for each browser-level connection.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
.env.example102 B -
.gitignore101 B -
AGENTS.md2 KB -
CHANGELOG.md9 KB -
CONTRIBUTING.md1 KB
Show all 11 files
-
LICENSE1 KB -
README.md9 KB -
SKILL.md11 KB -
browser-harness939 B -
install.md6 KB -
pyproject.toml1 KB
Alternatives to browser-harness
All alternatives →Antigravity Workflows guides an assistant through multi-skill workflows for shipping a SaaS MVP, auditing web app security, building AI agents, running browser QA, and designing a domain model. It is for users who want several skills combined with verified checkpoints.
Guides building end-to-end test suites with Playwright and Cypress. It is for developers who write E2E tests, debug flaky tests, or set testing standards.
Upgrades Chrome or Firefox versions in the Flutter Web Engine and Framework tests. It verifies the version, updates config files, syncs CI builder JSON and runs local tests before the CIPD upload.
Builds reliable browser checks for real web workflows using semantic locators, bounded waits, isolated test data and explicit outcome checks. It is for developers and testers writing or debugging browser tests.
Diagnoses memory leaks in the Qwen Code CLI using heap snapshots and the chrome-devtools CLI. Built for developers investigating high memory use, unbounded growth, or object retention.
Guides an assistant through using Claude in Chrome, a browser extension whose tools act in the person's real Chrome with their own sign-ins. It is for users who want the assistant to work in their browser safely.
Compare with antigravity-workflows, e2e-testing-patterns or upgrade-browser
browser-harness: common questions
When should I use browser-harness instead of curl?
The source says to use curl or a fetch tool for public pages, APIs and docs. Browser-harness is for clicks, typing, logged-in sessions, JS rendering or bot-protected pages.
Does it work with my logged-in Chrome session?
The source says it can use the user's logged-in session. Local Chrome must have remote debugging enabled and may ask for an Allow approval.
Will it close my tabs when it finishes?
Nothing closes by itself. release_tabs() closes unmarked tabs the agent opened and returns tabs it took, and it should only be called when the task is finished.
How do I install browser-harness?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is browser-harness free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is browser-harness safe to use?
It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to browser-harness?
Similar skills: antigravity-workflows, e2e-testing-patterns, upgrade-browser, browser-automation.
