Skip to content

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

Update quickstart.mdx

Krishna7fd4a38a2b7c
diff --git a/docs/quickstart.mdx b/docs/quickstart.mdx
index 9d8e59a3b..560663921 100644
--- a/docs/quickstart.mdx
+++ b/docs/quickstart.mdx
@@ -143,15 +143,21 @@ Sandboxes are the **easiest way to run Browser-Use in production**. We handle ag
To run in production with authentication, just add `@sandbox` to your function:
```python
+import asyncio
from browser_use import Browser, sandbox, ChatBrowserUse
from browser_use.agent.service import Agent
@sandbox(cloud_profile_id='your-profile-id')
async def production_task(browser: Browser):
- agent = Agent(task="Your authenticated task", browser=browser, llm=ChatBrowserUse())
+ agent = Agent(
+ task="Your authenticated task",
+ browser=browser,
+ llm=ChatBrowserUse(),
+ )
await agent.run()
-await production_task()
+if __name__ == "__main__":
+ asyncio.run(production_task())
```
See [Going to Production](/production) for how to sync your cookies to the cloud.