Repository navigation
Add Serpbit as a Stealth Bench browser provider - #90
holder-quarry wants to merge 2 commits into
Conversation
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).
|
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:
Thanks, and happy to help with anything on our side. |
There was a problem hiding this comment.
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
Merge key and country into the URL's own query instead of always appending '?', so a connect URL like ...?engine=firefox still authenticates.
This PR adds Serpbit as a provider:
It works the same way as Rebrowser and Browserless:
browsers/;browsers/__init__.py;SERPBIT_API_KEYin.env.example;serpbitin 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 fromSERPBIT_API_KEY.SERPBIT_COUNTRYis optional and defaults tous.disconnect()does nothing.The session ends when
run_taskcallsbrowser.stop().Testing
main: the provider is registered,connect()returns the URL, and browser-use 0.11.5 connects and loads a page.bu-2-0) through this provider several times. We can share the run data.One note on the judge:
gemini-2.5-flashis no longer offered to new Google API keys, so our runs usedgemini-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 fromSERPBIT_API_KEYanddisconnect()is a no-op. Query parameters already present inSERPBIT_CONNECT_URL(defaultwss://connect.serpbit.com/) are preserved, so a connect URL like...?engine=firefoxstill authenticates.browsers/__init__.pyand the README's provider list.SERPBIT_API_KEYto.env.example;SERPBIT_COUNTRYis optional and defaults tous.gemini-3.8-flashas the judge sincegemini-2.5-flashis no longer offered to new Google API keys.Written for commit 652ac41. Summary will update on new commits.