Browser Use
Add web browsing capabilities to Browser Use
Integrate Browserbase with Browser Use
1
Get your API Key
Go over the Dashboard’s Settings tab:
Then copy and set the BROWSERBASE_API_KEY
and BROWSERBASE_PROJECT_ID
environment variables in your .env
file.
2
Install and create a virtual environment with UV
UV is a modern package manager for Python.
3
Install Browserbase and Browser Use
4
Override the default context provided from Browser Use
Browser Use provides a default context that you can override to use Browserbase.
Below is an example of a class that overrides the default context to use Browserbase.
main.py
5
Update your Browser Use code to use Browserbase
Below we’ve create a main()
function that uses Browserbase to navigate to a website, fill out the form, and submit it.
main.py
6
Run your script
Was this page helpful?