Skip to content

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

Quickstart

Magnus Müllerc093b22d71e0
diff --git a/docs/quickstart.mdx b/docs/quickstart.mdx
index b5db8b7fa..6ce8139ce 100644
--- a/docs/quickstart.mdx
+++ b/docs/quickstart.mdx
@@ -51,12 +51,12 @@ import asyncio
load_dotenv()
-llm = ChatOpenAI(model="gpt-4.1-mini")
-task="Find the number 1 post on Show HN"
-
async def main():
- agent = Agent(task, llm)
+ llm = ChatOpenAI(model="gpt-4.1-mini")
+ task = "Find the number 1 post on Show HN"
+ agent = Agent(task=task, llm=llm)
await agent.run()
-asyncio.run(main())
+if __name__ == "__main__":
+ asyncio.run(main())
```