This guide walks you through setting up your own Browser Use Cloud SDK.

Building your own client (OpenAPI)

This approach is recommended only if you need to run simple tasks and don’t require fine-grained control.
The best way to build your own client is to use our OpenAPI specification to generate a type-safe client library.

Python

Use openapi-python-client to generate a modern Python client:
# Install the generator
pipx install openapi-python-client --include-deps

# Generate the client
openapi-python-client generate --url http://api.browser-use.com/openapi.json
This will create a Python package with full type hints, modern dataclasses, and async support.

TypeScript/JavaScript

For TypeScript projects, use openapi-typescript to generate type definitions:
# Install the generator
npm install -D openapi-typescript

# Generate the types
npx openapi-typescript http://api.browser-use.com/openapi.json -o browser-use-api.ts
This will create TypeScript definitions you can use with your preferred HTTP client.
Need help? Contact our support team at support@browser-use.com or join our Discord community