Skip to content

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

Fix simple example

Magnus Müllerecc1f40aa5e0
diff --git a/docs/quickstart_llm.mdx b/docs/quickstart_llm.mdx
index 99c4d57a7..b63d60b4a 100644
--- a/docs/quickstart_llm.mdx
+++ b/docs/quickstart_llm.mdx
@@ -4,11 +4,8 @@ description: ""
icon: "brain"
---
-<Info>
-1. Copy all content [from here](https://docs.browser-use.com/llms-full.txt) (~40k tokens)
-2. Paste it into your favorite coding agent (Cursor, Claude, ChatGPT, ...).
-</Info>
-**🔗 [Our docs for LLMs](https://docs.browser-use.com/llms-full.txt)**
+1. Copy all content [🔗 from here](https://docs.browser-use.com/llms-full.txt) (~40k tokens)
+2. Paste it into your favorite coding agent (Cursor, Claude, ChatGPT ...).
diff --git a/examples/simple.py b/examples/simple.py
index 9776d9c6a..ac9c3b1f4 100644
--- a/examples/simple.py
+++ b/examples/simple.py
@@ -1,44 +1,12 @@
import asyncio
-from browser_use import Agent, Browser, ChatOpenAI
-
-# NOTE: This is still experimental, and agents might conflict each other.
+from browser_use import Agent, ChatOpenAI
async def main():
- # Create 3 separate browser instances
- browsers = [
- Browser(
- user_data_dir=f'./temp-profile-{i}',
- headless=False,
- )
- for i in range(3)
- ]
-
- # Create 3 agents with different tasks
- agents = [
- Agent(
- task='Search for "browser automation" on Google',
- browser=browsers[0],
- llm=ChatOpenAI(model='gpt-4.1-mini'),
- ),
- Agent(
- task='Search for "AI agents" on DuckDuckGo',
- browser=browsers[1],
- llm=ChatOpenAI(model='gpt-4.1-mini'),
- ),
- Agent(
- task='Visit Wikipedia and search for "web scraping"',
- browser=browsers[2],
- llm=ChatOpenAI(model='gpt-4.1-mini'),
- ),
- ]
-
- # Run all agents in parallel
- tasks = [agent.run() for agent in agents]
- results = await asyncio.gather(*tasks, return_exceptions=True)
-
- print('🎉 All agents completed!')
+ task = 'Find the founders of browser-use'
+ agent = Agent(task=task, llm=ChatOpenAI(model='gpt-4.1-mini'))
+ await agent.run()
if __name__ == '__main__':