项目 / Tencent/BrowserSkill
腾讯出的浏览器工具,让 AI 助手在你已登录的浏览器里帮你操作网页,不耽误你手头的事。
本站整理,非 GitHub 官方 description。
官方快照(gh_history.db,2026-11-25):总榜 未进 Top50 · 日榜 未进 Top50 · 周榜未满 7 天基线(官方不生成) · 月榜暂无官方口径;下方四卡为站内趋势聚合(周卡按上榜次数,非官方 7 日增量窗)。
以下三段按该项目自己的 GitHub README 章节摘录(可合理截断并标明);README 没有对应章节的留空,不编造。
本地自动化需要 AI agent、bsk CLI 和浏览器扩展,CLI 包含后台守护进程,用 bsk install-skill 选择 harness 安装技能,Chrome/Edge 扩展需单独安装。
来自 GitHub 仓库 README / 主页介绍正文,正文较长,已截断:保留前 20000 字符(原始 38,753 字节),完整内容见 GitHub 仓库。
# BrowserSkill
<p align="center">
<img src="docs/assets/browserskill-readme-banner.png" alt="BrowserSkill — connect your AI agent to your browser" />
</p>
<p align="center">
<strong>Your agent. Your browser. One connection.</strong><br />
Turn the browser you already use into a workspace for your AI agent.
</p>
<p align="center">
<a href="https://browserskill.weixin.qq.com/"><img src="docs/assets/readme-website-en.svg" alt="Visit the BrowserSkill website" /></a>
<a href="#quick-start"><img src="docs/assets/readme-start-en.svg" alt="Get started with BrowserSkill" /></a>
</p>
<p align="center">
<a href="https://trend.ondo.sh/github/r/Tencent--BrowserSkill/en.html"><img src="docs/assets/github-trending.svg" alt="BrowserSkill: best recorded GitHub Trending daily rank #4, all languages, September 2026" width="360" /></a>
</p>
<p align="center">
English · <a href="README.zh-CN.md">中文</a><br />
<a href="https://browserskill.weixin.qq.com/">Website</a> ·
<a href="#see-it-in-action">Demo</a> ·
<a href="#what-you-can-do">Features</a> ·
<a href="#website-debugging">Website debugging</a> ·
<a href="#documentation">Documentation</a> ·
<a href="CHANGELOG.md">Changelog</a>
</p>
**BrowserSkill connects your AI agent to Chrome or Microsoft Edge, using your existing logins.** Give it a task to read, click, fill, or investigate. Work stays visible in a separate **Agent Window**, and you can take over when needed. Existing tabs can be explicitly borrowed and returned when the task ends.
## See it in action
<details>
<summary><strong>▶ Watch the demo · 81 seconds · English</strong><br /><picture><img src="docs/assets/demo/browserskill-demo-en.png" alt="BrowserSkill demo preview — Your agent. Your browser. One connection." width="960" /></picture></summary>
https://github.com/user-attachments/assets/6111d978-baa6-4a76-92c4-4f51d47ae617
</details>
<p align="center">
Click the cover to expand the video · <a href="docs/assets/demo/browserskill-demo-en.mp4">Download MP4</a><br />
Real browser actions on a local demo workspace, recorded from main.
</p>
## Bring the agent you already use
<table align="center">
<tr>
<td align="center" width="180"><img src="docs/assets/harnesses/codex.svg" alt="Codex" width="42" height="42" /><br /><strong>Codex</strong></td>
<td align="center" width="180"><img src="docs/assets/harnesses/claude.svg" alt="Claude Code" width="42" height="42" /><br /><strong>Claude Code</strong></td>
<td align="center" width="180"><img src="docs/assets/harnesses/cursor.svg" alt="Cursor" width="42" height="42" /><br /><strong>Cursor</strong></td>
<td align="center" width="180"><img src="docs/assets/harnesses/openclaw.svg" alt="OpenClaw" width="42" height="42" /><br /><strong>OpenClaw</strong></td>
</tr>
<tr>
<td align="center" width="180"><img src="docs/assets/harnesses/codebuddy.svg" alt="CodeBuddy" width="42" height="42" /><br /><strong>CodeBuddy</strong></td>
<td align="center" width="180"><img src="docs/assets/harnesses/workbuddy.svg" alt="WorkBuddy" width="42" height="42" /><br /><strong>WorkBuddy</strong></td>
<td align="center" width="180"><img src="docs/assets/harnesses/pi.svg" alt="Pi" width="42" height="42" /><br /><strong>Pi</strong></td>
<td align="center" width="180"><img src="docs/assets/harnesses/hermes.png" alt="Hermes Agent" width="42" height="42" /><br /><strong>Hermes Agent</strong></td>
</tr>
</table>
Qoder, Qoder CN, and DeepSeek Harness are also supported as skill targets (`bsk install-skill --harness qoder`, `--harness qoder-cn`, and `--harness dsh`), and **[DeepSeek Harness](#deepseek-harness-plugin)** also provides a lightweight plugin (`@wxg-prc-cpg/browser-skill-dsh-plugin`) with bundled skill registration and on-demand `bsk` CLI setup.
These and other agents that can run shell commands use the same **`bsk` CLI**, and MCP clients can also connect through **`bsk mcp`** ([MCP setup](docs/mcp.md)). You choose the agent and model; BrowserSkill connects it to your browser.
## What you can do
| Your goal | What BrowserSkill provides |
| --- | --- |
| **Work where you are already signed in** | Read documents, search internal sites, and complete web workflows with the browser's existing login state. |
| **Turn instructions into browser actions** | Read page text and controls, click, type, fill forms, drag items, select ranges, and manage tabs. Capture viewport or full-page screenshots; upload and download files in local mode. |
| **Stay in control of the task** | Work alongside the agent with shared control, pause it while you edit, and let it reconcile your changes before continuing. Tasks remain visible in their own window; existing tabs can be explicitly borrowed. |
| **Take web data with you** | Export loaded tables and lists as JSON/CSV, with column names, page/frame sources, merged-cell metadata, and explicit coverage. [Structured extraction](docs/structured-extraction.md) |
| **Find the evidence behind a failure** | Connect actions to requests, response bodies, console messages, and page changes. Inspect performance, slow APIs, and suspected duplicate requests; test a hypothesis with explicit HTTP rules or request replay. [Website debugging](docs/website-debugging.md) |
| **Keep a replay of the work** | Record one authorized task tab as a silent MP4, then preview, save, or delete it from the extension. [Task video recording](docs/video-recording.md) |
| **Continue when the page is ready** | Wait for a requested element condition with an explicit timeout before the next step. [Element waits](docs/wait-for-element.md) |
| **Reuse what you already observed** | Execute one chosen action and synchronize with `step`; explicitly save the full observation, then search or read it with `view` without another browser capture. [Steps and saved observations](crates/bsk-cli/skill/references/step-and-cache.md) |
| **Use the right browser for the job** | Name browser instances, bind a task to a specific profile, or pair a server-side agent with the browser on your computer. [Browser profiles](docs/browser-profiles.md) |
| **Review what happened** | Reopen browser-local debugging history, export evidence as JSON, or enable a separate operation audit to review task activity. [Operation audit](docs/operation-audit.md) |
## Quick Start
For local automation, you need **an AI agent + the `bsk` CLI + the browser extension**. The CLI includes the background daemon. The skill teaches your agent how to use it.
| Component | Supported environments |
| --- | --- |
| CLI / daemon | macOS: Apple Silicon and Intel · Linux: x64 and ARM64 · Windows: x64 |
| Extension | Chrome and Microsoft Edge, based on Chromium 125 or later. Other Chromium browsers may work; compatibility is not guaranteed. |
| Agent integration | A shell-capable or MCP-capable agent with the BrowserSkill skill ([MCP setup](docs/mcp.md)). |
### Let your agent set it up
Send this to your agent:
```text
Set up browser-skill on this machine by following https://raw.githubusercontent.com/Tencent/BrowserSkill/main/AGENT_INSTALL.md
```
The guide covers CLI installation, skill setup, connection checks, and a first browser task. You will still need to install the extension in the browser you want to use:
**[Install for Chrome](https://chromewebstore.google.com/detail/hhcmgoofomhgciiibhipgmgkgnoenaoi)** · **[Install for Edge](https://microsoftedge.microsoft.com/addons/detail/browserskill/emacgiaaaiojkkpkddmmdfhmokgmnikg)**
<details>
<summary><b>Manual setup</b></summary>
#### 1. Install the CLI
macOS / Linux:
```sh
curl -fsSL https://raw.githubusercontent.com/Tencent/BrowserSkill/main/install.sh | sh
export PATH="${BSK_INSTALL_DIR:-$HOME/.local/bin}:$PATH"
```
Windows PowerShell:
```powershell
irm https://raw.githubusercontent.com/Tencent/BrowserSkill/main/install.ps1 | iex
```
By default, the binary is installed under `~/.local/bin`. Check it in the terminal or agent environment that will use it:
```sh
bsk --version
```
If an already-running agent cannot find `bsk`, restart it to pick up the new PATH, or configure the installed binary's absolute path.
#### 2. Connect the extension
Install it from the [Chrome Web Store](https://chromewebstore.google.com/detail/hhcmgoofomhgciiibhipgmgkgnoenaoi) or [Edge Add-ons](https://microsoftedge.microsoft.com/addons/detail/browserskill/emacgiaaaiojkkpkddmmdfhmokgmnikg), enable the connection and start using it. Local pairing is optional: an unpaired connection stays usable and shows an identity warning. To verify the connection, run `bsk daemon pair` and paste its link into **Connection settings → Pairing link**. Pairing is remembered across restarts and upgrades; a paired connection never automatically skips verification after a failure. See [local pairing](docs/local-pairing.md).
#### 3. Install the skill for your agent
```sh
bsk install-skill
```
Select your harness with **Space**, then press **Enter**. For non-interactive setup, choose it explicitly:
```sh
bsk install-skill --harness cursor --json
```
Use `bsk install-skill --list` to see supported targets and paths. Existing installations are skipped unless you explicitly replace them with `--force`. For another harness, copy the entire [`crates/bsk-cli/skill/`](crates/bsk-cli/skill/) directory into its skills directory as `browser-skill/`, including `references/`.
For MCP clients, `bsk install-skill --harness codex --mcp` also configures the
local stdio server (`claude-code` and `cursor` are supported too). See the
[MCP setup and workflow](docs/mcp.md).
#### 4. Check the connection
```sh
bsk doctor
```
Resolve any failed checks and confirm that the extension shows **Connected**. Start a new agent session and check that it can discover `browser-skill`; a successful doctor check alone does not confirm skill discovery.
</details>
### Try your first task
Once connected, ask your agent:
```text
Use browser-skill to open https://example.com, summarize the page, and end the browser session when finished.
```
The agent opens its own window in the background, reads the page, returns the summary, and stops its task. External links or manually created tabs that land in the task window are moved to your most recently used normal window; a user window is created if none remain. Routing happens after tab creation, so a tab may briefly appear in the task window. Page-opened tabs and human assistance or recording are preserved. Harnesses that support skill slash commands can also use `/browser-skill`.
Moving any controlled tab out of its original Agent Window ends the entire browser session, preserves every page in place, and removes its control indicators. Borrowed tabs also stay where they are. Moving a tab back does not resume the task; starting again requires a user decision. Reordering tabs within the same window is unaffected. Normal session stop still returns borrowed tabs and cleans up task pages.
Chrome can still activate a window when a page opens a native popup. For observed task popups, the extension restores the previous Chrome window or minimized state if you have not switched windows. Chrome's public extension APIs cannot guarantee zero transient activation or restore focus to another application.
<details>
<summary><b>Try the CLI directly</b></summary>
Start a session and keep the returned `session_id`:
```sh
bsk session start --json
```
Replace `<id>` with that value in each command below. With multiple connected browsers, select one using `--browser <instance-id-or-name>` when starting the session. Background creation is the default; `--no-focus` remains supported, and `--focus` explicitly brings the new window forward. Requests for human help and interactive recording still bring the relevant window forward.
```sh
bsk navigate https://example.com --session <id>
bsk observe --session <id>
bsk screenshot --session <id> --out example.png
bsk session stop <id>
```
Use `bsk --help` or `bsk <command> --help` for command options. Always stop your session when finished, including after a failed task; borrowed tabs are returned to their original window.
</details>
In WorkBuddy/CodeBuddy, or hosts that reap command children, the agent should reuse an existing daemon or run `bsk daemon start --foreground` in a managed background task, then verify it from a separate tool call. Follow the [host setup guide](docs/sandboxed-agents.md) for shared `BSK_HOME`, `BSK_AUTO_START=0`, and the independent-terminal fallback when the host cannot keep a task alive.
### Close an unused Agent Window
Ask your agent to end its browser session when the task finishes. If a task was interrupted and its Agent Window is still open, list sessions from the same daemon:
```sh
bsk session list
bsk session stop SESSION_ID
```
Use the `BROWSER`, `AGENT WINDOW`, and `CONTROLLER / PROJECT` columns to identify the unused task, then replace `SESSION_ID` with the value in the `SESSION` column. When cleanup succeeds, BrowserSkill returns borrowed tabs and closes the task window if no user tabs remain. For a recording you want to save, finish it with `bsk record stop`.
If the window is absent from the list, confirm you're using the `BSK_HOME` from that task. If the window is no longer associated with a session, save any work in it and close it in the browser.
## DeepSeek Harness plugin
The lightweight [DSH plugin](packages/dsh-plugin-browserskill/README.md) (`@wxg-prc-cpg/browser-skill-dsh-plugin`) packages the canonical `browser-skill` CLI skill for DeepSeek Harness profiles, automatically adds `~/.local/bin` (or a configured `bskPath`) to the host `PATH`, and bundles an on-demand `bsk` CLI + extension setup flow when `bsk` is not yet installed. Under the hood, it shares the exact same `bsk` CLI, daemon (`DSH_SESSION_ID` implicit scoping), and Agent Window runtime as every other agent.
```sh
dsh plugin --profile web add @wxg-prc-cpg/browser-skill-dsh-plugin
dsh --profile web
```
Replace `web` with your profile name. Invoke `/browser-skill` in a conversation — if `bsk` is missing, the agent runs the bundled installer and guides browser extension connection automatically. No separate `bsk install-skill` step is needed.
[Plugin usage and configuration](packages/dsh-plugin-browserskill/README.md) · [npm package](https://www.npmjs.com/package/@wxg-prc-cpg/browser-skill-dsh-plugin)
## Website debugging
**Give your agent the browser evidence behind a bug.** Start capture before reproducing an issue on a website you are authorized to debug, then inspect the result in the extension or through the agent.
- **Follow an operation:** see its requests, console output, form-field values, and immediate or delayed page changes. Capture includes supported manual actions as well as agent actions.
- **Inspect a request:** read retained headers, submitted data, response bodies, timing, and errors. Filter traffic or inspect a specific JSON field.
- **Investigate performance:** inspect page-load metrics, API timing summaries, and suspected duplicate requests. Missing or partial evidence is identified explicitly.
- **Test and keep evidence:** configure task-local request modification, blocking, mock responses, or same-origin replay; save a JSON record to review or share later.
Try a task such as:
```text
Use browser-skill to investigate why saving the form on http://localhost:3000 fails. Start website debugging before reproducing it, inspect the request, response and console, then export the evidence and end the session.
```
From the extension, open **Quick Actions → Website debugging** for an existing task. The evidence page connects the operation timeline, requests, Console, page context, Performance, and API analysis. Its history remains accessible after the task ends, even without a daemon connection. A new agent task needs a user-provided export to inspect an ended task's history.
Request replay sends a new request using the page's current session and can change server data. Capture and redaction have limits; retained evidence may still contain sensitive information. See [website debugging](docs/website-debugging.md) for the workflow, CLI examples, and limits.
## More workflows
### Capture a full page
Use **Quick Actions → Full-page screenshot** for automatic scrolling, a long image you scroll yourself, or the visible area. This extension feature also works without an agent or daemon connection.
For a page in an agent session:
```sh
bsk screenshot --session <id> --full-page --out page.png
```
Agent capture supports background tabs without focusing the window and restores the original scroll position when the document remains available. Full-page capture follows the document's scroll area; nested scrolling panels and virtualized lists have limitations. [Screenshot guide](docs/long-screenshot.md)
### Choose a browser profile
Open the extension in the intended profile and choose **Copy profile instructions**, then send those instructions with your task. You can also assign a unique **Browser name** and select it explicitly:
```sh
bsk browsers
bsk session start --browser "Work profile" --no-focus --json
```
The name is set in BrowserSkill; it is not automatically taken from Chrome's profile name. Each session stays bound to the selected instance. [Profile selection guide](docs/browser-profiles.md)
Add `--incognito` to isolate a task from the profile's ordinary website login state.
Enable the extension's **Allow in incognito** setting first. Incognito tasks cannot
borrow tabs, and all incognito windows in a profile share login state with each other.
[Incognito guide](docs/browser-profiles.md#incognito-agent-windows)
### Run the agent on a server
Keep the browser and its logins on your computer while the agent, CLI, and daemon run on a server. Pair the extension with that server over authenticated WSS; the browser initiates the connection, so your computer needs no inbound port.
The built-in server supports device pairing, renewal, and revocation. The `bsk upload` and `bsk download` file-transfer commands remain local-only. Authorized video exports can write to the CLI machine, including a remote server; Save MP4 as in the extension writes to the browser computer. [Remote connection guide](docs/remote-extension-connection.md)
## Browser control and privacy
By default, an Agent Window shares the selected profile's login state; **it is not a separate account or security sandbox**. Agents can act with the permissions of the signed-in websites, so choose the tasks and agent you trust.
New tasks enable shared control automatically. BrowserSkill observes page changes and supported manual activity in controlled tabs so the agent can yield while you edit and synchronize before acting again. This coordination works even when debugging, audit and video recording are off. Use the task's manual hold and resume controls to keep control while you work. [Shared-control guide](crates/bsk-cli/skill/references/cooperation.md)
The extension has two independent **Automation settings**, both enabled by default:
| Setting | What it controls |
| --- | --- |
| **Confirm before borrowing tabs** | Ask before an agent takes control of one of your existing tabs. Turning it off permits borrowing without that prompt. |
| **Allow requests for human help** | Let the agent ask you to handle login, verification, or another step that needs your participation. |
These browser settings apply to existing and new sessions. Legacy `--unattended`, `tab borrow --no-confirm`, and `BSK_REQUEST_HELP=off` inputs cannot override them. Disabling human help does not mean the requested step was completed. Close the Agent Window to stop its tasks.
BrowserSkill does not operate a mandatory cloud service or collect product telemetry. Automation results go to your selected daemon or gateway and the agent using it; that agent or service may process or retain them under its own policies. The extension does not independently call an AI provide