mirror of
https://github.com/browser-use/browser-use
synced 2026-05-13 17:56:35 +02:00
**Description:**
This PR updates the Sandbox Quickstart example to make it fully runnable
when
copied into a standalone script.
**Changes:**
- Added `import asyncio`
- Wrapped the async sandbox entrypoint in:
```python
if __name__ == "__main__":
asyncio.run(production_task())
```
- Prevents the “coroutine was never awaited” runtime error.
**Issue:**
No related issue (minor documentation fix).
**Dependencies:**
None.
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Fixed the async Sandbox Quickstart example so it runs as a standalone
script without errors. Added import asyncio and a __main__ guard that
calls asyncio.run(production_task()), preventing the “coroutine was
never awaited” runtime error.
<sup>Written for commit 7fd4a38a2b.
Summary will update automatically on new commits.</sup>
<!-- End of auto-generated description by cubic. -->
Docs
The official documentation for Browser Use. The docs are published to Browser Use Docs.
Development
Install the Mintlify CLI to preview the documentation changes locally. To install, use the following command
npm i -g mintlify
Run the following command at the root of your documentation (where mint.json is)
mintlify dev