The OpenAI SDK defines the tools and runs the model loop.
Browser Use supplies the remote browser.
The library driver also supplies browser actions.
Browser Use library driver
Install the tested Browser Use release with the OpenAI tools extra:httpx2 for custom HTTP clients.
Use OpenAI’s DefaultAsyncHttpxClient when configuring a custom client.
The following example uses a remote browser:
BrowserSession.
The caller keeps responsibility for that borrowed session.
Use BrowserUse() for a local browser after installing Chromium with uvx browser-use install.
Remote browsers with Playwright
This path uses the Cloud SDK without the open-source Browser Use agent. You do not need local Chromium. Create a separate environment:browser_use_driver.pybrowser_use_responses.py
Library driver actions
The default tools cover navigation, tabs, page reads, element search, screenshots, zoom, clicks, typing, keys, scrolling, selection, and waits. The SDK exposeslist_tabs from the driver’s state method.
Enable additional methods with additional_members:
run_script for explicitly approved page JavaScript.
A script timeout stops waiting; it does not guarantee that page execution stops.
This version does not implement scoped reads, console/network diagnostics, uploads, or downloads.
It does not include Bash.
The remote browser filesystem differs from the application filesystem.