Skip to main content
Every browser comes with: anti-fingerprinting, automatic CAPTCHA solving, cookie/ad blocking, Cloudflare bypass, and residential proxies. No configuration needed.

1. Install & configure

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 import AsyncBrowserUse

async def main():
    client = AsyncBrowserUse()
    result = await client.run("What is the top post on Hacker News right now?")
    print(result.output)

asyncio.run(main())

3. Get structured data

Define a schema and get validated, typed data back.
import asyncio
from browser_use_sdk import AsyncBrowserUse
from pydantic import BaseModel

class Post(BaseModel):
    title: str
    url: str
    points: int

class PostList(BaseModel):
    items: list[Post]

async def main():
    client = AsyncBrowserUse()
    result = await client.run(
        "Get the top 3 posts from Hacker News",
        output_schema=PostList,
    )
    for post in result.output.items:
        print(f"{post.title} ({post.points} pts)")

asyncio.run(main())
That’s it. See Tasks for streaming, parameters, and more, or browse Examples for copy-paste recipes.