Skip to content

Add Serpbit as a Stealth Bench browser provider - #90

Open
holder-quarry wants to merge 2 commits into
browser-use:mainfrom
holder-quarry:serpbit-provider
Open

holder-quarry wants to merge 2 commits into
browser-use:mainfrom
holder-quarry:serpbit-provider

Conversation

@holder-quarry

@holder-quarry holder-quarry commented Nov 30, 2026 •

Copy link
Copy Markdown

This PR adds Serpbit as a provider:

run_eval.py --benchmark Stealth_Bench_V1 --browser serpbit

It works the same way as Rebrowser and Browserless:

  • one module in browsers/;
  • registry entries in browsers/__init__.py;
  • SERPBIT_API_KEY in .env.example;
  • serpbit in the README's list of providers.

Session lifecycle

Serpbit opens a session (hosted headful Chrome, with a residential exit per session) when the client connects to wss://connect.serpbit.com/?key=..., and ends it when the client disconnects. There is no create or release call. So:

  • connect() only builds the URL from SERPBIT_API_KEY. SERPBIT_COUNTRY is optional and defaults to us.
  • disconnect() does nothing.

The session ends when run_task calls browser.stop().

Testing

  • On top of the current main: the provider is registered, connect() returns the URL, and browser-use 0.11.5 connects and loads a page.
  • On 30 Nov we ran the full Stealth Bench V1 (80 tasks, bu-2-0) through this provider several times. We can share the run data.

One note on the judge: gemini-2.5-flash is no longer offered to new Google API keys, so our runs used gemini-3.8-flash.

For maintainers

If you want to run Serpbit yourselves, or include it in Stealth Bench V2, we will provide an API key with enough traffic for the runs.


Summary by cubic

Adds Serpbit as an available browser provider for Stealth Bench, runnable with --browser serpbit.

Serpbit provides hosted headful Chrome with a per-session residential exit and built-in CAPTCHA solving. Sessions open when the client connects and end on disconnect, so connect() builds the URL from SERPBIT_API_KEY and disconnect() is a no-op. Query parameters already present in SERPBIT_CONNECT_URL (default wss://connect.serpbit.com/) are preserved, so a connect URL like ...?engine=firefox still authenticates.

  • Registered the provider in browsers/__init__.py and the README's provider list.
  • Added SERPBIT_API_KEY to .env.example; SERPBIT_COUNTRY is optional and defaults to us.
  • Test runs used gemini-3.8-flash as the judge since gemini-2.5-flash is no longer offered to new Google API keys.

Written for commit 652ac41. Summary will update on new commits.

View guided diff

Serpbit Browser API: hosted headful Chrome with a residential exit per session and built-in CAPTCHA solving. The session opens on connect and ends on disconnect, so connect() only builds the URL from SERPBIT_API_KEY (optional SERPBIT_COUNTRY, default us).
@holder-quarry

Copy link
Copy Markdown
Author

Hi @Alezander9 and @MagMueller,

We run Serpbit Browser API (https://serpbit.com/browser-api/): hosted headful Chrome with a residential exit per session, with CDP access for browser-use and Playwright. This PR adds it as a Stealth Bench provider, in the same way as the Rebrowser and Browserless modules: 4 files, 28 lines.

We would like Serpbit to be part of your runs, including Stealth Bench V2 (#55) before it ships. We will give you an API key with enough traffic for as many runs as you need. Tell us how much you want.

Two findings from running V1 that may be useful to you:

  • browser-use's default highlight overlay (the remove_highlights script after each screenshot) gets PerimeterX to block the page. On walmart.com search it was 8 of 8 with it and 0 without. highlight_elements=False avoids it.
  • gemini-2.5-flash, the V1 judge, is no longer available to new Google API keys, so new runs need another judge model.

Thanks, and happy to help with anything on our side.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 4 files

Reply to a comment to ask cubic a question or push back. It learns from your replies.
Click Fix with cubic on a comment, or reply @cubic-dev-ai fix this, and cubic writes the fix.

View guided diff | Re-trigger cubic

Comment thread browsers/serpbit.py Resolved
Merge key and country into the URL's own query instead of always appending '?', so a connect URL like ...?engine=firefox still authenticates.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant