Local workflow builder
Browserbase Studio
Sketch a repeatable browser task, arrange its steps, and generate a local Playwright starter. This studio is a planning tool: it does not connect to Browserbase, launch a browser, or send your inputs anywhere.
Project setup
Describe your automation
The address is only included in the generated code when you enter one. The generated starter otherwise reads TARGET_URL from your local environment.
Reusable AI agent · Browserbase API
Configure an agent starter
Define the agent name, system prompt, and optional JSON result schema. This tool generates local Node.js or Python code for POST /v1/agents; it does not send requests or create an agent from this page.
Code preview is generated locally. No API request has been sent.
Install the Node.js SDK in your project
npm install @browserbasehq/sdk
Run this from your project folder. This static page cannot run npm or install packages for you. Keep BROWSERBASE_API_KEY in server-side environment configuration. Creating an agent only stores reusable instructions and an optional result schema; you still need an agent run and an authorized browser workflow to inspect a page. This website does not analyze URLs by itself.
Workflow designer
Build the browser steps
Use CSS selectors for deterministic actions. Review every generated selector and value before running the script.
Agent run messages
Generate a Ruby message reader
Prepare a local Ruby script for reading messages from a Browserbase Agent run. The API key stays in BROWSERBASE_API_KEY and is never entered into this page.
The script is generated locally and has not been run.
PHP · Browserbase API
Generate a PHP message reader
Prepare a cURL-based PHP script for reading messages from an Agent run. The script reads BROWSERBASE_API_KEY from the environment and does not run in this page.
The PHP script is generated locally and has not been run.
Credentials and safety
Keep your key on your device
Configure BROWSERBASE_API_KEY in your local environment or project secret manager. Never paste it into this page, chat, a frontend bundle, or source control. No project ID is required.
Use only authorized pages
The generated starter does not bypass access controls. Protected sites may require paid Browserbase capabilities, and some sites may prohibit automation.
Use a persistent context in your website
A website connection needs a server
This site is static HTML, so it cannot securely create Browserbase sessions by itself. To use the saved context in your own website, add a server-side endpoint in your existing application. That endpoint should authenticate the visitor, create the session with the same context ID and persist: true, and run the browser task on the server.
- Store
BROWSERBASE_API_KEYas a secret on your server, never in page JavaScript. - Have your website call your own authenticated server endpoint; validate who may start a session.
- Keep the session connection URL and browser control on the server. Do not return them to public visitors.
- Reuse the intended context ID with persistence enabled so its browser state can carry across sessions, subject to Browserbase account and context settings.
The code preview above is a local Node.js starter, not a live connection from this webpage. A static-site host alone cannot run the required server endpoint; deploy this integration in a backend you control.