Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

browserbase-sdk

Skill by r2hu1

Browserbase SDK guides an assistant through cloud headless Chromium sessions for TypeScript and Node. It covers the REST client, Playwright and Puppeteer connections, and Stagehand AI actions.

  • Score 56
  • 23 stars
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install browserbase-sdk

Built from the published package, never by AI.

git clone --depth 1 https://github.com/r2hu1/openbots /tmp/openbots && mkdir -p ~/.claude/skills && cp -r /tmp/openbots/.agents/skills/browserbase-sdk ~/.claude/skills/browserbase-sdk

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install browserbase-sdk in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill gives an AI assistant working knowledge of the Browserbase SDK. Browserbase runs headless Chromium in isolated VMs and exposes a CDP WebSocket per session. The @browserbasehq/sdk package is a REST client for sessions, contexts, extensions, and projects, and it does not drive the browser itself. Code drives the browser through Playwright, Puppeteer, Selenium, or Stagehand.

The skill lists quickstarts for Playwright, Puppeteer, Stagehand, and raw HTTP, plus session request and response shapes. It also covers the default-context pattern, lifecycle calls, and common pitfalls. It is aimed at developers writing TypeScript or Node code that connects to Browserbase.

Written from the project's SKILL.md and checked against it.

What it can do

  • Session APICreate, list, retrieve, update, and debug sessions through bb.sessions calls.
  • Playwright and Puppeteer connectionsConnect with chromium.connectOverCDP or puppeteer.connect using the session connectUrl.
  • Stagehand AI primitivesUse act, extract, observe, and agent on top of Playwright through Stagehand.
  • ContextsPersist auth state across sessions with bb.contexts and browserSettings.context.
  • ProxiesConfigure Browserbase-managed, external, or no proxies, with domain rules.
  • Stealth and captchaSet advancedStealth, verified browsers, captcha solving, and ad blocking options.
  • Downloads and uploadsHandle file downloads, uploads, and file chooser flows through the session API.
  • ObservabilityUse live debugger URLs, session recordings, and logs for review.
  • ExtensionsAttach custom Chrome extensions uploaded as a zip via bb.extensions.create.

What you need

  • Browserbase API key (BROWSERBASE_API_KEY)
  • Browserbase project ID (BROWSERBASE_PROJECT_ID)
  • Node.js with TypeScript
  • Scale plan for verified browsers and advanced stealth

Try asking

  • Create a Browserbase session and take a screenshot of example.com
  • Write a Stagehand script that extracts story titles from Hacker News
  • Set up a Browserbase context to keep my login between sessions

Good to know

  • verified and advancedStealth are available on the Scale plan only.
  • recordSession and logSession cannot be re-enabled mid-session.
  • Free-tier concurrency is 3 sessions and the create endpoint is rate-limited.
  • Selenium uses seleniumRemoteUrl, not connectUrl.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .agents/skills/browserbase-sdk/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to browserbase-sdk

All alternatives →

Compare with antigravity-workflows, e2e-testing-patterns or upgrade-browser

browserbase-sdk: common questions

Does the Browserbase SDK control the browser?

No. The @browserbasehq/sdk package is a REST client for sessions, contexts, extensions, and projects. Browser control happens through connectUrl or seleniumRemoteUrl.

Why should I use browser.contexts()[0] instead of newContext()?

Browserbase pre-creates the default context. Only that context honors browserSettings.context, proxies, and fingerprint, while newContext() creates a second context that ignores them.

Do Browserbase sessions stop when my script exits?

No. Sessions persist beyond script exit unless you release them with REQUEST_RELEASE or let the timeout expire.

How do I install browserbase-sdk?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is browserbase-sdk free?

The code is public, but no licence file was found, so check the repository before commercial use.

Is browserbase-sdk safe to use?

It scores 56 of 100. Grades: maintenance A, licence F, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to browserbase-sdk?

Similar skills: antigravity-workflows, e2e-testing-patterns, upgrade-browser, browser-automation.

browserbase-sdk Install

Add to stack

Loading.