Skip to main content

Prerequisites

  • Python 3.10 or higher
  • A Browserbase account (for browser automation)

Step 1: Install

Step 2: Sign up and create a project

Copy the project ID from the output - you’ll need it in the next step.

Step 3: Run your first automation

Create a file demo.py:
Run it:
That’s it! You’ve run your first browser automation.

What you need

Before running, make sure you have:
  1. Project ID: Get it from sim projects list or when you create a project
  2. Model API key: Set OPENAI_API_KEY environment variable (for AI-powered actions)

Optional: Using environment variables

You can also set your project ID in a .env file:
Then simplify your code:

Next steps