browser-harness
하는 일
에이전트가 로그인된 세션을 포함한 실제 브라우저를 직접 제어하도록 합니다. 단순한 공개 페이지 다운로드가 아니라, 클릭, 입력, 탐색이 필요한 작업을 위한 스킬입니다.
사용하는 경우
- ✓웹사이트에서 클릭, 입력, 이동이 필요한 작업이 있을 때.
- ✓페이지를 불러오려면 로그인 세션이나 JavaScript가 필요할 때.
- ✓사이트가 단순 요청을 막아서 실제 브라우저가 필요할 때.
스킬 링크
https://github.com/browser-use/browser-harness/blob/main/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 사이트의 대시보드 페이지를 제 브라우저에서 열고, 최신 수치를 읽어 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
이 스킬은 Chrome DevTools 프로토콜로 브라우저에 연결하고, 도우미 함수가 담긴 짧은 스크립트를 실행합니다. 일반 공개 페이지는 대신 직접 가져오므로, 상호작용이 필요할 때만 브라우저를 사용합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
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
browser-harness <<'PY'
print(page_info())
PY
- Invoke as
browser-harness. Use heredocs for multi-line commands. - Helpers are pre-imported.
run.pycallsensure_daemon()beforeexec. - First navigation for a task is
new_tab(url), notgoto_url(url). The daemon preserves the attached tab across separate CLI invocations, so do not callnew_tab()again in every script. - Keep one working tab per task/site. Before opening another, inspect
current_tab()andlist_tabs()and useswitch_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()andswitch_tab()attach and move the horse marker without changing Chrome's visible tab. Screenshots and normal CDP input work in the background. Never callactivate_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 pairswitch_tab()withactivate_tab().- A local daemon is a connection to the whole Chrome instance, not to one site,
task, card, or agent. Omit
BU_NAMEand reuse the default daemon for normal sequential local work across websites, tabs, screenshots, and Codex turns. Do not invent per-job names such asgmail1375orslack1371: every new local daemon opens another browser-level CDP connection and Chrome may show another Allow prompt. - Set
BH_TAB_MARKER=0before 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 afinallyblock. If background control still cannot work, report that limitation instead of activating the tab. Do not invent aRuntime.evaluatescroll 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
자주 묻는 질문
언제 쓰지 말아야 하나요?
문서나 API 같은 공개 콘텐츠를 단순히 가져올 때는 간단한 요청으로 충분합니다.
설치가 필요한가요?
네. 설치와 연결 단계는 프로젝트의 설치 가이드에 설명되어 있습니다.
사이트별 메모도 포함되나요?
선택 사항인 도메인 메모를 켰을 때만 포함되며, 그 경우 새로운 방법을 시도하기 전에 먼저 읽습니다.
상세 정보
작성자의 원본 설명
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.
인기도
- GitHub 스타
- 19k
- 순위
- #10499
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …