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.
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-sdkRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/r2hu1/openbots /tmp/openbots && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/openbots/.agents/skills/browserbase-sdk ~/.gemini/antigravity-cli/skills/browserbase-sdkAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
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
ANo 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 →Antigravity Workflows guides an assistant through multi-skill workflows for shipping a SaaS MVP, auditing web app security, building AI agents, running browser QA, and designing a domain model. It is for users who want several skills combined with verified checkpoints.
Guides building end-to-end test suites with Playwright and Cypress. It is for developers who write E2E tests, debug flaky tests, or set testing standards.
Upgrades Chrome or Firefox versions in the Flutter Web Engine and Framework tests. It verifies the version, updates config files, syncs CI builder JSON and runs local tests before the CIPD upload.
Builds reliable browser checks for real web workflows using semantic locators, bounded waits, isolated test data and explicit outcome checks. It is for developers and testers writing or debugging browser tests.
Diagnoses memory leaks in the Qwen Code CLI using heap snapshots and the chrome-devtools CLI. Built for developers investigating high memory use, unbounded growth, or object retention.
Guides an assistant through using Claude in Chrome, a browser extension whose tools act in the person's real Chrome with their own sign-ins. It is for users who want the assistant to work in their browser safely.
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.
