Skip to content

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

docs: add Anthropic launch visuals and evidence

Gregor Žuničc87e221798e2
diff --git a/examples/integrations/anthropic/README.md b/examples/integrations/anthropic/README.md
index 28ea30b94..2b9e271d8 100644
--- a/examples/integrations/anthropic/README.md
+++ b/examples/integrations/anthropic/README.md
@@ -57,6 +57,8 @@ from browser_use.integrations.anthropic import Bash, BrowserUse
async def main() -> None:
task = 'Open example.com and save its page title to title.txt.'
driver = BrowserUse()
+ # To use a managed remote browser instead, set BROWSER_USE_API_KEY and use:
+ # driver = BrowserUse(use_cloud=True)
bash = Bash(output_dir=Path('outputs'))
async with driver, AsyncAnthropic() as client:
@@ -86,6 +88,18 @@ Run it:
uv run run_browser.py
```
+### What the run looks like
+
+<img
+ src="./quickstart-cloud.png"
+ alt="A real Browser Use Cloud quickstart capture. The terminal shows five successful Anthropic API responses, the saved Example Domain title, and confirmed Cloud cleanup. Beside it, the remote browser shows the final example.com page."
+ width="100%"
+>
+
+This capture comes from the same quickstart shape above running against a real
+Browser Use Cloud browser. The model loop completed, wrote `title.txt`, captured
+the remote browser, and stopped the owned Cloud session when the context exited.
+
The application owns the driver lifecycle. The `async with driver` block
starts the browser and always closes it when the run ends.
@@ -178,23 +192,23 @@ person only for the actions your application treats as sensitive:
```python
async def confirm(context):
- if context.member not in {'javascript_exec', 'file_upload'}:
- return True
- return await app.approve(
- action=context.member,
- tab_id=context.tab_id,
+ if context.member not in {'javascript_exec', 'file_upload'}:
+ return True
+ return await app.approve(
+ action=context.member,
+ tab_id=context.tab_id,
tab_url=context.tab_url,
)
driver = BrowserUse(
- confirm=confirm,
- configs={
- 'javascript_exec': {'enabled': True},
- 'file_upload': {'enabled': True},
- 'read_console': {'enabled': True},
- 'read_network': {'enabled': True},
- },
+ confirm=confirm,
+ configs={
+ 'javascript_exec': {'enabled': True},
+ 'file_upload': {'enabled': True},
+ 'read_console': {'enabled': True},
+ 'read_network': {'enabled': True},
+ },
)
```
@@ -218,7 +232,10 @@ driver = BrowserUse(
`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.
+browser host. Browser-side downloads are reported by filename but stay on the
+browser host unless your application explicitly transfers them. In the same
+way, a path created by `Bash` cannot be uploaded into Browser Use Cloud until
+your application stages that file on the browser host.
## Integration contract
diff --git a/examples/integrations/anthropic/architecture.svg b/examples/integrations/anthropic/architecture.svg
index ef01c236b..b4cb47fac 100644
--- a/examples/integrations/anthropic/architecture.svg
+++ b/examples/integrations/anthropic/architecture.svg
@@ -1,94 +1,141 @@
-<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"/>
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 900" width="100%" role="img" aria-labelledby="title desc" font-family="system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif">
+<title id="title">Browser Use and Anthropic: tool_runner drives one browser runtime through the Browser Use driver</title>
+<desc id="desc">Architecture diagram. Inside your application process, a user task enters the Anthropic Python SDK tool_runner. The runner sends browser tool calls to the Browser Use driver, which implements 31 browser actions, and receives page state back. The driver controls exactly one runtime, chosen from local Chromium, Browser Use Cloud, or an existing local or remote browser over CDP. A separate bounded Bash tool runs beside the SDK process for local computation and files under outputs/. Bash does not copy files to a remote browser host. Your application owns lifecycle: the driver closes a local or Cloud browser it launched, and the application closes a borrowed CDP session.</desc>
+<defs>
+<pattern id="g" width="24" height="24" patternUnits="userSpaceOnUse"><rect width="24" height="24" fill="#f5f8fb"/><path d="M24 0H0V24" fill="none" stroke="#e1e8f0" stroke-width="0.6"/></pattern>
+<marker id="a" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto"><path d="M0 0L10 5L0 10z" fill="#13253d"/></marker>
+<marker id="r" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto"><path d="M0 0L10 5L0 10z" fill="#a8461f"/></marker>
+<marker id="l" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto"><path d="M0 0L10 5L0 10z" fill="#13253d"/></marker>
+</defs>
+<rect width="1440" height="900" fill="url(#g)"/>
- <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>
+<text x="60" y="72" font-size="13" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" letter-spacing="2.5" fill="#4a5c73">BROWSER USE × ANTHROPIC · PYTHON SDK</text>
+<text x="60" y="114" font-size="36" font-weight="700" fill="#13253d">Claude drives a real browser through one driver</text>
+<text x="60" y="146" font-size="17" fill="#33465e">Calls flow right. Page state flows back. Exactly one runtime is attached. Your application owns lifecycle.</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>
+<g font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="13" fill="#13253d">
+<line x1="1150" y1="68" x2="1196" y2="68" stroke="#13253d" stroke-width="2.5" marker-end="url(#a)"/><text x="1208" y="72">tool call</text>
+<line x1="1150" y1="94" x2="1196" y2="94" stroke="#a8461f" stroke-width="2.5" stroke-dasharray="6 4" marker-end="url(#r)"/><text x="1208" y="98" fill="#8a3a18">state returned</text>
+<line x1="1150" y1="120" x2="1196" y2="120" stroke="#13253d" stroke-width="2" stroke-dasharray="3 4"/><text x="1208" y="124">process boundary</text>
+</g>
- <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="60" y="196" width="760" height="560" fill="#ffffff" fill-opacity="0.55" stroke="#13253d" stroke-width="1.5" stroke-dasharray="3 4"/>
+<rect x="72" y="186" width="318" height="22" fill="#f5f8fb"/>
+<text x="80" y="202" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="13" font-weight="700" letter-spacing="1.5" fill="#13253d">YOUR APPLICATION PROCESS</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>
+<g>
+<rect x="90" y="250" width="160" height="110" fill="#fff" stroke="#13253d" stroke-width="2"/>
+<text x="106" y="276" font-family="ui-monospace, Menlo, Consolas, monospace" font-size="12" letter-spacing="1.5" fill="#4a5c73">01 INPUT</text>
+<text x="106" y="306" font-size="20" font-weight="700" fill="#13253d">User task</text>
+<text x="106" y="330" font-size="14" fill="#33465e">natural language</text>
+</g>
+<path d="M250 305 H294" stroke="#13253d" stroke-width="2.5" marker-end="url(#a)"/>
- <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>
+<g>
+<rect x="300" y="230" width="220" height="150" fill="#fff" stroke="#13253d" stroke-width="2"/>
+<rect x="300" y="230" width="220" height="8" fill="#c96442"/>
+<text x="318" y="264" font-family="ui-monospace, Menlo, Consolas, monospace" font-size="12" letter-spacing="1.5" fill="#8a3a18">02 ANTHROPIC SDK</text>
+<text x="318" y="298" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="24" font-weight="700" fill="#13253d">tool_runner</text>
+<text x="318" y="326" font-size="14" fill="#33465e">Claude requests a tool,</text>
+<text x="318" y="346" font-size="14" fill="#33465e">reads the result, and</text>
+<text x="318" y="366" font-size="14" fill="#33465e">loops until done.</text>
+</g>
- <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>
+<path d="M520 282 H584" stroke="#13253d" stroke-width="2.5" marker-end="url(#a)"/>
+<text x="555" y="270" text-anchor="middle" font-family="ui-monospace, Menlo, Consolas, monospace" font-size="12" fill="#13253d">call</text>
+<path d="M590 334 H526" stroke="#a8461f" stroke-width="2.5" stroke-dasharray="6 4" marker-end="url(#r)"/>
+<text x="555" y="358" text-anchor="middle" font-family="ui-monospace, Menlo, Consolas, monospace" font-size="12" fill="#8a3a18">state</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>
+<g>
+<rect x="590" y="210" width="210" height="190" fill="#13253d"/>
+<rect x="590" y="210" width="210" height="8" fill="#ECFF4D"/>
+<text x="608" y="244" font-family="ui-monospace, Menlo, Consolas, monospace" font-size="12" letter-spacing="1.5" fill="#ECFF4D">03 BROWSER USE DRIVER</text>
+<text x="608" y="302" font-size="54" font-weight="800" fill="#ffffff">31</text>
+<text x="682" y="282" font-size="16" font-weight="700" fill="#ffffff">browser</text>
+<text x="682" y="302" font-size="16" font-weight="700" fill="#ffffff">actions</text>
+<g font-family="ui-monospace, Menlo, Consolas, monospace" font-size="13" fill="#c9d6e4">
+<text x="608" y="340">navigate · click · type</text>
+<text x="608" y="360">scroll · extract · tabs</text>
+<text x="608" y="380" fill="#ECFF4D">one runtime attached</text>
+</g>
+</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)"/>
+<path d="M380 380 V464" stroke="#13253d" stroke-width="2.5" marker-end="url(#a)"/>
+<path d="M440 470 V386" stroke="#a8461f" stroke-width="2.5" stroke-dasharray="6 4" marker-end="url(#r)"/>
+<text x="370" y="430" text-anchor="end" font-family="ui-monospace, Menlo, Consolas, monospace" font-size="12" fill="#13253d">bash</text>
+<text x="450" y="430" font-family="ui-monospace, Menlo, Consolas, monospace" font-size="12" fill="#8a3a18">result</text>
- <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>
+<g>
+<rect x="300" y="470" width="220" height="160" fill="#fff" stroke="#13253d" stroke-width="2"/>
+<text x="318" y="500" font-family="ui-monospace, Menlo, Consolas, monospace" font-size="12" letter-spacing="1.5" fill="#4a5c73">04 BOUNDED BASH</text>
+<text x="318" y="528" font-size="15" fill="#13253d">Separate tool beside</text>
+<text x="318" y="548" font-size="15" fill="#13253d">the SDK process.</text>
+<text x="318" y="568" font-size="14" fill="#33465e">Local compute and files.</text>
+<rect x="318" y="584" width="100" height="28" fill="#13253d"/>
+<text x="368" y="603" text-anchor="middle" font-family="ui-monospace, Menlo, Consolas, monospace" font-size="14" fill="#ECFF4D">outputs/</text>
+</g>
- <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>
+<g>
+<rect x="560" y="470" width="240" height="160" fill="#fdf3ee" stroke="#a8461f" stroke-width="2" stroke-dasharray="6 4"/>
+<path d="M580 490 L596 506 M596 490 L580 506" stroke="#a8461f" stroke-width="3"/>
+<text x="606" y="504" font-size="13" font-weight="700" letter-spacing="1" fill="#8a3a18">HOST FILE BOUNDARY</text>
+<text x="580" y="534" font-size="14" fill="#13253d">Files in outputs/ stay on</text>
+<text x="580" y="554" font-size="14" fill="#13253d">the SDK host. Bash does</text>
+<text x="580" y="574" font-size="14" fill="#13253d">not copy files to a</text>
+<text x="580" y="594" font-size="14" fill="#13253d">remote browser host.</text>
+</g>
- <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>
+<text x="90" y="690" font-size="14" fill="#33465e">The runner, the driver, and Bash live in your process.</text>
+<text x="90" y="712" font-size="14" fill="#33465e">The browser runtime is attached on the right.</text>
- <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>
+<path d="M800 305 H846" stroke="#13253d" stroke-width="3"/>
+<circle cx="850" cy="305" r="6" fill="#fff" stroke="#13253d" stroke-width="2.5"/>
+<path d="M855 301 L894 262" stroke="#13253d" stroke-width="3" marker-end="url(#l)"/>
+<path d="M856 307 C 872 315 878 376 896 376" stroke="#8b9bb0" stroke-width="2" stroke-dasharray="3 4" fill="none"/>
+<path d="M856 309 C 868 330 872 492 896 492" stroke="#8b9bb0" stroke-width="2" stroke-dasharray="3 4" fill="none"/>
+<text x="900" y="196" font-family="ui-monospace, Menlo, Consolas, monospace" font-size="13" font-weight="700" letter-spacing="1.5" fill="#13253d">05 RUNTIME · CHOOSE EXACTLY ONE</text>
+
+<g>
+<rect x="900" y="210" width="480" height="100" fill="#fff" stroke="#13253d" stroke-width="2.5"/>
+<rect x="900" y="210" width="10" height="100" fill="#ECFF4D" stroke="#13253d"/>
+<text x="930" y="244" font-family="ui-monospace, Menlo, Consolas, monospace" font-size="13" font-weight="700" fill="#13253d">A</text>
+<text x="954" y="245" font-size="19" font-weight="700" fill="#13253d">Local Chromium</text>
+<text x="930" y="274" font-size="14" fill="#33465e">Launched by the driver on this machine.</text>
+<text x="1362" y="245" text-anchor="end" font-family="ui-monospace, Menlo, Consolas, monospace" font-size="12" font-weight="700" fill="#13253d">DRIVER CLOSES</text>
+<text x="930" y="296" font-family="ui-monospace, Menlo, Consolas, monospace" font-size="12" fill="#4a5c73">shown as the active example</text>
+</g>
+<g>
+<rect x="900" y="326" width="480" height="100" fill="#fff" stroke="#13253d" stroke-width="1.5"/>
+<rect x="900" y="326" width="10" height="100" fill="#ECFF4D" stroke="#13253d"/>
+<text x="930" y="360" font-family="ui-monospace, Menlo, Consolas, monospace" font-size="13" font-weight="700" fill="#13253d">B</text>
+<text x="954" y="361" font-size="19" font-weight="700" fill="#13253d">Browser Use Cloud</text>
+<text x="930" y="390" font-size="14" fill="#33465e">Remote session created by the driver.</text>
+<text x="1362" y="361" text-anchor="end" font-family="ui-monospace, Menlo, Consolas, monospace" font-size="12" font-weight="700" fill="#13253d">DRIVER CLOSES</text>
+</g>
+<g>
+<rect x="900" y="442" width="480" height="100" fill="#fff" stroke="#a8461f" stroke-width="1.5" stroke-dasharray="8 4"/>
+<rect x="900" y="442" width="10" height="100" fill="#c96442"/>
+<text x="930" y="476" font-family="ui-monospace, Menlo, Consolas, monospace" font-size="13" font-weight="700" fill="#8a3a18">C</text>
+<text x="954" y="477" font-size="19" font-weight="700" fill="#13253d">Existing browser over CDP</text>
+<text x="930" y="506" font-size="14" fill="#33465e">Already running, local or remote. Borrowed.</text>
+<text x="1362" y="477" text-anchor="end" font-family="ui-monospace, Menlo, Consolas, monospace" font-size="12" font-weight="700" fill="#8a3a18">APP CLOSES</text>
+</g>
+
+<g>
+<rect x="900" y="586" width="480" height="170" fill="#13253d"/>
+<text x="924" y="620" font-family="ui-monospace, Menlo, Consolas, monospace" font-size="13" font-weight="700" letter-spacing="1.5" fill="#ECFF4D">06 LIFECYCLE · OWNER AND CLEANUP</text>
+<rect x="924" y="644" width="44" height="24" fill="#ECFF4D"/>
+<text x="946" y="661" text-anchor="middle" font-family="ui-monospace, Menlo, Consolas, monospace" font-size="13" font-weight="700" fill="#13253d">A B</text>
+<text x="984" y="661" font-size="15" fill="#ffffff">Driver launched it. The driver closes it.</text>
+<rect x="924" y="690" width="44" height="24" fill="none" stroke="#f0b79c" stroke-width="1.5" stroke-dasharray="4 3"/>
+<text x="946" y="707" text-anchor="middle" font-family="ui-monospace, Menlo, Consolas, monospace" font-size="13" font-weight="700" fill="#f0b79c">C</text>
+<text x="984" y="707" font-size="15" fill="#ffffff">Borrowed over CDP. Your app closes it.</text>
+<text x="924" y="738" font-size="13" fill="#c9d6e4">Wrap each run so teardown always happens.</text>
+</g>
+
+<line x1="60" y1="800" x2="1380" y2="800" stroke="#13253d" stroke-width="1"/>
+<g font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="13" fill="#33465e">
+<text x="60" y="834">1 task → tool_runner → Browser Use driver (31 actions) → 1 runtime</text>
+<text x="1380" y="834" text-anchor="end">Architecture diagram · not to scale</text>
+</g>
</svg>
diff --git a/examples/integrations/anthropic/quickstart-cloud.png b/examples/integrations/anthropic/quickstart-cloud.png
new file mode 100644
index 000000000..f773bd0d6
Binary files /dev/null and b/examples/integrations/anthropic/quickstart-cloud.png differ
diff --git a/tests/ci/integrations/test_anthropic_browser_use.py b/tests/ci/integrations/test_anthropic_browser_use.py
index 8a313acfc..b67fe5ac1 100644
--- a/tests/ci/integrations/test_anthropic_browser_use.py
+++ b/tests/ci/integrations/test_anthropic_browser_use.py
@@ -9,6 +9,7 @@ import subprocess
import sys
from pathlib import Path
from types import SimpleNamespace
+from typing import Any, cast
import pytest
@@ -74,7 +75,7 @@ def test_missing_browser_toolset_sdk_has_an_actionable_error() -> None:
if sdk_available:
pytest.skip('The installed Anthropic SDK already includes browser tools.')
env = os.environ.copy()
- env['PYTHONPATH'] = str(ROOT)
+ env['PYTHONPATH'] = os.pathsep.join(filter(None, (str(ROOT), env.get('PYTHONPATH'))))
result = subprocess.run(
[
sys.executable,
@@ -138,7 +139,7 @@ async def test_reference_document_identity_survives_cdp_session_rotation() -> No
return 'rotating-session'
driver = BrowserUse()
- driver.browser = SimpleNamespace(cdp_client=FakeCDP())
+ driver.browser = cast(Any, SimpleNamespace(cdp_client=FakeCDP()))
page = FakePage()
document = await driver._document(page)
ref = driver._reference(page, document, 42)