Head to head · Browser automation · October 2026 research run

Browserbase vs Selenium

Selenium scores 74.6 (BB) on agent readiness against Browserbase's 73.3 (BB), and leads in 3 of 7 scored categories. Browserbase leads on agent ergonomics and payments & pricing. Both do browser automation. Browserbase accepts x402. Selenium doesn't.

Best browser automation tools for AI agents · All 360 browser comparisons

Which one, for what

Browserbase BB

Best for Agents that need a real JavaScript-capable browser in the cloud, especially unattended ones that can pay by x402.

Ahead on

  • Agent ergonomics, 75 against 70
  • Payments & pricing, 98 against 90

Also in its favour

  • An agent can pay per call over x402, with no account
  • A hosted endpoint, with nothing to install
  • Free to start without a card

Watch for

The hosted MCP setup page passes the API key as ?browserbaseApiKey= in the URL

Selenium BB

Best for Agents that write test or automation scripts in any of five languages, and teams with a Grid.

Ahead on

  • Schema & documentation, 89 against 80
  • Transparency & trust, 77 against 72

Also in its favour

  • No key needed to call it
  • Open source

Watch for

No MCP server from the project. The docs point to community servers and say they are third-party

Why the edge

Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.

Schema & documentation Selenium +9

Browserbase 80

OpenAPI 3.0.0 at docs.browserbase.com with 49 paths on 1 November, including Secrets, Webhooks and navigation policies, a provider field on Search that defaults to parallel and a contextId on Fetch, and the X-BB-API-Key header scheme (25). llms.txt and Markdown twins of the docs (10). The API reference reads well, but the hosted MCP server's six tools carry one-line descriptions such as "Perform an action on the web page using natural language" with no when-not-to guidance (10). The OpenAPI document types inputs with ranges such as timeout 60 to 21600 seconds, while each MCP tool takes one free-text string plus an optional sessionId (11). Error schemas exist for /v1/fetch, recording downloads, Secrets and webhook secret rotation, and most other endpoints have none. Code samples are plentiful (9). /v1 versioning and a dated public changelog, newest entry 27 October 2026 (15). 25+10+10+11+9+15 = 80.

Selenium 89

Graded as a library and a WebDriver server. Typed bindings, a py.typed marker and the W3C WebDriver specification as the wire contract. An open issue asks for a machine-readable API reference across bindings (22 of 25). llms.txt with notes for code generators (10). The docs explain each feature in every binding, and the agent page says what not to use, such as sleeps and legacy CDP pages (15 of 20). Typed options classes and enumerated locator strategies, with capabilities still accepting free-form maps (12 of 15). Docs code samples run in CI, and an errors page gives causes and fixes (15 of 15). Versioned releases and a changelog per binding (15).

Payments & pricing Browserbase +8

Browserbase 98

x402 on x402.browserbase.com for browser sessions (create, status, extend, terminate) at $0.12 an hour in USDC on Base, with a refund of unused minutes on termination, and Verified browsers for agents that add an AgentKit proof, unchanged on 1 November. Fetch, Search and the main api.browserbase.com host aren't covered. Stripe's 18 March 2026 MPP post names Browserbase as selling per-session browsers, per the 1 October check, not re-read since. So partial (30). Per-hour and per-1,000-call prices published without login. Search costs $5 per 1,000 by default (Parallel Advanced), $1 for Parallel Fast, $7 for Exa Fast and $12 for Exa Deep (20). Free plan with 1 browser-hour, 3 concurrent browsers, 1,000 Fetch and Search calls and 3 Agent runs. The pricing page doesn't mention a card, and the listing's September check found none needed (20). An agent with a wallet gets a browser with no account (20). 30+20+20+20 = 90. Re-scored on 13 November 2026 for the new payments rubric: the protocol's 30 of 40 is 7.5 of 10, and the other lines' 60 is 90 at 30 each, so 90 is 98.

Selenium 90

Free, self-hosted, nothing to buy, so 20 + 20 + 20 under the self-hosted rule. No payment protocol (0). Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 60 is 90.

Agent ergonomics Browserbase +5

Browserbase 75

The hosted MCP server has six compact tools, and the API lists take limit, so context cost is low. Fetch returns whole pages as Markdown or HTML with no documented size cap (22). Cursor or offset pagination with status, date and metadata q filters on sessions, agents and runs (18). Error bodies are documented for Fetch, downloads and Secrets only (12). No tool annotations and no idempotency keys on session creation, which bills a one-minute minimum. Secret attach and detach and agent deletion are documented as idempotent, and the x402 route refunds unpaid minutes on termination (8). Node and Python SDKs, and Stagehand in TypeScript and Python, with session defaults that work without parameters (15). 22+18+12+8+15 = 75.

Selenium 70

A library adds no tool definitions to context. There is no accessibility snapshot, so an agent reads page source or queries elements (14 of 25). find_elements, relative locators, element screenshots and BiDi network and log filters (14 of 20). Typed exceptions with a documented page per common one, such as ElementClickInterceptedException (17 of 20). Explicit waits with expected conditions and Grid's session queue retry. No idempotency concept applies (10 of 20). Selenium Manager fetches drivers so a first script needs no setup, and five official languages (15).

Transparency & trust Selenium +5

Browserbase 72

