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
touch .env
On Windows, use echo. > .env
Then add your API key to the file.
# add your key to .env fileBROWSER_USE_API_KEY=# Get your API key at https://cloud.browser-use.com/new-api-key - new users get 5 free tasks
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: