Repository navigation
Conversation
String's hosted browser has no session API: connecting to its CDP WebSocket starts a fresh Chrome and closing the connection ends it. The key is sent as an Authorization header on the handshake, so providers may now expose headers(), which create_browser passes to browser-use. Sessions use String's residential proxy (proxy=premium) with its CAPTCHA solver on, matching the solver/proxy settings of the other providers.
There was a problem hiding this comment.
All reported issues were addressed across 7 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds String as a provider for
run_eval.py --benchmark Stealth_Bench_V1 --browser string. The change follows how Driver was added: one module inbrowsers/, registry entries inbrowsers/__init__.py, and the key in.env.example.stringis 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/wssstarts a fresh Chrome, one browser per connection, and closing the connection ends the session. As a result,connect()only builds the URL anddisconnect()does nothing, as inbrowserless.pyandrebrowser.py. The session ends whenrun_taskcallsbrowser.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_browserinrun_eval.py(and the equivalent line inframeworks/browser_use/run_task.py) passesheaders=toBrowserwhen a provider module definesheaders(). Every other provider has no such function, so it getsheaders=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/versionlookup). 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 throughTarget.setAutoAttachon that connection. This matters because String starts a separate browser for every new connection. It was confirmed in the live check below.STRING_CDP_URLoverrides the endpoint. Its query parameters are kept as given, including blank and repeated ones; onlyproxyandsolveCaptchaare replaced.Settings
solveCaptcha=trueproxyis 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.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 stringVerification
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.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_resultsfile 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.