Skills 与可复用能力

Save a Browser Use task as a rerunnable script for repeated live data extraction and self-healing runs.

Teach a Cloud agent a repeated browser task once. It can save the working code in its workspace. Later runs reuse that script, fetch fresh data from the live site, and repair the code if the site changed.

This pattern works well for repeated data extraction, checks, and reports. The example below collects the top five Hacker News stories. The first run writes and tests the script. Every later run sends a new request to the live page.

<img alt="A first agent run saves and tests script.py and a README in a workspace; later runs reuse the script and repair it only when necessary" />

<img alt="A first agent run saves and tests script.py and a README in a workspace; later runs reuse the script and repair it only when necessary" />

The file stays. The running process does not. Each later run starts an agent again, but it can reuse the code instead of rebuilding the browser workflow.

Save the working script

Create one workspace, then ask the first run to do the job and save a tested script:

from browser_use_sdk.v4 import BrowserUse

client = BrowserUse()
workspace = client.workspaces.create(name="live-hn-data")

first = client.runs.create(
    """
    Open https://news.ycombinator.com/ and return the top five story titles and
    URLs as JSON.

    Save a script at scripts/extract_top_stories.py that collects the same
    fields. The script must send a fresh request to the live page every time it
    runs. Do not hard-code story titles, save the page HTML, or read an old
    result. Print JSON with source_url set to https://news.ycombinator.com/ and
    include fetched_at, source_sha256, and stories.

    Run the script twice and save the outputs as proof/run-1.json and
    proof/run-2.json. Confirm both outputs have a fresh fetched_at value and
    five stories. Add scripts/README.md with the command to run it again.
    """,
    model="grok-4.5",
    workspace_id=workspace.id,
)
client.runs.wait_for_completion(first.id)

saved = client.workspaces.files(workspace.id, prefix="scripts/")
print([file.path for file in saved.files])
print(f"Keep this workspace ID: {workspace.id}")
import { BrowserUse } from "browser-use-sdk/v4";

const client = new BrowserUse();
const workspace = await client.workspaces.create({ name: "live-hn-data" });

const first = await client.runs.create({
  task: `
    Open https://news.ycombinator.com/ and return the top five story titles and
    URLs as JSON.

    Save a script at scripts/extract_top_stories.py that collects the same
    fields. The script must send a fresh request to the live page every time it
    runs. Do not hard-code story titles, save the page HTML, or read an old
    result. Print JSON with source_url set to https://news.ycombinator.com/ and
    include fetched_at, source_sha256, and stories.

    Run the script twice and save the outputs as proof/run-1.json and
    proof/run-2.json. Confirm both outputs have a fresh fetched_at value and
    five stories. Add scripts/README.md with the command to run it again.
  `,
  model: "grok-4.5",
  workspaceId: workspace.id,
});
await client.runs.waitForCompletion(first.id);

const saved = await client.workspaces.files(workspace.id, {
  prefix: "scripts/",
});
console.log(saved.files.map((file) => file.path));
console.log(`Keep this workspace ID: ${workspace.id}`);

Rerun it later

Copy the workspace ID from the first process. Pass that ID without a session ID to start a new conversation with the saved files:

from browser_use_sdk.v4 import BrowserUse

client = BrowserUse()
workspace_id = "your-workspace-id"

later = client.runs.create(
    """
    Run python scripts/extract_top_stories.py and return its JSON. Check that
    fetched_at is current, source_url is https://news.ycombinator.com/, and it
    has five stories. If the script fails or the result is malformed, inspect
    the live page and repair the saved script before returning the new result.
    """,
    model="grok-4.5",
    workspace_id=workspace_id,
)
result = client.runs.wait_for_completion(later.id)
print(result.result)
import { BrowserUse } from "browser-use-sdk/v4";

const client = new BrowserUse();
const workspaceId = "your-workspace-id";

const later = await client.runs.create({
  task: `
    Run python scripts/extract_top_stories.py and return its JSON. Check that
    fetched_at is current, source_url is https://news.ycombinator.com/, and it
    has five stories. If the script fails or the result is malformed, inspect
    the live page and repair the saved script before returning the new result.
  `,
  model: "grok-4.5",
  workspaceId,
});
const result = await client.runs.waitForCompletion(later.id);
console.log(result.result);

Live data, not a cached answer

The saved script must request the source page on every execution. fetched_at shows when the request ran, and source_sha256 identifies the response body. The data can stay the same between two runs when the page has not changed. The script still fetched it again.

Do not put old output, page HTML, or fixed values inside the script. Save output files only as optional history or proof.

Can rerunnable tasks be cheaper at scale?

