browser-use
できること
このスキルは、クリックや入力、ログイン済みのセッションが必要な作業のために、エージェントが実際のブラウザを操作できるようにします。単純なページ読み取り以上のことが必要な開発者やパワーユーザー向けです。
使う場面
- ✓Webサイトをクリック、入力、移動する作業が必要なとき。
- ✓ページの読み込みにJavaScriptが必要、または単純なリクエストを防ぐ保護があるとき。
- ✓あなたのログイン済みブラウザセッションをエージェントに使わせたいとき。
スキルのリンク
https://github.com/browser-use/browser-use/blob/main/browser_use/skills/browser-use/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“私のオンラインストアの管理ページを開き、今日の注文を探して、件数を教えてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントはChrome DevTools Protocolを通じてブラウザに接続し、タブを開き、ページを読み、クリックや入力を行います。単純な公開ページの読み取りには、まず通常のWebフェッチを試します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Browser Use
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-use 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-use <<'PY'
print(page_info())
PY
- Invoke as
browser-use. 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-use 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 dedi
よくある質問
いつ使うべきではありませんか?
単純な公開ページの場合、通常のフェッチで十分で、ブラウザは不要だとスキルに書かれています。
ログイン済みのセッションを使えますか?
はい。説明では、利用者のログイン済みセッションがブラウザを使う理由として挙げられています。
セットアップは必要ですか?
はい。セットアップと接続の問題については、インストールガイドを参照するよう案内されています。
詳細
作者による元の説明
Direct browser control via CDP for web interaction: automation, scraping, testing, screenshots, and site/app work. Also covers hosted cloud browsers for AI agents: the browser-use Python library (Browser(use_cloud=True)), Playwright, Puppeteer or any CDP client.
repo: browser-use/browser-use
人気
- GitHubのスター
- 120k
- ランキング
- #733
- ライセンス
- MIT
- 更新日
- 2026/11/1
コメント
- …
このリポジトリの他のスキル
cloud
120kエージェントが、APIとSDKを通じてブラウザ自動化を実行するホスト型サービスであるBrowser Use Cloudを使えるよう支援します。
open-source
120kエージェントが、オープンソースのbrowser-useライブラリでPythonコードを書けるよう支援します。エージェント、ブラウザ、カスタムツール、LLMの設定を含みます。
qa
120kエージェントが、実際のブラウザでWebサイトやWebアプリをテストし、根拠付きの1から5の品質スコアを出せるよう支援します。
remote-browser
120kエージェントが、使えるローカルのChromeがないマシンから、分離されたBrowser Use Cloudのブラウザを操作できるよう支援します。
似ているスキル
diffs
394k編集内容の実際の共有可能な差分を、手書きの要約ではなく、ビューアーのリンクや画像ファイルとして作成するようエージェントを支援します。
coding-agent
394kCodex、Claude Code、OpenCodeに大きめのコーディング作業をバックグラウンドのワーカーとして渡し、その進捗を確認するようエージェントを支援します。
gh-issues
394kGitHubのイシューを探し、取り組むものを選び、修正を含むプルリクエストを開くようエージェントを支援します。レビューコメントへの対応も含みます。