cd /news/ai-agents/browser-use-anti-detect-production-s… · home › topics › ai-agents › article
[ARTICLE · art-177934] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=· neutral

Browser Use Anti-Detect: Production Stealth and Session Gotchas

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.

recommendation

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.

more in playbook: Designing agent systems
by read11 min views6 publishedNov 29, 2026

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.

Vendor-reported site accessBrowser Use Cloud 90.5%/100Anchor Browser 82%/100Browserbase 78.5%/100Hyperbrowser 73.5%/100

Browser 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.

We 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.

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.

We 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.

Under 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.

We keep those products separate:

We 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.

We start with deterministic browser control. Adding an agent before establishing page access makes failures harder to classify.

For 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.

The 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.

mkdir browser-use-probe && cd browser-use-probe
npm init -y
npm install playwright

export BROWSER_USE_API_KEY="replace-with-your-key"
export TARGET_URL="https://example.com"
export EXPECTED_TEXT="Example Domain"
export PROXY_COUNTRY="us"

Save this as probe.mjs:

import { chromium } from "playwright";
import { createHash } from "node:crypto";

const key = process.env.BROWSER_USE_API_KEY;
if (!key) {
  console.error("Missing BROWSER_USE_API_KEY; no browser created.");
  process.exit(2);
}

const endpoint = "https://api.browser-use.com/api/v4/browsers";
const target = new URL(process.env.TARGET_URL ?? "https://example.com");
const expected = process.env.EXPECTED_TEXT ?? "Example Domain";
const headers = {
  "X-Browser-Use-API-Key": key,
  "Content-Type": "application/json",
};

async function api(url, method, body) {
  const response = await fetch(url, {
    method,
    headers,
    body: JSON.stringify(body),
    signal: AbortSignal.timeout(30000),
  });
  if (!response.ok) {
    // Do not print response bodies that might contain sensitive URLs.
    throw new Error(`API ${method} failed: HTTP ${response.status}`);
  }
  if (method === "POST") return response.json();
}

async function surfaceDigest(page) {
  const sample = await page.evaluate(() => ({
    userAgent: navigator.userAgent,
    languages: [...navigator.languages],
    platform: navigator.platform,
    screen: [screen.width, screen.height, screen.colorDepth],
    timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,
    webdriver: navigator.webdriver,
  }));
  // This samples a few surfaces; it is not a complete fingerprint.
  return createHash("sha256")
    .update(JSON.stringify(sample))
    .digest("hex");
}

let session;
let browser;
let cleanupFailed = false;

try {
  session = await api(endpoint, "POST", {
    proxyCountryCode: process.env.PROXY_COUNTRY ?? "us",
    ...(process.env.PROFILE_ID
      ? { profileId: process.env.PROFILE_ID }
      : {}),
  });

  if (!session.id || !session.cdpUrl) {
    throw new Error("Create response missing browser ID or CDP URL");
  }

  browser = await chromium.connectOverCDP(session.cdpUrl, {
    timeout: 30000,
  });
  const context = browser.contexts()[0];
  if (!context) throw new Error("Managed context unavailable");
  const page = context.pages()[0] ?? await context.newPage();

  const response = await page.goto(target.href, {
    waitUntil: "domcontentloaded",
    timeout: 60000,
  });
  const first = await surfaceDigest(page);
  const contentPresent = await page.getByText(expected, {
    exact: false,
  }).first().isVisible();

  await page.reload({
    waitUntil: "domcontentloaded",
    timeout: 60000,
  });
  const second = await surfaceDigest(page);

  console.log(JSON.stringify({
    host: target.hostname,
    httpStatus: response?.status() ?? null,
    contentPresent,
    sampledSurfacesStableAcrossReload: first === second,
    profileRequested: Boolean(process.env.PROFILE_ID),
  }, null, 2));

  if (!contentPresent) process.exitCode = 1;
} catch {
  console.error("Probe failed; inspect restricted diagnostics.");
  process.exitCode = 1;
} finally {
  try {
    if (browser) await browser.close();
  } catch {
    console.error("CDP disconnect failed.");
    process.exitCode = 1;
  }
  try {
    if (session?.id) {
      await api(`${endpoint}/${session.id}`, "PATCH", {
        action: "stop",
      });
      console.error("Managed browser stop request accepted.");
    }
  } catch {
    cleanupFailed = true;
    console.error("STOP FAILED: reconcile managed browser in dashboard.");
    process.exitCode = 1;
  }
  if (cleanupFailed) {
    console.error("Do not assume billing has stopped.");
  }
}

Run it:

node probe.mjs

Illustrative successful output—not an observed cloud result:

{
  "host": "example.com",
  "httpStatus": 200,
  "contentPresent": true,
  "sampledSurfacesStableAcrossReload": true,
  "profileRequested": false
}
Managed browser stop request accepted.

We 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.

The 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.

For fingerprint persistence, our acceptance procedure adds three separate checks on an owned diagnostic origin:

We 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.

Our 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.

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.

The second is silent emulation failure. In our CDP integration review, 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.

Our 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.

User-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.

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.

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.

For workflows with external side effects, we apply the same principle discussed in Restate AI: Crash Recovery, Side Effects, and SDK Gotchas: reconnection is not permission to repeat a submission. We check whether an action completed before retrying it.

Other boundaries matter:

debugger_address attachment mechanism. None of these establishes memory spikes or latency regressions. We have no measurements supporting such claims.

We 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.

Our evidence comparison looks like this:

Option Evidence we can use Identity boundary Main decision risk
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
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
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
Hyperbrowser 73.5% in Browser Use's comparison; 2.7% stealth failure in Halluminate Must validate independently Ultra Stealth excluded from the vendor comparison
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
Desktop anti-detect browser Potential fit for long-lived profile/device identity Product-specific persistence Desktop lifecycle and automation constraints

We do not combine those percentages into a leaderboard.

In Browser Use's Stealth Bench V2, 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.

The 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 in our benchmark review, without treating it as an EU workflow completion rate or our own live measurement.

For an independent methodological cross-check, we use Halluminate's 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.

That 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.

We also lack an independent product review of Browser Use Cloud in the available evidence. BrowserBench is useful, but it does not fill that gap.

For 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.

We 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.

The 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:

Browser:  (2 / 60) × $0.06 = $0.002
Traffic:  0.010 × $5       = $0.050
Total:                       $0.052 per attempt

At 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.

Traffic 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.

For 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.

The 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.

We would approve a bounded pilot, not an unconditional production rollout.

Deploy this if:

Hold off or avoid it if:

The 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.

We would begin with the browser quickstart, validate the CDP limitations, 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.

── more in #ai-agents 4 stories · sorted by recency
── more on @browser use 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/browser-use-anti-det…] indexed:0 read:11min 2026-11-29 · —