Reusing code can remove browser steps and model work that would otherwise be repeated on every extraction. Every later run still starts a model and uses tokens, so the savings depend on the task, site, and model. Compare the cost and duration of the first run with later runs in your own project before making a savings claim.

Workspace or session?

  • Pass workspace_id / workspaceId for a new conversation with the same files. The new run gets a new browser.
  • Pass session_id / sessionId to continue the old conversation and its workspace. Cloud can also reuse that session's browser while it is still alive.

A saved script can break when a site changes. Ask the agent to check the live result and self-heal the script instead of trusting stale output.


Install Browser Use as an agent skill. Drop browser automation, cloud, QA, and payments into Claude Code, Cursor, and any agent that supports SKILL.md.

Browser Use ships a set of agent skills — self-contained SKILL.md bundles that teach a coding agent (Claude Code, Cursor, OpenClaw, Hermes, and others) how to use Browser Use. Each skill is installable from skills.sh with one command.

Install

Every skill installs through the skills CLI with the same pattern — swap in the skill name with --skill:

npx skills add https://github.com/browser-use/browser-use --skill <name>

For example, to install the QA skill:

npx skills add https://github.com/browser-use/browser-use --skill qa

The skills CLI drops the skill into your agent's skills directory (e.g. .claude/skills/ for Claude Code). Your agent picks it up automatically — no extra wiring.

Available skills

Drive a browser directly from the CLI — navigate, click, fill forms, screenshot, and extract data.



Reference for Browser Use Cloud — the hosted REST API (v2 & v3) and the Python/TypeScript SDKs.



Reference for writing Python against the `browser-use` library — Agent, Browser, Tools, and more.



QA-test any site or local dev server and return a 1–5 quality score with evidence.



Control a headless browser from a sandboxed remote machine (cloud VMs, CI, coding agents).



Pay for Browser Use Cloud per request from a crypto wallet — no signup or API key.

Source

All skills live in the skills/ directory of the browser-use repo.


Load uploaded Chrome extensions into the browsers of agent runs.

An agent run can load up to 3 Chrome extensions from your project. Each browser of the run loads them before the agent uses it.

Zero Data Retention projects cannot use extensions.

First upload the extensions and keep their IDs. The browser Extensions guide shows how.

Start a run with extensions

Pass the extension IDs in browserSettings:

from browser_use_sdk.v4 import BrowserUse

client = BrowserUse()
run = client.runs.create(
    "List the top 3 headlines on bbc.com",
    browser_settings={"extensionIds": ["<extension-id>"]},
)
curl https://api.browser-use.com/api/v4/runs \
  -H "X-Browser-Use-API-Key: $BROWSER_USE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"task":"List the top 3 headlines on bbc.com",
       "browserSettings":{"extensionIds":["<extension-id>"]}}'

In Python, pass browser_settings as a dict with the REST field name extensionIds. The TypeScript SDK types do not include extensionIds yet. Use the REST API from TypeScript.

Browser Use does not tell the agent which extensions the browser has. If the agent must open an extension page, put its chrome-extension:// URL in the task.

Follow-up runs

The first run of a session sets the extensions of the session. Every browser that the session starts loads the same extensions.

Leave out extensionIds in follow-up runs. They keep the extensions of the session. A follow-up run that passes different extensions gets a 400 response.

If you delete an extension, a browser that is already running keeps it until the browser stops. Follow-up runs can reuse that browser. Browsers that the session starts later do not load the extension.

A follow-up run that passes extensionIds must leave out the deleted ID. The API accepts this shorter list. A list with the deleted ID gets a 404 response.


Retired. Existing skills still run; new skills are no longer created.

Skills are retired. You can no longer create or refine a skill: skills.create, skills.refine, and manual recording return 410 Gone. Existing skills can still be viewed and run, and Marketplace skills can still be cloned and executed.

For new work, use rerunnable scripts. A Cloud agent learns the task once and saves the working code in its workspace, so every later run reuses it.

Run an existing skill

result = await client.skills.execute(
    skill_id,
    parameters={"X": 10},
)
print(result)
const result = await client.skills.execute(skillId, {
  parameters: { X: 10 },
});
console.log(result);

Marketplace

Browse, clone, and run community-created skills. Creating new skills is no longer available.

skills = await client.marketplace.list()
my_skill = await client.marketplace.clone(skill_id)
result = await client.marketplace.execute(skill_id, parameters={...})
const skills = await client.marketplace.list();
const mySkill = await client.marketplace.clone(skillId);
const result = await client.marketplace.execute(skillId, { parameters: { ... } });

See Pricing for skill costs.


