Skip to main content

1. Install

pip install browser-use-sdk
Get a key at cloud.browser-use.com/settings, then:
export BROWSER_USE_API_KEY=your_key

2. Run your first task

import asyncio
from browser_use_sdk.v3 import AsyncBrowserUse

async def main():
    client = AsyncBrowserUse()
    result = await client.run("Find the top 3 trending repos on GitHub today")
    print(result.output)

asyncio.run(main())
Want a full working app? See the Chat UI example — a complete Next.js app with live browser preview, streaming messages, authentication, and session management.