Skip to main content
To get started with Browser Use you need to install the package and create an .env file with your API key.
ChatBrowserUse offers the fastest and most cost-effective models, completing tasks 3-5x faster. New users get 5 free tasks. Get your API key here.

1. Installing Browser-Use

create environment
activate environment
install browser-use & chromium

2. Choose your favorite LLM

Create a .env file and add your API key.
We recommend using ChatBrowserUse which is optimized for browser automation tasks (highest accuracy + fastest speed + lowest token cost). Get your API key here — new users get 5 free tasks.
.env
On Windows, use echo. > .env
Then add your API key to the file.
See Supported Models for more.

3. Run your first agent

Custom browsers can be configured in one line. Check out browsers for more.

4. Going to Production

Sandboxes are the easiest way to run Browser-Use in production. We handle agents, browsers, persistence, auth, cookies, and LLMs. It is also the fastest way to deploy - the agent runs right next to the browser, so latency is minimal. To run in production with authentication, add @sandbox to your function:
See Browser Use Cloud for how to sync your cookies to the cloud.