Ask for JSON and validate the V4 result in your application.

V4 returns run.result as a string. Ask for JSON only, then validate it client-side:

from browser_use_sdk.v4 import BrowserUse
from pydantic import BaseModel

client = BrowserUse()

class Story(BaseModel):
    title: str
    points: int

run = client.runs.create(
    'Find the top HN story. Return only {"title":"...","points":0}.'
)
run = client.runs.wait_for_completion(run.id)
story = Story.model_validate_json(run.result or "{}")
import { BrowserUse } from "browser-use-sdk/v4";
import { z } from "zod";

const client = new BrowserUse();

const Story = z.object({
  title: z.string(),
  points: z.number(),
});

const run = await client.runs.create({
  task: 'Find the top HN story. Return only {"title":"...","points":0}.',
  model: "grok-4.5",
});
const result = await client.runs.waitForCompletion(run.id);
const story = Story.parse(JSON.parse(result.result ?? "{}"));

V4 does not accept output_schema / outputSchema. Handle validation errors and retry with a session follow-up when needed.


Documentation reference for using Browser Use Cloud — the hosted API and SDK for browser automation.

The cloud skill gives your agent a reference for Browser Use Cloud: the REST API (v2 and v3), the browser-use-sdk (Python and TypeScript), X-Browser-Use-API-Key authentication, cloud sessions, browser profiles and profile sync, CDP WebSocket access, stealth browsers, residential proxies, CAPTCHA handling, webhooks, workspaces, the skills marketplace, liveUrl streaming, pricing, and integration patterns (chat UI, subagents, n8n/Make/Zapier, Playwright/Puppeteer/Selenium).

For the open-source Python library (Agent, Browser, Tools), use the open-source skill instead.

Install

npx skills add https://github.com/browser-use/browser-use --skill cloud

Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the agent needs to navigate websites, interact with web pages, fill forms, take screenshots, or extract information.

The browser-use skill teaches your agent the Browser Use CLI. The CLI runs Python in the browser to do actions online. The agent can connect to your real Chrome, preserving logins, or to a Browser Use cloud browser.

Install

Install or upgrade browser-use with `uv tool install --python 3.12 --upgrade --force 'browser-use @ git+https://github.com/browser-use/browser-use.git'`, run `browser-use skill install`, and connect it to my browser. Follow https://github.com/browser-use/browser-use if setup or connection fails.

Documentation reference for writing Python code using the browser-use open-source library.

The open-source skill gives your agent a reference for writing Python against the browser-use library: Agent, Browser, and Tools configuration, supported LLM models (15+ providers), the Actor API, custom tools, lifecycle hooks, MCP server setup, sensitive-data handling, prompting strategies, and monitoring/observability with Laminar or OpenLIT.

For the Cloud API/SDK, use the cloud skill. To drive a browser directly via CLI, use the browser-use skill.

Install

npx skills add https://github.com/browser-use/browser-use --skill open-source

Controls a local browser from a sandboxed remote machine. Use when the agent runs in a sandbox (no GUI) and needs to navigate, interact, screenshot, or expose local dev servers via tunnels.

The remote-browser skill is for agents running on sandboxed remote machines (cloud VMs, CI, coding agents) that need to control a headless browser. It uses the same Browser Use CLI workflow as the browser-use skill — open, state, click, input, screenshot, close — plus headless Chromium, cloud browsers, CDP connection, and tunnels to expose local dev servers.

Install

npx skills add https://github.com/browser-use/browser-use --skill remote-browser

Set up Browser Use Cloud payments with x402 — pay per request from a crypto wallet (USDC on Base mainnet), no signup or API key.

The x402 skill walks your agent through setting up Browser Use Cloud payments with x402 — pay per request from a crypto wallet (USDC on Base mainnet), with no signup, API key, or credit card. It guides wallet setup, funding, writing the key to .env, and a \~\$1 test run. The SDK is the easiest path, and non-SDK flows are available via x402-aware client libraries. Use it when you want pay-per-use access without an API key.

Install

npx skills add https://github.com/browser-use/browser-use --skill x402

QA-test a website or web app and return a 1–5 quality score (5 = flawless, 1 = broken) with evidence.

The qa skill drives a website with a real browser, judges how well it does the thing you asked about, and returns a score from 1 (broken) to 5 (excellent) with evidence — the deliverable is a verdict, not a screenshot dump. Use it to test, QA, evaluate, or score a site, page, flow, or app, including a local dev server (e.g. localhost:5173) which it tunnels out automatically. It runs on a real Browser Use cloud browser.

Install

npx skills add https://github.com/browser-use/browser-use --skill qa