browser-use
Skill này làm gì
Skill này cho phép agent thao tác trong một trình duyệt web thật cho các tác vụ cần nhấp chuột, nhập chữ hoặc dùng phiên đăng nhập. Skill dành cho lập trình viên và người dùng nâng cao cần nhiều hơn một lần đọc trang đơn giản.
Khi nào nên dùng
- ✓Khi một tác vụ cần nhấp, nhập chữ hoặc điều hướng qua một trang web.
- ✓Khi trang cần JavaScript để tải hoặc được bảo vệ, không cho truy cập bằng yêu cầu đơn giản.
- ✓Khi bạn muốn agent dùng phiên trình duyệt mà bạn đã đăng nhập.
Liên kết skill
https://github.com/browser-use/browser-use/blob/main/browser_use/skills/browser-use/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Mở trang quản trị cửa hàng trực tuyến của tôi, tìm các đơn hàng hôm nay và cho tôi biết có bao nhiêu đơn.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent kết nối với trình duyệt qua Chrome DevTools Protocol, mở tab, đọc trang rồi thực hiện các thao tác nhấp và nhập chữ. Với các lần đọc đơn giản, agent thử tải trang bằng cách thông thường trước.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Khi nào không nên dùng?
Với trang công khai đơn giản, skill nói rằng tải trang thông thường là đủ và không cần trình duyệt.
Có dùng được phiên đăng nhập của tôi không?
Có. Mô tả nhắc đến phiên đã đăng nhập của người dùng như một lý do để dùng trình duyệt.
Có cần thiết lập không?
Có. Skill có hướng dẫn cài đặt để xử lý các lỗi thiết lập và kết nối.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 120k
- Vị trí xếp hạng
- #733
- Giấy phép
- MIT
- Cập nhật
- 1/11/2026
Bình luận
- …
Thêm skill từ kho mã này
cloud
120kGiúp agent của bạn dùng Browser Use Cloud, một dịch vụ lưu trữ để chạy tự động hóa trình duyệt qua API và SDK của nó.
open-source
120kGiúp agent của bạn viết code Python với thư viện browser-use mã nguồn mở, gồm agent, trình duyệt, tool tùy chỉnh và cấu hình LLM.
qa
120kGiúp agent của bạn kiểm thử một trang web hoặc ứng dụng web trên trình duyệt thật và chấm điểm chất lượng từ 1 đến 5, kèm bằng chứng.
remote-browser
120kGiúp agent của bạn điều khiển một trình duyệt Browser Use Cloud biệt lập khi máy đang dùng không có Chrome cục bộ dùng được.
Skill tương tự
diffs
394kGiúp agent của bạn tạo một diff có thể chia sẻ về các chỉnh sửa, dưới dạng liên kết xem hoặc file ảnh, thay vì một bản tóm tắt viết tay.
coding-agent
394kGiúp agent của bạn giao một việc lập trình lớn cho Codex, Claude Code hoặc OpenCode chạy nền, rồi theo dõi tiến độ của nó.
gh-issues
394kGiúp agent của bạn tìm issue trên GitHub, chọn những issue cần xử lý và mở pull request với bản sửa, kể cả theo dõi nhận xét đánh giá.