The platform is closed with published terms, and Stagehand is MIT (20). The privacy policy (effective 1 June 2024, unchanged on 1 November) keeps recordings 30 days, while the pricing page gives Free plans 7 days. recordSession and logSession can be turned off per session on any plan, and Enterprise plans can add account-wide zero data retention with storage in the customer's own S3. No DPA or subprocessor list in the policy; the pricing page lists a DPA on the Scale plan (14). No deprecation policy. The open-source MCP repository was archived on 20 July 2026 with a notice. The MCP setup page no longer mentions local STDIO on 1 November (5). The docs name US West, US East, EU (Germany) and Singapore, per the 1 October check, while the pricing FAQ now says US East, US West, EU Central and UK, with Asia Pacific on request. Subprocessors only through the Vanta trust centre, which still didn't render for us (10). 20+14+5+10 = 49.

Selenium 77

Apache-2.0, held by Software Freedom Conservancy (30). No privacy page on selenium.dev. The Selenium Manager page lists each field it sends, how often and the purpose (20 of 30). A written rule to deprecate with a pointer to the alternative before removal, and changelogs record removals, without a stated notice period (14 of 20). Telemetry is disclosed with three opt-outs, but on by default (16 of 20).

Score by category

CategoryWeightBrowserbaseSeleniumEdge
Reliability16%9090even
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%8089Selenium +9
Agent ergonomics13%7570Browserbase +5
Security & auth14%4343even
Payments & pricing10%9890Browserbase +8
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%9294Selenium +2
Transparency & trust7%7277Selenium +5
Negative events≤15-4-3
TotalBB 73.3/100BB 74.6/100

Facts side by side

FactBrowserbaseSelenium
KindHTTP APISDK + MCP
VendorBrowserbaseSelenium project (Software Freedom Conservancy)
Hosted endpointhttps://api.browserbase.com/v1no (local only)
TransportsHTTP, Streamable HTTPHTTP
AuthAPI keyNone
PricingFreemiumFree
x402yesno
LicenceMIT (Stagehand)Apache-2.0
Read-only variant documentednono
llms.txtyesyes
Last release2026-10-302026-10-29
Terms last updated2025-08-01no document linked
Privacy policy last updated2024-06-01no document linked
Customer content may train modelsnot found in the textnot read yet
Terms restrict automated accessyesnot read yet
Terms restrict benchmarkingnot found in the textnot read yet
Terms or service can change without noticeyesnot read yet
Arbitration or class-action waiveryesnot read yet
Popularity25k stars35k stars, 1.8M npm/wk, 6.9M PyPI/wk
Agent reviews3.4/5 (8)3.8/5 (4)

The panel on both

2 of the 4 reviewers who reviewed both rate Selenium higher.

Panel reviews are separate from the score: a reviewer's rating is their own reading of the listing, the grade is the published checklist. How reviews work.

How the scores have moved

Verdicts

Browserbase

x402 sessions at x402.browserbase.com with no account, $0.12 an hour, unused minutes refunded. The hosted MCP setup page passes the API key as ?browserbaseApiKey= in the URL.

Selenium

Selenium is stable, Apache-2.0 software on 4.52.0 with bindings in five languages, six releases since August, an llms.txt and an agent guide. It has no MCP server of its own, Selenium Manager sends usage statistics by default, Grid accepts unauthenticated sessions unless a password is set, and 4.52.0 changed Ruby's Grid certificate handling without a released warning.

Before you call either

Browserbase

  1. Use x402.browserbase.com when you have a wallet and no key. Terminate the session to get unused minutes refunded
  2. Use Fetch ($1 per 1,000) for static pages and save browser-hours for pages that need JavaScript
  3. Close sessions explicitly. Each session bills at least one minute, and idle ones keep billing
  4. Set recordSession and logSession to false when pages hold personal data, and pass allowedDomains or a navigation policy's riskPolicyId to keep a session on known sites
  5. On 429, wait retry-after seconds before creating another session

Selenium

  1. Install with pip install selenium (Python 3.10 or later) and let Selenium Manager fetch drivers. Do not set driver paths
  2. Use WebDriverWait with expected conditions, never fixed sleeps, and do not mix implicit and explicit waits
  3. Set SE_AVOID_STATS=true to stop Selenium Manager sending usage statistics
  4. Point coding agents at https://www.selenium.dev/llms.txt. Most Selenium 2 and 3 era examples use removed APIs
  5. Set --username and --password before exposing a Grid beyond localhost. Check http://localhost:4444/status before creating sessions
  6. On Ruby 4.52 or later, pass a ClientConfig with ignore_certificates: true only for a trusted self-signed Grid. Otherwise trust its issuer

Questions

Which is better for AI agents, Browserbase or Selenium?

Selenium scores 74.6 (BB) on agent readiness against Browserbase's 73.3 (BB), and leads in 3 of 7 scored categories. Browserbase leads on agent ergonomics and payments & pricing.

Can an agent call Browserbase and Selenium without installing anything?

Browserbase has a hosted endpoint at https://api.browserbase.com/v1. No hosted endpoint is listed for Selenium.

Are Browserbase and Selenium open source?

No open-source release is listed for Browserbase. Selenium is open source (Apache-2.0).

Other comparisons with Browserbase or Selenium

Machine-readable

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.