Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

docs: prepare Anthropic browser toolset launch

Gregor Žunič4b0913c3df7b
diff --git a/README.md b/README.md
index ae0462a41..b7eff6272 100644
--- a/README.md
+++ b/README.md
@@ -153,6 +153,35 @@ The agent opens a browser, looks up the repository, and prints its answer.
<br/>
+# Anthropic SDK × Browser Use
+
+Use Claude's browser toolset with Browser Use as the driver. Browser Use
+implements all 31 browser actions and can control a local browser, a Browser
+Use Cloud browser, or an existing remote browser over CDP.
+
+```python
+import os
+
+from anthropic import AsyncAnthropic
+from browser_use.integrations.anthropic import Bash, BrowserUse
+
+task = 'Open example.com and report its page title.'
+driver = BrowserUse() # Or BrowserUse(use_cloud=True)
+bash = Bash(output_dir='outputs')
+
+async with driver, AsyncAnthropic() as client:
+ runner = client.beta.messages.tool_runner(
+ model=os.environ['ANTHROPIC_MODEL'],
+ tools=[driver, bash],
+ messages=[{'role': 'user', 'content': task}],
+ )
+ result = await runner.until_done()
+```
+
+[Anthropic SDK + Browser Use quickstart ↗](examples/integrations/anthropic)
+
+<br/>
+
# Browser Use Benchmark v2
<img alt="Browser Use Benchmark v2 - Mean rubric score by model and cost per task" src="static/hard_benchmark_v2.jpg" width="100%">
diff --git a/browser_use/integrations/anthropic/bash.py b/browser_use/integrations/anthropic/bash.py
index 2929041fb..fc5cfc9b2 100644
--- a/browser_use/integrations/anthropic/bash.py
+++ b/browser_use/integrations/anthropic/bash.py
@@ -99,7 +99,7 @@ async def run_bash(
)
-def Bash( # noqa: N802 - public tool factories mirror their exported tool names
+def Bash(
*,
output_dir: str | Path = 'outputs',
timeout_seconds: float = 120,
diff --git a/browser_use/integrations/anthropic/browser_use.py b/browser_use/integrations/anthropic/browser_use.py
index bc7cf1a6d..617c7861a 100644
--- a/browser_use/integrations/anthropic/browser_use.py
+++ b/browser_use/integrations/anthropic/browser_use.py
@@ -13,9 +13,10 @@ import json
import re
import time
from collections import defaultdict, deque
+from collections.abc import Callable
from dataclasses import dataclass
from io import BytesIO
-from typing import Any, Callable
+from typing import Any
from urllib.parse import urlsplit
from cdp_use import CDPClient
diff --git a/examples/integrations/anthropic/LAUNCH_CHECKLIST.md b/examples/integrations/anthropic/LAUNCH_CHECKLIST.md
deleted file mode 100644
index d314afda6..000000000
--- a/examples/integrations/anthropic/LAUNCH_CHECKLIST.md
+++ /dev/null
@@ -1,32 +0,0 @@
-# Anthropic integration launch checklist
-
-Keep this branch private until every unchecked item is complete.
-
-## Browser Use side
-
-- [x] Implement the 31 members exported by the current Anthropic browser toolset.
-- [x] Keep `BrowserUse` and `Bash` as peer tools in the runner.
-- [x] Disable `file_upload` by default.
-- [x] Resize screenshots to the API image limit.
-- [x] Bound Bash runtime and output and remove ambient credentials.
-- [x] Document owned, borrowed, remote CDP, and Browser Use Cloud sessions.
-- [x] Run focused tests, Ruff, formatting, compilation, and a borrowed-CDP smoke.
-- [ ] Replace the existing `anthropic==0.76.0` dependency with Anthropic's
- confirmed public browser-toolset SDK version.
-- [ ] Run `quickstart.py` through the public SDK and launch model.
-
-## Release coordination
-
-- [ ] Confirm the public Python package version and supported Python versions.
-- [ ] Confirm the public model name used in the quickstart.
-- [ ] Confirm release time, embargo, Anthropic docs URL, and quickstarts URL.
-- [ ] Replace placeholders in the launch copy with the Browser Use announcement URL.
-- [ ] Push or open a PR only after explicit publication approval.
-
-## Supported file behavior
-
-Local Bash and a local browser share a filesystem. With a remote browser, an
-upload succeeds only when the file already exists on the browser host or the
-application supplies a `document_resolver` that stages approved documents
-there. Cross-host upload/download transport is a follow-up and is not claimed
-by this launch branch.
diff --git a/examples/integrations/anthropic/README.md b/examples/integrations/anthropic/README.md
index 4ca80120d..23b135a84 100644
--- a/examples/integrations/anthropic/README.md
+++ b/examples/integrations/anthropic/README.md
@@ -1,67 +1,113 @@
-# Browser Use with the Anthropic SDK
+# Anthropic SDK × Browser Use
-Browser Use implements Anthropic's complete 31-action browser toolset. `Bash`
-is a separate, bounded tool for local computation and deliverables. Both ship
-from the main `browser-use` package.
+Browser Use and Anthropic collaborated on this integration so Claude can use
+Browser Use as its browser driver. The integration keeps Anthropic's tool
+runner and browser-tool contract while Browser Use provides the browser
+runtime, all 31 actions, and local or remote execution.
+
+<img
+ src="./architecture.svg"
+ alt="A task enters the Anthropic SDK tool runner, which sends browser actions to the Browser Use driver and local computation to Bash. The Browser Use driver controls local Chromium, Browser Use Cloud, or an existing remote browser over CDP."
+ width="100%"
+>
+
+The same program works with three browser runtimes:
+
+| Runtime | Driver | Who starts and stops it? |
+| --- | --- | --- |
+| Local Chromium | `BrowserUse()` | The driver |
+| Browser Use Cloud | `BrowserUse(use_cloud=True)` | The driver |
+| Existing local or remote CDP browser | `BrowserUse(session)` | Your application |
## Quickstart
-Install releases that include Browser Use's Anthropic integration and
-Anthropic's browser toolset API:
+Browser Use requires Python 3.11 or newer. Anthropic's browser toolset requires
+the Anthropic SDK release that includes `anthropic.tools.browser` and
+`client.beta.messages.tool_runner`.
+
+Create a project and install both packages:
+
+```bash
+uv init --python 3.12
+uv add browser-use anthropic
+uvx browser-use install
+```
+
+Set the API key and the model Anthropic documents for the browser toolset:
```bash
-pip install -U browser-use anthropic
-export ANTHROPIC_API_KEY=...
-export ANTHROPIC_MODEL=...
-python examples/integrations/anthropic/quickstart.py
+export ANTHROPIC_API_KEY=your-key
+export ANTHROPIC_MODEL=your-model
+# Optional: show Anthropic SDK logs
+export ANTHROPIC_LOG=info
```
-The integration composes as two peer tools:
+Save this as `run_browser.py`:
```python
+import asyncio
+import os
+from pathlib import Path
+
from anthropic import AsyncAnthropic
+
from browser_use.integrations.anthropic import Bash, BrowserUse
-browser = BrowserUse()
-bash = Bash(output_dir='outputs')
-async with browser, AsyncAnthropic() as client:
- runner = client.beta.messages.tool_runner(
- model=model,
- tools=[browser, bash],
- messages=[{'role': 'user', 'content': task}],
- )
- result = await runner.until_done()
+async def main() -> None:
+ task = 'Open example.com and save its page title to title.txt.'
+ driver = BrowserUse()
+ bash = Bash(output_dir=Path('outputs'))
+
+ async with driver, AsyncAnthropic() as client:
+ runner = client.beta.messages.tool_runner(
+ model=os.environ['ANTHROPIC_MODEL'],
+ max_tokens=32_768,
+ max_iterations=1_000,
+ tools=[driver, bash],
+ system=(
+ 'Complete the task autonomously. Use the browser tools for web '
+ 'interaction. Use Bash for local computation and files in outputs/.'
+ ),
+ messages=[{'role': 'user', 'content': task}],
+ )
+ final = await runner.until_done()
+
+ print('\n'.join(block.text for block in final.content if block.type == 'text'))
+
+
+if __name__ == '__main__':
+ asyncio.run(main())
```
-`BrowserUse()` creates, starts, and stops its own `BrowserSession`. To use an
-existing session, pass it as `BrowserUse(session)`; the application keeps
-responsibility for starting and stopping that session.
+Run it:
+
+```bash
+uv run run_browser.py
+```
+
+The application owns the driver lifecycle. The `async with driver` block
+starts the browser and always closes it when the run ends.
+
+See Anthropic's
+[browser-toolset quickstarts](https://github.com/anthropics/claude-quickstarts/tree/main/browser-toolset)
+for the SDK concepts and runner behavior.
## Browser Use Cloud
-Set `BROWSER_USE_API_KEY` and select Cloud directly on the driver:
+Set `BROWSER_USE_API_KEY`, then change one line:
```python
-browser = BrowserUse(use_cloud=True)
-bash = Bash(output_dir='outputs')
-
-async with browser, AsyncAnthropic() as client:
- runner = client.beta.messages.tool_runner(
- model=model,
- tools=[browser, bash],
- messages=[{'role': 'user', 'content': task}],
- )
- result = await runner.until_done()
+driver = BrowserUse(use_cloud=True)
```
-The driver creates the Cloud browser, connects over CDP, and stops the Cloud
-browser when the context exits.
+The driver creates a Browser Use Cloud browser, connects to it over CDP, and
+stops it when the context exits.
## Existing or remote browser
-Pass any started `BrowserSession` to the driver. This is the same shape for an
-existing local browser or a remote CDP endpoint:
+Pass an already started `BrowserSession` to the driver. Your application keeps
+responsibility for that session's lifecycle:
```python
import os
@@ -70,91 +116,109 @@ from anthropic import AsyncAnthropic
from browser_use import BrowserSession
from browser_use.integrations.anthropic import Bash, BrowserUse
+task = 'Open example.com and report its page title.'
session = BrowserSession(cdp_url=os.environ['BROWSER_USE_CDP_URL'])
await session.start()
-browser = BrowserUse(session)
+driver = BrowserUse(session)
bash = Bash(output_dir='outputs')
try:
- async with browser, AsyncAnthropic() as client:
- runner = client.beta.messages.tool_runner(
- model=model,
- tools=[browser, bash],
- messages=[{'role': 'user', 'content': task}],
- )
- result = await runner.until_done()
+ async with driver, AsyncAnthropic() as client:
+ runner = client.beta.messages.tool_runner(
+ model=os.environ['ANTHROPIC_MODEL'],
+ max_tokens=32_768,
+ max_iterations=1_000,
+ tools=[driver, bash],
+ messages=[{'role': 'user', 'content': task}],
+ )
+ final = await runner.until_done()
finally:
- await session.kill()
+ await session.kill()
+```
+
+## What ships in Browser Use
+
+`BrowserUse` implements every member of Anthropic's 31-action browser
+toolset:
+
+| Group | Actions |
+| --- | --- |
+| Navigation and tabs | `navigate`, `new_tab`, `list_tabs`, `switch_tab`, `close_tab` |
+| Page state | `screenshot`, `zoom`, `read_page`, `find`, `get_page_text`, `wait` |
+| Pointer | `left_click`, `right_click`, `middle_click`, `double_click`, `triple_click`, `hover`, `mouse_move`, `left_mouse_down`, `left_mouse_up`, `left_click_drag`, `scroll`, `scroll_to` |
+| Input | `type`, `key`, `hold_key`, `form_input`, `file_upload` |
+| Diagnostics | `read_console`, `read_network`, `javascript_exec` |
+
+`Bash` is a separate custom tool for local computation and deliverables. It
+runs commands from the configured output directory, strips ambient credentials
+from the child environment, caps returned output, applies a timeout, and kills
+the process group on timeout:
+
+```python
+bash = Bash(
+ output_dir='outputs',
+ timeout_seconds=120,
+ max_output_bytes=50_000,
+)
```
-Bash still runs beside the SDK process, so files it creates are local to that
-process. Remote uploads need a browser-host path or an application
-`document_resolver`.
+The working directory is a boundary for generated files, not an operating
+system sandbox. Run the SDK process inside your normal container or sandbox
+when tasks may contain untrusted instructions.
-## Approval callback
+## Approvals and high-risk actions
-The Anthropic SDK calls `confirm` before configured actions run. Keep
-`javascript_exec` and `file_upload` disabled unless the application needs
+Anthropic's SDK calls `confirm` for actions that require approval. Keep
+`javascript_exec` and `file_upload` disabled unless your application needs
them:
```python
async def confirm(context):
- return await app.approve(
- action=context.member,
- tab_id=context.tab_id,
- tab_url=context.tab_url,
- )
+ return await app.approve(
+ action=context.member,
+ tab_id=context.tab_id,
+ tab_url=context.tab_url,
+ )
-browser = BrowserUse(
- confirm=confirm,
- configs={'javascript_exec': {'enabled': True}},
+driver = BrowserUse(
+ confirm=confirm,
+ configs={'javascript_exec': {'enabled': True}},
)
```
-## Browser actions
-
-`BrowserUse` implements all browser-toolset members:
-
-- Navigation and tabs: `navigate`, `new_tab`, `list_tabs`, `switch_tab`, `close_tab`
-- Page state: `screenshot`, `zoom`, `read_page`, `find`, `get_page_text`, `wait`
-- Pointer: `left_click`, `right_click`, `middle_click`, `double_click`,
- `triple_click`, `hover`, `mouse_move`, `left_mouse_down`, `left_mouse_up`,
- `left_click_drag`, `scroll`, `scroll_to`
-- Input: `type`, `key`, `hold_key`, `form_input`, `file_upload`
-- Diagnostics: `read_console`, `read_network`, `javascript_exec`
+The SDK's URL and file policies remain available through the driver's base
+class. Use them to constrain navigation and approved documents.
-`file_upload` is disabled by default. Enable it only when upload paths are
-already present on the browser host, or provide a `document_resolver` that maps
-approved document IDs to browser-host paths. The adapter does not copy files
-between the SDK host and a remote browser host.
+## Files with remote browsers
-`javascript_exec`, `read_console`, and `read_network` follow the Anthropic SDK's
-tool configuration and confirmation policies. Enable only the members your
-application needs, and pass the SDK's required `confirm` callback when enabling
-members that can execute page code or expose diagnostic data.
+`file_upload` works when the resolved file path exists on the browser host.
+For a remote browser, provide a `document_resolver` that maps an approved
+document ID to a browser-host path:
-## Bash behavior
-
-`Bash(output_dir="outputs")` starts `/bin/bash` in the configured directory,
-removes ambient credentials from the child environment, caps returned output,
-enforces a timeout, and kills the entire process group on timeout. Configure
-those bounds with `timeout_seconds` and `max_output_bytes`.
+```python
+driver = BrowserUse(
+ session,
+ document_resolver=lambda document_id: remote_paths[document_id],
+ configs={'file_upload': {'enabled': True}},
+ confirm=confirm,
+)
+```
-The working directory is not an operating-system sandbox. Bash still has the
-permissions of the SDK process. Run the SDK process in your normal container or
-sandbox when tasks may contain untrusted instructions.
+`Bash` runs beside the SDK process, so files it creates are local to that
+process. The adapter does not transfer files between the SDK host and a remote
+browser host.
-## Anthropic SDK contract
+## Integration contract
-Browser Use requires an Anthropic SDK release that publicly exports:
+The public integration contains Browser Use code only. It expects Anthropic's
+SDK to provide:
-- `anthropic.tools.browser.BetaAsyncAbstractBrowserToolset20260801` and its
- result, state, error, policy, and input types
+- `BetaAsyncAbstractBrowserToolset20260801` and the browser action types
- `client.beta.messages.tool_runner(...)`
-- mixed toolset and custom-tool execution, as used by `tools=[browser, bash]`
+- mixed browser-toolset and custom-tool execution through
+ `tools=[driver, bash]`
+- browser state serialization and the required browser-tool beta header
-The SDK must also send the browser-tool beta header, serialize `browser_state`
-for every member result, and preserve tool-result and compaction blocks across
-long runs. Image size limits, context compaction, and cache reporting belong at
-the SDK or API boundary because the adapter only returns individual screenshots.
+Browser Use accepts any compatible Anthropic 1.x release. The final launch SDK
+version should follow Anthropic's release notes.
diff --git a/examples/integrations/anthropic/architecture.svg b/examples/integrations/anthropic/architecture.svg
new file mode 100644
index 000000000..ef01c236b
--- /dev/null
+++ b/examples/integrations/anthropic/architecture.svg
@@ -0,0 +1,94 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="660" viewBox="0 0 1200 660" role="img" aria-labelledby="title desc">
+ <title id="title">Anthropic SDK and Browser Use integration architecture</title>
+ <desc id="desc">A task enters the Anthropic SDK tool runner. Browser actions flow to the Browser Use driver and its 31 actions, then to local Chromium, Browser Use Cloud, or an existing remote CDP browser. Bash handles local computation and files in the output directory.</desc>
+ <defs>
+ <linearGradient id="background" x1="0" y1="0" x2="1" y2="1">
+ <stop offset="0" stop-color="#0b1020"/>
+ <stop offset="1" stop-color="#181c33"/>
+ </linearGradient>
+ <linearGradient id="anthropic" x1="0" y1="0" x2="1" y2="1">
+ <stop offset="0" stop-color="#f3d5bd"/>
+ <stop offset="1" stop-color="#d7a77f"/>
+ </linearGradient>
+ <linearGradient id="browseruse" x1="0" y1="0" x2="1" y2="1">
+ <stop offset="0" stop-color="#f4ff80"/>
+ <stop offset="1" stop-color="#a8ff60"/>
+ </linearGradient>
+ <filter id="shadow" x="-20%" y="-20%" width="140%" height="140%">
+ <feDropShadow dx="0" dy="12" stdDeviation="18" flood-color="#000" flood-opacity=".28"/>
+ </filter>
+ <marker id="arrow" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="8" markerHeight="8" orient="auto-start-reverse">
+ <path d="M 0 0 L 10 5 L 0 10 z" fill="#b9c2e4"/>
+ </marker>
+ </defs>
+ <rect width="1200" height="660" rx="28" fill="url(#background)"/>
+ <circle cx="1120" cy="70" r="160" fill="#92ff64" opacity=".05"/>
+ <circle cx="90" cy="620" r="210" fill="#d7a77f" opacity=".06"/>
+
+ <text x="64" y="68" fill="#f8f9ff" font-family="Inter, ui-sans-serif, system-ui, sans-serif" font-size="30" font-weight="750">Anthropic SDK × Browser Use</text>
+ <text x="64" y="100" fill="#9da8ce" font-family="Inter, ui-sans-serif, system-ui, sans-serif" font-size="17">One tool runner. A complete browser driver. Any browser runtime.</text>
+
+ <g filter="url(#shadow)">
+ <rect x="64" y="154" width="210" height="112" rx="22" fill="#242941" stroke="#3a4265"/>
+ <circle cx="112" cy="210" r="23" fill="#4a537c"/>
+ <path d="M103 210h18M115 204l6 6-6 6" fill="none" stroke="#fff" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/>
+ <text x="148" y="203" fill="#fff" font-family="Inter, ui-sans-serif, system-ui, sans-serif" font-size="18" font-weight="700">User task</text>
+ <text x="148" y="229" fill="#abb4d4" font-family="Inter, ui-sans-serif, system-ui, sans-serif" font-size="14">Plain-language goal</text>
+
+ <rect x="350" y="140" width="300" height="140" rx="24" fill="url(#anthropic)"/>
+ <text x="382" y="187" fill="#261d18" font-family="Inter, ui-sans-serif, system-ui, sans-serif" font-size="14" font-weight="800" letter-spacing="1.5">ANTHROPIC SDK</text>
+ <text x="382" y="221" fill="#261d18" font-family="Inter, ui-sans-serif, system-ui, sans-serif" font-size="24" font-weight="800">tool_runner</text>
+ <text x="382" y="250" fill="#594236" font-family="Inter, ui-sans-serif, system-ui, sans-serif" font-size="15">Plans, dispatches, and compacts</text>
+
+ <rect x="746" y="128" width="390" height="170" rx="26" fill="url(#browseruse)"/>
+ <text x="780" y="174" fill="#14200c" font-family="Inter, ui-sans-serif, system-ui, sans-serif" font-size="14" font-weight="850" letter-spacing="1.5">BROWSER USE DRIVER</text>
+ <text x="780" y="211" fill="#14200c" font-family="Inter, ui-sans-serif, system-ui, sans-serif" font-size="25" font-weight="850">31 browser actions</text>
+ <text x="780" y="242" fill="#314d20" font-family="Inter, ui-sans-serif, system-ui, sans-serif" font-size="15">Navigation · page state · pointer</text>
+ <text x="780" y="267" fill="#314d20" font-family="Inter, ui-sans-serif, system-ui, sans-serif" font-size="15">Input · tabs · diagnostics</text>
+ </g>
+
+ <path d="M274 210 H338" stroke="#b9c2e4" stroke-width="3" marker-end="url(#arrow)"/>
+ <path d="M650 194 H732" stroke="#b9c2e4" stroke-width="3" marker-end="url(#arrow)"/>
+ <text x="661" y="179" fill="#9da8ce" font-family="Inter, ui-sans-serif, system-ui, sans-serif" font-size="13">browser calls</text>
+
+ <path d="M500 280 V392" stroke="#b9c2e4" stroke-width="3" marker-end="url(#arrow)"/>
+ <text x="516" y="344" fill="#9da8ce" font-family="Inter, ui-sans-serif, system-ui, sans-serif" font-size="13">local work</text>
+
+ <g filter="url(#shadow)">
+ <rect x="350" y="410" width="300" height="156" rx="24" fill="#242941" stroke="#3a4265"/>
+ <rect x="382" y="444" width="54" height="40" rx="10" fill="#4a537c"/>
+ <text x="396" y="470" fill="#fff" font-family="ui-monospace, SFMono-Regular, monospace" font-size="17" font-weight="700">&gt;_</text>
+ <text x="455" y="465" fill="#fff" font-family="Inter, ui-sans-serif, system-ui, sans-serif" font-size="23" font-weight="800">Bash</text>
+ <text x="382" y="511" fill="#abb4d4" font-family="Inter, ui-sans-serif, system-ui, sans-serif" font-size="15">Local computation</text>
+ <text x="382" y="537" fill="#abb4d4" font-family="Inter, ui-sans-serif, system-ui, sans-serif" font-size="15">Files in outputs/</text>
+ </g>
+
+ <path d="M940 298 V352" stroke="#b9c2e4" stroke-width="3"/>
+ <path d="M775 352 H1105" stroke="#b9c2e4" stroke-width="3"/>
+ <path d="M775 352 V408" stroke="#b9c2e4" stroke-width="3" marker-end="url(#arrow)"/>
+ <path d="M940 352 V408" stroke="#b9c2e4" stroke-width="3" marker-end="url(#arrow)"/>
+ <path d="M1105 352 V408" stroke="#b9c2e4" stroke-width="3" marker-end="url(#arrow)"/>
+
+ <g filter="url(#shadow)" font-family="Inter, ui-sans-serif, system-ui, sans-serif">
+ <rect x="690" y="426" width="170" height="140" rx="20" fill="#242941" stroke="#3a4265"/>
+ <circle cx="775" cy="463" r="18" fill="#4a537c"/>
+ <rect x="765" y="454" width="20" height="17" rx="2" fill="none" stroke="#fff" stroke-width="2"/>
+ <text x="775" y="510" text-anchor="middle" fill="#fff" font-size="17" font-weight="750">Local</text>
+ <text x="775" y="535" text-anchor="middle" fill="#abb4d4" font-size="14">Chromium</text>
+
+ <rect x="855" y="426" width="170" height="140" rx="20" fill="#242941" stroke="#3a4265"/>
+ <circle cx="940" cy="463" r="18" fill="#4a537c"/>
+ <path d="M928 468h24M931 462a9 9 0 0118 0" fill="none" stroke="#fff" stroke-width="2" stroke-linecap="round"/>
+ <text x="940" y="510" text-anchor="middle" fill="#fff" font-size="17" font-weight="750">Browser Use</text>
+ <text x="940" y="535" text-anchor="middle" fill="#abb4d4" font-size="14">Cloud</text>
+
+ <rect x="1020" y="426" width="116" height="140" rx="20" fill="#242941" stroke="#3a4265"/>
+ <circle cx="1078" cy="463" r="18" fill="#4a537c"/>
+ <path d="M1067 463h22M1084 457l6 6-6 6" fill="none" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
+ <text x="1078" y="510" text-anchor="middle" fill="#fff" font-size="17" font-weight="750">Remote</text>
+ <text x="1078" y="535" text-anchor="middle" fill="#abb4d4" font-size="14">CDP</text>
+ </g>
+
+ <rect x="64" y="610" width="1072" height="1" fill="#313854"/>
+ <text x="64" y="637" fill="#7f89ad" font-family="Inter, ui-sans-serif, system-ui, sans-serif" font-size="13">Browser Use supplies the runtime and driver. Anthropic supplies the SDK, model loop, and browser-tool contract.</text>
+</svg>
diff --git a/examples/integrations/anthropic/quickstart.py b/examples/integrations/anthropic/quickstart.py
index bc4dc08d6..528222fc6 100644
--- a/examples/integrations/anthropic/quickstart.py
+++ b/examples/integrations/anthropic/quickstart.py
@@ -10,16 +10,16 @@ from browser_use.integrations.anthropic import Bash, BrowserUse
async def main() -> None:
- browser = BrowserUse()
+ driver = BrowserUse()
bash = Bash(output_dir=Path('outputs'))
- async with browser:
+ async with driver:
async with AsyncAnthropic() as client:
runner = client.beta.messages.tool_runner(
model=os.environ['ANTHROPIC_MODEL'],
max_tokens=32_768,
max_iterations=1_000,
- tools=[browser, bash],
+ tools=[driver, bash],
system=(
'Complete the task autonomously. Use Browser Use for browser actions. '
'Use Bash for local computation and files in outputs/.'
diff --git a/pyproject.toml b/pyproject.toml
index 5c79c94fe..261308446 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -31,7 +31,7 @@ dependencies = [
"uuid7==0.1.0",
"google-genai==1.65.0",
"openai==2.26.0",
- "anthropic==0.76.0",
+ "anthropic>=0.76.0,<2.0.0",
"groq==1.0.0",
"ollama==0.6.1",
"google-api-python-client==2.188.0",
diff --git a/tests/ci/integrations/test_anthropic_browser_use.py b/tests/ci/integrations/test_anthropic_browser_use.py
index 9c2eef7f8..c52131abc 100644
--- a/tests/ci/integrations/test_anthropic_browser_use.py
+++ b/tests/ci/integrations/test_anthropic_browser_use.py
@@ -166,9 +166,9 @@ def test_quickstart_uses_peer_browser_use_and_bash_tools() -> None:
source = QUICKSTART_PATH.read_text()
tree = ast.parse(source)
assert tree is not None
- assert 'browser = BrowserUse()' in source
+ assert 'driver = BrowserUse()' in source
assert "bash = Bash(output_dir=Path('outputs'))" in source
- assert 'tools=[browser, bash]' in source
+ assert 'tools=[driver, bash]' in source
assert 'ActorUse' not in source
assert 'owns_browser' not in source
assert 'until_done()' in source