V Knowledgebase

Interactive planning tool

Plan a cloud browser session.

A session is one isolated browser instance running in the cloud. Choose what your task needs, then generate a starter snippet to create a session locally. This page never asks for your API key and never starts a session.

Step 1 · Choose the lightest option

What does the page need?

Session considerations

Browser selected: prepare a session only when the task needs interaction, JavaScript rendering, or an authorized login.

Step 2 · Local starter

Your local starter

The API key stays in your local environment. No project ID is needed: the key resolves the project.

This starter creates a session and connects Playwright over CDP. Install the required packages locally only after reviewing your project setup.


              

The sample does not create a session until you run it locally.

Step 3 · Review

Your session checklist

    Before a real run

    • Keep BROWSERBASE_API_KEY in a local secret configuration; never paste it into chat or commit it.
    • Check your plan's concurrent session limits; session creation is rate limited.
    • Use a specific readiness selector and prefer domcontentloaded over fixed sleeps.
    • Use browser automation only on sites and accounts you are authorized to access.

    A session is not always necessary

    Choose Search to find sources, Fetch to read accessible page content, and a browser session when interaction or JavaScript rendering is required. Fetch and Search do not create browser sessions.

    Open Browserbase onboarding