{"slug": "browser-use-anti-detect-production-stealth-and-session-gotchas", "title": "Browser Use Anti-Detect: Production Stealth and Session Gotchas", "summary": "A developer evaluated Browser Use's anti-detect hosted Chromium service for production automation and concluded it should be conditionally shortlisted for authorized workflows, warning that persistent login state is not the same as persistent device identity. The review found Browser Use preserves profile state while randomizing fingerprints per session, with no fingerprint-pinning option in the published API contract, and included a runnable Playwright acceptance probe that was not executed because no authenticated cloud or local browser was available.", "body_md": "The expensive browser-agent failure is not always a bad model decision. Sometimes the agent never reaches the application: a proxy is rejected, a challenge replaces the page, or a returning login looks like a new device. More reasoning tokens cannot repair an infrastructure-level denial.\n\nVendor-reported site accessBrowser Use Cloud 90.5%/100Anchor Browser 82%/100Browserbase 78.5%/100Hyperbrowser 73.5%/100\n\nBrowser Use led its own Stealth Bench V2, but the sites were selected partly because it had previously passed where stock Chrome did not; these results are not a production success forecast.\n\nWe evaluated the **Browser Use anti-detect browser** around that boundary. Our question was not whether a browser could open a page. It was whether its identity, lifecycle, and billing semantics would support repeatable production workflows.\n\n**Our verdict is conditional: shortlist it for authorized automation, but do not confuse persistent login state with persistent device identity.** Browser Use preserves profile state while randomizing the fingerprint for each browser session. There is no fingerprint-pinning option in the published API contract. That distinction can disqualify it before price or stealth scores matter.\n\nWe need to establish the evidence boundary up front. This review includes a source-verified interface walkthrough and a runnable acceptance probe. We did not have an authenticated cloud browser or a running local browser available, so we did not execute that probe, measure live block rates, or reproduce production load. The output below is explicitly simulated. We will not turn an integration recipe into a fictional deployment report.\n\nUnder the hood, we are evaluating a hosted, hardened Chromium fork exposed through CDP. The service combines browser fingerprint changes, residential proxies, and CAPTCHA handling. We can drive it with Playwright or Puppeteer instead of delegating the entire workflow to a hosted agent.\n\nWe keep those products separate:\n\nWe also restrict this evaluation to sites we own or have permission to automate. Stealth infrastructure is not permission to bypass an account ban or a site's access restrictions.\n\nWe start with deterministic browser control. Adding an agent before establishing page access makes failures harder to classify.\n\nFor a new integration, we use API V4 and authenticate with `X-Browser-Use-API-Key`, without a Bearer prefix. Browser creation returns a `cdpUrl`; our page code attaches to the existing context so managed settings and profile cookies apply.\n\nThe following probe requires Node.js 20 or later and an optional Browser Use API key. Without the key, it exits before creating anything billable. No local Chromium download is necessary for the remote CDP connection.\n\n```\nmkdir browser-use-probe && cd browser-use-probe\nnpm init -y\nnpm install playwright\n# Commit package.json and package-lock.json after reviewing resolved versions.\n\nexport BROWSER_USE_API_KEY=\"replace-with-your-key\"\nexport TARGET_URL=\"https://example.com\"\nexport EXPECTED_TEXT=\"Example Domain\"\nexport PROXY_COUNTRY=\"us\"\n\n# Optional: use an existing profile created through your account.\n# export PROFILE_ID=\"your-profile-id\"\n```\n\nSave this as `probe.mjs`:\n\n``` js\nimport { chromium } from \"playwright\";\nimport { createHash } from \"node:crypto\";\n\nconst key = process.env.BROWSER_USE_API_KEY;\nif (!key) {\n  console.error(\"Missing BROWSER_USE_API_KEY; no browser created.\");\n  process.exit(2);\n}\n\nconst endpoint = \"https://api.browser-use.com/api/v4/browsers\";\nconst target = new URL(process.env.TARGET_URL ?? \"https://example.com\");\nconst expected = process.env.EXPECTED_TEXT ?? \"Example Domain\";\nconst headers = {\n  \"X-Browser-Use-API-Key\": key,\n  \"Content-Type\": \"application/json\",\n};\n\nasync function api(url, method, body) {\n  const response = await fetch(url, {\n    method,\n    headers,\n    body: JSON.stringify(body),\n    signal: AbortSignal.timeout(30000),\n  });\n  if (!response.ok) {\n    // Do not print response bodies that might contain sensitive URLs.\n    throw new Error(`API ${method} failed: HTTP ${response.status}`);\n  }\n  if (method === \"POST\") return response.json();\n}\n\nasync function surfaceDigest(page) {\n  const sample = await page.evaluate(() => ({\n    userAgent: navigator.userAgent,\n    languages: [...navigator.languages],\n    platform: navigator.platform,\n    screen: [screen.width, screen.height, screen.colorDepth],\n    timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,\n    webdriver: navigator.webdriver,\n  }));\n  // This samples a few surfaces; it is not a complete fingerprint.\n  return createHash(\"sha256\")\n    .update(JSON.stringify(sample))\n    .digest(\"hex\");\n}\n\nlet session;\nlet browser;\nlet cleanupFailed = false;\n\ntry {\n  session = await api(endpoint, \"POST\", {\n    proxyCountryCode: process.env.PROXY_COUNTRY ?? \"us\",\n    ...(process.env.PROFILE_ID\n      ? { profileId: process.env.PROFILE_ID }\n      : {}),\n  });\n\n  if (!session.id || !session.cdpUrl) {\n    throw new Error(\"Create response missing browser ID or CDP URL\");\n  }\n\n  browser = await chromium.connectOverCDP(session.cdpUrl, {\n    timeout: 30000,\n  });\n  const context = browser.contexts()[0];\n  if (!context) throw new Error(\"Managed context unavailable\");\n  const page = context.pages()[0] ?? await context.newPage();\n\n  const response = await page.goto(target.href, {\n    waitUntil: \"domcontentloaded\",\n    timeout: 60000,\n  });\n  const first = await surfaceDigest(page);\n  const contentPresent = await page.getByText(expected, {\n    exact: false,\n  }).first().isVisible();\n\n  await page.reload({\n    waitUntil: \"domcontentloaded\",\n    timeout: 60000,\n  });\n  const second = await surfaceDigest(page);\n\n  console.log(JSON.stringify({\n    host: target.hostname,\n    httpStatus: response?.status() ?? null,\n    contentPresent,\n    sampledSurfacesStableAcrossReload: first === second,\n    profileRequested: Boolean(process.env.PROFILE_ID),\n  }, null, 2));\n\n  if (!contentPresent) process.exitCode = 1;\n} catch {\n  console.error(\"Probe failed; inspect restricted diagnostics.\");\n  process.exitCode = 1;\n} finally {\n  try {\n    if (browser) await browser.close();\n  } catch {\n    console.error(\"CDP disconnect failed.\");\n    process.exitCode = 1;\n  }\n  try {\n    if (session?.id) {\n      await api(`${endpoint}/${session.id}`, \"PATCH\", {\n        action: \"stop\",\n      });\n      console.error(\"Managed browser stop request accepted.\");\n    }\n  } catch {\n    cleanupFailed = true;\n    console.error(\"STOP FAILED: reconcile managed browser in dashboard.\");\n    process.exitCode = 1;\n  }\n  if (cleanupFailed) {\n    console.error(\"Do not assume billing has stopped.\");\n  }\n}\n```\n\nRun it:\n\n```\nnode probe.mjs\n```\n\n**Illustrative successful output—not an observed cloud result:**\n\n```\n{\n  \"host\": \"example.com\",\n  \"httpStatus\": 200,\n  \"contentPresent\": true,\n  \"sampledSurfacesStableAcrossReload\": true,\n  \"profileRequested\": false\n}\nManaged browser stop request accepted.\n```\n\nWe deliberately avoid labeling this `stealthPassed`. Finding expected text on Example Domain proves neither anti-bot resistance nor workflow completion. Likewise, a stable digest covers only the sampled properties; it excludes canvas, WebGL, fonts, and network-level signals.\n\nThe probe also has an operational limit: if browser creation succeeds remotely but its response is lost, the script may not receive an ID to stop. Our production design therefore needs an independent reconciliation process, not just `finally`.\n\nFor fingerprint persistence, our acceptance procedure adds three separate checks on an owned diagnostic origin:\n\nWe compare browser-surface observations separately from a harmless cookie and local-storage marker. Login persistence must also be tested against the actual application. Cookie survival is not proof that its authentication system will accept the next session.\n\nOur immediate roadblock was evidence, not a mysterious Chromium crash: without authenticated execution, we could not validate fingerprint persistence or real-site behavior. The integration review nevertheless exposed several deployment-breaking assumptions. These are documented constraints we would test, not failures we claim to have reproduced.\n\n**The first is device identity.** We cannot configure a profile to retain one exact fingerprint across browser sessions. Profiles preserve cookies, local storage, and login state, while fingerprints are randomized per session. For applications that bind authentication to a long-lived device, we would require explicit reauthentication testing or choose infrastructure with persistent device identity.\n\n**The second is silent emulation failure.** In our [CDP integration review](https://docs.browser-use.com/cloud/browser/playwright-puppeteer-selenium), we identified a constraint to test: window-resize and device-emulation commands are ignored by default while still returning success. A successful `setViewportSize()` call therefore does not prove that the rendered viewport changed.\n\nOur workaround is to set `browserScreenWidth` and `browserScreenHeight` during creation and assert the actual page dimensions. When necessary, we also supply `allowResizing: true` at creation time. We would keep that variant separate in stealth tests because resizing weakens the intended fingerprint consistency.\n\nUser-agent overrides are a harder boundary: `Network.setUserAgentOverride` remains ignored even with resizing enabled. We would not reuse a mobile-emulation test suite unchanged and call its results valid.\n\n**The third is context isolation.** Calling `newContext()` creates an incognito context that does not inherit the saved profile's cookies. We use the existing managed context. We also do not assume profile synchronization imports saved passwords or guarantees a persistent HTTP disk cache.\n\n**The fourth is cleanup.** Closing CDP, calling Playwright's `browser.close()`, or closing the SDK client does not stop the managed browser. We explicitly stop it through the API and reconcile failures independently.\n\nFor workflows with external side effects, we apply the same principle discussed in [Restate AI: Crash Recovery, Side Effects, and SDK Gotchas](https://dev.to/articles/restate-ai-durable-execution-sdk-gotchas-2026): reconnection is not permission to repeat a submission. We check whether an action completed before retrying it.\n\nOther boundaries matter:\n\n`debugger_address` attachment mechanism.\nNone of these establishes memory spikes or latency regressions. We have no measurements supporting such claims.\n\nWe separate three questions: can the page load, can the workflow complete, and can the system sustain the required concurrency? A stealth percentage answers only part of the first.\n\nOur evidence comparison looks like this:\n\n| Option | Evidence we can use | Identity boundary | Main decision risk | \n|---|---|---|---|\n| Browser Use Cloud | Vendor-run Stealth Bench V2: 90.5% of visits got through | Fresh fingerprint per session; reusable profile state | Benchmark selection bias; workload fit unverified | \n| Anchor Browser | 82% in Browser Use's test; 1.7% stealth failure in Halluminate's separate test | Must validate independently | Scores come from different workloads | \n| Browserbase | 78.5% in Browser Use's standard-plan comparison; 3.4% stealth failure in Halluminate | Must validate independently | Enterprise Verified mode excluded from the vendor comparison | \n| Hyperbrowser | 73.5% in Browser Use's comparison; 2.7% stealth failure in Halluminate | Must validate independently | Ultra Stealth excluded from the vendor comparison | \n| Self-hosted Playwright/Chromium | Full control; no equivalent independently verified score here | We own persistence and proxy configuration | Browser maintenance and recovery become our responsibility | \n| Desktop anti-detect browser | Potential fit for long-lived profile/device identity | Product-specific persistence | Desktop lifecycle and automation constraints | \n\nWe do **not** combine those percentages into a leaderboard.\n\nIn [Browser Use's Stealth Bench V2](https://browser-use.com/anti-detect-browser), the scope is 100 bot-protected sites, two visits per provider, and 60 seconds per visit. A provider-blind model judges whether the real site loaded. Each provider uses its own proxy and CAPTCHA solver, with standard-plan stealth configurations.\n\nThe critical qualification is site selection: those sites were chosen because Browser Use historically passed where stock Chrome with a US proxy did not. We treat the 90.5% result as vendor-run evidence on a selected difficult set, not a production success forecast. We also include the [84% site-access result with CAPTCHA solving disabled](https://browser-use.com/developers) in our benchmark review, without treating it as an EU workflow completion rate or our own live measurement.\n\nFor an independent methodological cross-check, we use [Halluminate's BrowserBench](https://www.halluminate.ai/blog/browserbench). It contains 292 read-based tasks across 292 websites, generally requiring 5–25 steps. It holds the Browser Use agent framework and GPT-OSS model constant, with human grading as the primary evaluation.\n\nThat benchmark measures proxy/CAPTCHA-related trajectory failures. Browser Use is the **agent framework**, not a tested cloud-browser provider. Its results cannot independently validate Browser Use Cloud. Nor does the 15% share of all agent failures attributed to stealth mean a 15% stealth failure rate across all tasks.\n\nWe also lack an independent product review of Browser Use Cloud in the available evidence. BrowserBench is useful, but it does not fill that gap.\n\nFor our deployment gate, we would start with five authorized pages spanning a diagnostic origin, public content, an authenticated read, navigation, and a protected read. We would run repeated paired trials with randomized provider order and fixed country, assertions, and time budget. Challenges, explicit blocks, proxy failures, timeouts, and application failures need separate labels. A challenge that is solved is not a blocked workflow.\n\nWe would report per-domain outcomes, sample counts, uncertainty, p50/p95 completion latency, and retry counts. Until then, we have no defensible cloud latency or load result. This is the same evaluation discipline we use in [Inspect AI: Agent Evals, Logs, and Model-Upgrade Gates](https://dev.to/articles/inspect-ai-agent-evaluation-production-benchmark-2026).\n\nThe cost arithmetic is clearer. At the listed **$0.06 per browser-hour** and **$5/GB residential traffic**, an illustrative two-minute attempt transferring 10 MB costs, using decimal GB:\n\n``` php\nBrowser:  (2 / 60) × $0.06 = $0.002\nTraffic:  0.010 × $5       = $0.050\nTotal:                       $0.052 per attempt\n```\n\nAt an assumed 80% completion rate, that is **$0.065 per completed workflow**, excluding models, orchestration, engineering, and manual recovery. Those are planning assumptions, not measurements.\n\nTraffic dominates this example. An extra 10 MB costs as much as 50 browser-minutes. Resource blocking might help, but we would retest both application behavior and completion rate after changing it.\n\nFor break-even planning, suppose self-hosting requires eight maintenance hours monthly at $100/hour. That is $800 before infrastructure. At $0.065 per completion, roughly 12,300 managed completions consume the same amount. This is not a universal crossover: self-hosting still needs proxies, and neither option's failure cost is known.\n\nThe listed limit for new projects is 10 concurrent browsers shared across project keys, with higher limits based on spending. We would verify the account's actual limit, bound workers, stagger polling, and honor `Retry-After`. More API keys do not create more project capacity.\n\nWe would approve a **bounded pilot**, not an unconditional production rollout.\n\n**Deploy this if:**\n\n**Hold off or avoid it if:**\n\nThe architectural appeal is real: we can retain deterministic page logic while outsourcing browser hardening, proxy integration, and browser operation. The unresolved question is whether that bundle lowers **cost per completed workflow on our domains**.\n\nWe would begin with the [browser quickstart](https://docs.browser-use.com/cloud/browser/quickstart), validate the [CDP limitations](https://docs.browser-use.com/cloud/browser/playwright-puppeteer-selenium), and run the acceptance probe before introducing agent reasoning. Our purchase criteria are repeatable completion, acceptable identity behavior, and reliable control over browser billing—not a stealth score alone.", "url": "https://wpnews.pro/news/browser-use-anti-detect-production-stealth-and-session-gotchas", "canonical_source": "https://dev.to/jangwook_kim_e31e7291ad98/browser-use-anti-detect-production-stealth-and-session-gotchas-4poe", "published_at": "2026-11-29 00:36:17+00:00", "updated_at": "2026-11-29 00:44:07.151447+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools"], "entities": ["Browser Use", "Browser Use Cloud", "Anchor Browser", "Browserbase", "Hyperbrowser", "Playwright", "Puppeteer"], "also_reported_by": [], "takeaway": "Browser Use's API V4 preserves profile cookies across sessions but randomizes the browser fingerprint each time with no pinning option, so teams needing stable device identity must verify that before relying on its stealth scores.", "recommendation": {"advice": "Run a deterministic Playwright CDP probe against sites you own before adding an agent, and confirm whether your workflow needs fingerprint pinning that Browser Use's API does not offer.", "playbook": "agent-architecture", "playbook_url": "https://wpnews.pro/playbooks/agent-architecture"}, "alternates": {"html": "https://wpnews.pro/news/browser-use-anti-detect-production-stealth-and-session-gotchas", "markdown": "https://wpnews.pro/news/browser-use-anti-detect-production-stealth-and-session-gotchas.md", "text": "https://wpnews.pro/news/browser-use-anti-detect-production-stealth-and-session-gotchas.txt", "jsonld": "https://wpnews.pro/news/browser-use-anti-detect-production-stealth-and-session-gotchas.jsonld"}}