Skip to content

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

Add main entry point to real-browser example

kalil0321845eafb0b4fa
diff --git a/docs/customize/browser/real-browser.mdx b/docs/customize/browser/real-browser.mdx
index f84426582..f14297054 100644
--- a/docs/customize/browser/real-browser.mdx
+++ b/docs/customize/browser/real-browser.mdx
@@ -25,6 +25,9 @@ agent = Agent(
)
async def main():
await agent.run()
+
+if __name__ == "__main__":
+ asyncio.run(main())
```
> **Note:** You need to fully close chrome before running this example. Also, Google blocks this approach currently so we use DuckDuckGo instead.