What Is Browserbase? Headless Browsers for AI Agents
Browserbase is a cloud platform that runs headless browsers for AI agents and automation scripts. You create a session through its API and connect Playwright, Puppeteer or Selenium to it. Then you drive a real Chrome instance that runs on Browserbase's servers. Agent builders use it because running many browsers yourself is painful. Chrome is heavy, and sites push back with CAPTCHAs. If you are building an agent that logs into websites, this guide shows what a Browserbase session keeps between runs and where Stagehand, the company's open-source SDK, fits. Pricing is at the end.
What is Browserbase, in one sentence?
Browserbase is a hosted headless browser service that gives AI agents remote Chrome sessions over the Chrome DevTools Protocol, with recordings and saved login state.
The Browserbase docs describe it as "the complete platform to build and deploy agents that browse and interact with the web like humans." Paul Klein IV founded the company and is its CEO, per the company's own explainer. In June 2025, Browserbase announced a $40M Series B led by Notable Capital. The homepage claims "35m+ browser sessions a month across 10,000 customers," a figure we could not check independently.
The product line has grown past browsers. The homepage now also sells search and fetch APIs plus serverless functions, which this post does not cover.
How does Browserbase differ from running Playwright yourself?
You can run Playwright with headless Chrome on your own server. Browserbase hosts the browsers and adds session replay and saved logins on top.
| Browserbase | Self-hosted Playwright or Puppeteer | |
|---|---|---|
| Where Chrome runs | Browserbase servers in four regions | Your machine or server |
| Scaling | 25 (Developer) or 100 (Startup) concurrent sessions, 250+ on Scale | Limited by your hardware |
| Debugging | Live view and video replay of every session | Your own logs and screenshots |
| Bot detection | CAPTCHA solving from Developer, advanced stealth on Scale | You build it |
| Saved logins | Contexts persist cookies and local storage | You manage user data directories |
| Cost | From $20 a month plus usage | Server costs and your time |
Sources: the Browserbase pricing page and regions guide. Replay and Contexts details are in the session replay and Contexts docs.
The founder's first blog post, from December 2023, explains the motivation. Puppeteer pulls in 282 MB of dependencies on Linux. That is more than AWS Lambda's 250 MB limit for a function package.
How does a Browserbase session work?
You create a session with the API or SDK. It returns a connect URL. The session docs show the call for each framework. In Playwright, you pass that URL to chromium.connectOverCDP. Puppeteer takes it as a browserWSEndpoint, and Selenium uses a separate remote URL. You have five minutes to connect after creating a session.
From there, your code controls the browser as usual. Three features matter once sessions run:
- Live view opens an interactive window into a running session. A person can watch or take control, for example to finish a login, per the live view docs.
- Session replay records every session as video by default. The replay docs say recordings are kept for 30 days.
- Proxies route traffic through managed residential IPs, with targeting by country or city. The proxy docs list this from the Developer plan up.
Sessions run in us-west-2 by default. You can also choose a second US region or one in Europe or Southeast Asia.
What state persists between Browserbase sessions?
By default, each session is a fresh browser. Two features keep state.
Contexts save the browser profile. The Contexts docs say a Context "persists the contents of the Chromium user data directory." That covers cookies, local storage and IndexedDB, so an agent can log in once and stay logged in. You must set persist to true for a session to save changes back. The docs warn against running several sessions on the same Context at once. Contexts are encrypted at rest.
Keep-alive keeps a session running after your script disconnects. The long-running sessions guide says it is "only available on paid plans." The maximum session length is six hours. Free sessions stop at 15 minutes. Neither feature records what the agent learned about the site.
What is Stagehand?
Stagehand is Browserbase's MIT-licensed SDK for browser agents. It ships for TypeScript and Python, and also Go. It had 25.9k GitHub stars on October 28, 2026. The current major version is 4, and npm listed 4.3.0 as latest.
Stagehand mixes plain code with natural-language steps. The v4 docs describe three primitives:
- act performs an action described in plain English, such as clicking a sign-in button
- extract pulls structured data that matches a schema
- observe lists the actions available on the current page
Version 3 also had an agent primitive for multi-step workflows. The v4 docs no longer show it and present Stagehand as a toolkit you call from your own agent. Stagehand can also cache repeated actions on the server. Per the README, server-side caching works only with a hosted browser.
For MCP hosts, Browserbase runs a hosted MCP server at mcp.browserbase.com/mcp. Its tools start and end sessions and call the Stagehand primitives. The GitHub repository is archived, so use the hosted endpoint.
What does Browserbase cost?
The pricing page listed these plans on October 28, 2026:
| Plan | Monthly price | Browser hours | Concurrent sessions | Extra hours |
|---|---|---|---|---|
| Free | $0 | 1 | 3 | None, 15-minute session cap |
| Developer | $20 | 100 | 25 | $0.12 per hour |
| Startup | $99 | 500 | 100 | $0.10 per hour |
| Scale | Custom | Usage-based | 250+ | Custom |
Proxy data is billed separately, at $12 per GB on Developer and $10 per GB on Startup. CAPTCHA solving starts on the Developer plan. Advanced stealth and verified browser fingerprints are Scale-only.
What should you check in Browserbase's claims?
The usage numbers on the homepage are Browserbase's own. We found no independent benchmark of its stealth or CAPTCHA success rates, and those vary by site. Test your target sites on the free tier before you commit.
Read the terms of the sites your agent visits. Stealth and residential proxies hide automation from a site. They do not change what its terms permit. Also note that session recordings capture everything on screen, including personal data, for 30 days by default.
The bottom line
Use Browserbase when your agent needs many browsers at once or logins that persist between runs. Start on the free plan with plain Playwright over CDP, then add Contexts for sites that need a login. Adopt Stagehand only for steps that break with fixed selectors, and keep the rest as regular code.
How do browser agents remember how a site works?
With a Context the agent stays signed in, yet each session starts with no knowledge of the site's layout. So it hunts again for the report under the second menu and retries the date field until a format sticks. Stagehand's cache replays identical actions. It stores no reason for a step, and other agents cannot read it.
memU stores that kind of knowledge as readable Markdown. A scheduled background task slices new session logs into jobs. The agent decides what is worth keeping and writes it as memory or skill Markdown, then commits it. A repeated workflow, such as exporting a monthly report, can become a reusable skill.
memU's MemoryService makes no LLM or chat calls. It stores and embeds what the agent wrote, then retrieves it. A standing instruction in CLAUDE.md or AGENTS.md tells the agent to retrieve before answering. All hosts share one backend, so a site note written during a Claude Code session is available in Codex.
To try the hosted version, which is free and syncs across devices, get an API key from memu.so and send your agent one message:
Read https://memu.pro/SKILL.md, follow its instructions to install and configure memU
memU is open source under Apache-2.0 on GitHub.
FAQ
Is Browserbase free?
There is a free plan with one browser hour a month. Sessions on it stop after 15 minutes. Paid plans start at $20 a month for 100 browser hours.
Does Browserbase work with Playwright?
Yes. You create a session and connect Playwright to it over the Chrome DevTools Protocol with connectOverCDP. Puppeteer and Selenium are also supported.
How do I keep a login across Browserbase sessions?
Use a Context and set persist to true. The Context saves the browser profile, so the next session starts signed in.
What is the difference between Browserbase and Stagehand?
Browserbase is the hosted browser infrastructure. Stagehand is its open-source SDK for controlling a browser with natural-language steps.
How long can a Browserbase session run?
Up to six hours on paid plans. Sessions on the free plan stop after 15 minutes.