@browserbasehq/sdk package is the easiest way
to connect to and control headless browsers running on Browserbase.
Installation
Basic usage
Here’s an example using the Browserbase Node.js SDK to create and connect to a session with Playwright:Node.js
Session configuration
Pass configuration options when creating a session to customize browser behavior.All configuration options
Node.js
Proxy configuration
Configure proxies as a boolean or as an array for more control:Node.js
Common configuration examples
Node.js
Agents
Use the Browserbase Node.js SDK to create and manage Agents and runs. For a polling workflow, see Integrating Agents.Create an Agent and run
Node.js
Methods
Use the Stop a run REST endpoint to stop an in-progress run.
Examples
Quickstart examples using CAPTCHA solving, proxies, extensions, and more
npm package
View the package on NPM
SDK reference
View the complete SDK reference documentation