Add String as a Stealth Bench browser provider
Adds String as a provider for run_eval.py --benchmark Stealth_Bench_V1 --browser string. The change follows how Driver was added: one module in browsers/, registry entries in browsers/__init__.py, and the key in .env.example. string is also added to the README's list of available providers.
Session lifecycle
String has no create or release API. Connecting to wss://request.usestring.ai/v1/wss starts a fresh Chrome, one browser per connection, and closing the connection ends the session. As a result, connect() only builds the URL and disconnect() does nothing, as in browserless.py and rebrowser.py. The session ends when run_task calls browser.stop(), which closes the CDP WebSocket in browser-use 0.11.5.
String authenticates the WebSocket handshake with Authorization: Bearer <STRING_API_KEY>. The key is never part of the URL. To support this, create_browser in run_eval.py (and the equivalent line in frameworks/browser_use/run_task.py) passes headers= to Browser when a provider module defines headers(). Every other provider has no such function, so it gets headers=None, which matches the current behaviour. In browser-use 0.11.5 these headers are used only for the CDP connection (CDPClient(additional_headers=...) and the /json/version lookup). They are not sent to the sites being tested. browser-use 0.11.5 also opens a single root CDP WebSocket and attaches new tabs and popups through Target.setAutoAttach on that connection. This matters because String starts a separate browser for every new connection. It was confirmed in the live check below.
STRING_CDP_URL overrides the endpoint. Its query parameters are kept as given, including blank and repeated ones; only proxy and solveCaptcha are replaced.
Settings
solveCaptcha=true
- No
proxyis set, so String's default (its residential pool) applies. solveCaptcha=trueturns on String's CAPTCHA solver. Anchor, Browserbase, Driver and Steel run with their solvers on in this benchmark, and Kernel's stealth mode includes one, so the solver is on here as well.- No
countryCodeis set, matching most of the existing providers. Browsers run in Azure eastus2.
Pricing
Session time is $0.12 per hour, metered continuously, with no minimum and no per-session fee. Bandwidth costs $10 per GiB on the premium (residential) proxy and $5 per GiB on standard. Sources: https://usestring.ai/pricing and https://portal.usestring.ai/docs/get-started/pricing.
How to run
uv sync
cp .env.example .env # set STRING_API_KEY and GOOGLE_API_KEY (judge), plus BROWSER_USE_API_KEY for the bu-2-0 agent
uv run python run_eval.py --benchmark Stealth_Bench_V1 --browser string
Verification
uv run python -m unittest discover -s testspasses as onmain(on macOS,test_concurrent_tasks_keep_files_screenshots_and_browser_ownershipneeds a resolvedTMPDIRon both).ruff checkon the CI file set: all checks passed.- Live check without an agent or judge: 8 Stealth Bench V1 start URLs were opened through
create_browserwith this provider, one String session per site, waiting 20 seconds on each. ChatGPT, Reddit, Walmart, Zillow, Etsy, H&M and Nordstrom loaded their normal pages. Indeed stayed on Cloudflare's "Additional Verification Required" page. Every session used exactly one WebSocket, with the Authorization header on the handshake. On Walmart, a second tab was opened through browser-use and a popup throughwindow.open. All three tabs were visible and controllable, and there was still one connection. This was not a benchmark run and is not a score.
No stealth_bench/official_results file or plot update is included. Driver's results PR (#9) included both but was not merged. If you want String in the published chart, we can provide a key for your own run, or run the full 80-task set ourselves and send the result file.