Skip to content

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

README: cloud step edits the existing browser= line instead of a new Agent

Gregor Zuniccfe146a02de4
diff --git a/README.md b/README.md
index 2518e9796..ceb9c2b58 100644
--- a/README.md
+++ b/README.md
@@ -159,10 +159,14 @@ The agent opens a browser, looks up the repository, and prints its answer.
**5. Run the same agent on a cloud browser (no Chrome to install; works in Docker, CI, and serverless):**
-Set `BROWSER_USE_API_KEY` ([get a key](https://cloud.browser-use.com/new-api-key?utm_source=github&utm_medium=readme-path3)), then pass a cloud browser:
+Set `BROWSER_USE_API_KEY` ([get a key](https://cloud.browser-use.com/new-api-key?utm_source=github&utm_medium=readme-path3)), then uncomment the `browser=` line in `agent.py` and run it again:
```python
-agent = Agent(task="...", llm=llm, browser=Browser(use_cloud=True))
+ agent = Agent(
+ task="Find the number of stars of the browser-use repo",
+ llm=llm,
+ browser=Browser(use_cloud=True),
+ )
```
Cloud browsers cost $0.02 per browser-hour plus network traffic ([pricing](https://browser-use.com/pricing)), and add stealth, residential proxies, CAPTCHA solving, and a live view URL. Same code, no other changes.