Prerequisites
- OpenAI API key with Computer Use Agent access
- Browserbase account and API key
- Python 3.8+
Basic integration
This basic setup will get you up and running with a CUA agent using Browserbase as the underlying browser automation platform.1
Clone the repository
2
Install the required packages
3
Set the environment variables
4
Run the agent
Update the prompt in your cli to change the behavior of the agent
Customizing the CUA agent
You can customize the CUA agent by updating the flags in the CLI:--input: The initial input to the agent (optional: the CLI will prompt you for input if not provided)--debug: Enable debug mode.--show: Show images (screenshots) during the execution.--start-url: Start the browsing session with a specific URL (only for browser environments). By default, the CLI will start the browsing session withhttps://bing.com.
Related resources
Browserbase documentation
Explore the full Browserbase documentation
OpenAI API documentation
Learn more about OpenAI’s APIs
Example projects on GitHub
Find the sample project for this integration