Add Serpbit as a Stealth Bench browser provider

HO
10h ago
+31-1

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.