Skip to content

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

Document Rust quickstart

Magnus Müller03303510d8f9
diff --git a/README.md b/README.md
index 9a1cc503c..b33a7e2e8 100644
--- a/README.md
+++ b/README.md
@@ -58,6 +58,7 @@ uv init && uv add browser-use && uv sync
**Experimental Rust agent:** install Browser Use Terminal for `from browser_use.rust import Agent`:
```bash
curl -fsSL https://browser-use.com/terminal/install.sh | sh
+browser
```
**2. [Optional] Get your API key from [Browser Use Cloud](https://cloud.browser-use.com/new-api-key?utm_source=github&utm_medium=readme-quickstart-api-key):**
@@ -93,6 +94,24 @@ if __name__ == "__main__":
asyncio.run(main())
```
+**4. [Optional] Try the experimental Rust core:**
+```python
+from browser_use import ChatBrowserUse
+from browser_use.rust import Agent
+import asyncio
+
+async def main():
+ agent = Agent(
+ task="Find the number of stars of the browser-use repo",
+ llm=ChatBrowserUse(),
+ )
+ history = await agent.run()
+ print(history.final_result())
+
+if __name__ == "__main__":
+ asyncio.run(main())
+```
+
Check out the [library docs](https://docs.browser-use.com/open-source/introduction) and the [cloud docs](https://docs.cloud.browser-use.com?utm_source=github&utm_medium=readme-cloud-docs) for more!
<br/>