browserbase-sessions
Create and manage persistent Browserbase cloud browser sessions with authentication persistence. Use when the user needs to automate browsers, maintain logged-in sessions across interactions, scrape authenticated pages, or manage cloud browser instances. Handles session creation, context-based auth persistence, keep-alive reconnection, captcha solving, session recording, screenshots, and session cleanup.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/jamesfincher/browserbaseBrowserbase Sessions Skill
Manage persistent cloud browser sessions via Browserbase. This skill creates browser sessions that preserve authentication (cookies, local storage) across interactions, automatically solve CAPTCHAs, and record sessions for later review.
First-Time Setup
Step 1 — Get your Browserbase credentials
- Sign up at browserbase.com if you haven't already.
- Go to Settings → API Keys and copy your API key (starts with
bb_live_). - Go to Settings → Project and copy your Project ID (a UUID).
Step 2 — Install dependencies
cd {baseDir}/scripts && pip install -r requirements.txt
playwright install chromium
Or with uv:
cd {baseDir}/scripts && uv pip install -r requirements.txt
uv run playwright install chromium
Step 3 — Set environment variables
export BROWSERBASE_API_KEY="bb_live_your_key_here"
export BROWSERBASE_PROJECT_ID="your-project-uuid-here"
Or configure via OpenClaw's skills.entries.browserbase-sessions.env in ~/.openclaw/openclaw.json.
Step 4 — Run the setup test
This validates everything end-to-end (credentials, SDK, Playwright, API connection, and a live smoke test):
python3 {baseDir}/scripts/browserbase_manager.py setup
You should see "status": "success" with all steps passing. If any step fails, the error message tells you exactly what to fix.
Defaults
Every session is created with these defaults to support research workflows:
- Captcha solving: ON — Browserbase automatically solves CAPTCHAs so login flows and protected pages work without manual intervention. Disable with
--no-solve-captchas. - Session recording: ON — Every session is recorded as a video you can download later for review or sharing. Disable with
--no-record. - Auth persistence — Use contexts with
--persistto stay logged in across sessions.
Available Commands
All commands are run via the manager script:
python3 {baseDir}/scripts/browserbase_manager.py <command> [options]
Setup & Validation
Run the full setup test:
python3 {baseDir}/scripts/browserbase_manager.py setup
Context Management (for authentication persistence)
Create a named context to store login state:
python3 {baseDir}/scripts/browserbase_manager.py create-context --name github
List all saved contexts:
python3 {baseDir}/scripts/browserbase_manager.py list-contexts
Delete a context (by name or ID):
python3 {baseDir}/scripts/browserbase_manager.py delete-context --context-id github
Session Lifecycle
Create a new session (captcha solving and recording enabled by default):
# Basic session
python3 {baseDir}/scripts/browserbase_manager.py create-session
# Session with saved context (persist=true saves cookies on close)
python3 {baseDir}/scripts/browserbase_manager.py create-session --context-id github --persist
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-jamesfincher-browserbase": {
"enabled": true,
"auto_update": true
}
}
}