Skip to content

ai browser agents stealth

github-actions[bot] edited this page Nov 13, 2026 · 10 revisions

AI browser agents and stealth: what fits and what does not

Most AI browser agents cannot run a stealth Firefox, because they speak the Chrome DevTools Protocol (CDP) and Firefox does not answer it. The few built on Playwright can select Firefox in principle, but rarely expose a custom binary. And on a server the engine is usually not what gets the agent blocked in the first place.

If your agent works on your laptop and gets challenge pages on a server, there are two separate questions and they get answered as one. The first is whether you can swap the browser underneath. The second is whether swapping it would fix your problem.

For most of these tools the first answer is no, for a reason that is structural rather than accidental. The second answer is often no as well, and for a different reason.

This page is what each project actually exposes, checked by reading its source, the split that decides all of it, what applies no matter which engine you run, the signal specific to agent-driven sessions, and the one route that does accept a different engine.

The split that decides everything: CDP or Playwright

Browser automation divides into two families and the boundary matters more than any configuration option.

Tools that speak the Chrome DevTools Protocol talk directly to a Chromium-family browser. CDP is Chromium's own protocol. Firefox does not implement it in the way these drivers expect, so an executablePath pointing at a Firefox build does not produce a working session: the driver would be speaking a language the browser does not answer.

Tools built on Playwright go through an abstraction that already supports three engines - Chromium, Firefox and WebKit. Swapping the binary is then a question of whether the tool exposes the launch option, not of whether the protocol matches.

Almost every AI browser agent is in the first family. That is a reasonable engineering choice, since CDP gives fine-grained control that agent loops want, and it is also why "can I use a stealth Firefox with my agent" usually has a short answer.

What each project actually exposes

Only two of these five projects expose a custom-binary option, and both expect a Chromium build. The table below is read from each repository on 2026-07-27 and 2026-07-28, with star counts from the same check.

Project Stars Family Custom binary Firefox
browser-use 107k CDP, Chrome executable_path on BrowserProfile no
Stagehand 24k CDP, Chromium executablePath, documented no
Skyvern 23k CDP not exposed no
crawl4ai 75k Playwright no executable_path browser_type="firefox"
Maxun 17k Playwright not exposed not exposed

Three others that come up in these searches are not Playwright tools at all: agent-browser and obscura are written in Rust, and BrowserOS has no Playwright dependency in its manifest. Star count does not tell you what a project drives.

browser-use

The configuration is real: executable_path, channel, user_data_dir, proxy, args and headless on BrowserProfile. The surrounding code is Chrome executable discovery and Chrome profile handling, and the channel type is a Chromium channel.

The useful move there is pointing executable_path at your real installed Chrome instead of the bundled Chromium, and pointing user_data_dir at a profile that has been used. The full version is here.

Stagehand

Exposes executablePath and documents it, which is more than most. The rest of the codebase is CDP: local CDP discovery, CDP tailing, a CDP client. Chromium references outnumber Firefox ones by a wide margin, and the Firefox mentions are in an OpenAPI schema and a client for someone else's API, not in a launch path.

So the option exists and it expects a Chromium build.

Skyvern

CDP throughout. There is no exposed way to point at a different binary, and the protocol would not match if there were.

crawl4ai

The only one of these built on Playwright with Firefox genuinely selectable, through browser_type="firefox". What is missing is any field naming a binary, so you get Playwright's managed build. Its own stealth mode applies playwright-stealth, which its documentation notes does not support Firefox, so that combination is largely inert. The full version is here.

Maxun

Playwright is in the manifest and no executable path is exposed. As a no-code platform that is a coherent product decision instead of an oversight.

What applies regardless of the engine

Swapping the browser engine changes none of the tells a server leaks, and those tells matter more than the binary question because they are true for every tool, CDP or Playwright. On a server, all of these are true at once and none of them is about automation:

Swapping the browser engine does not change a single item on that list. If your agent fails in a container and works on your laptop, this is almost certainly where the difference is, and it is the same for a CDP tool and a Playwright tool. The container walkthrough goes through it in order.

The signal that is specific to agents

One signal no fingerprint work touches is the rhythm of the agent loop itself. An agent thinks between actions: it reads the page, calls a model, waits, then acts. The resulting rhythm has a shape no person produces.

  • Long pauses clustered around model latency rather than around reading speed.
  • No movement during the pause. A person drifts, scrolls slightly, hovers. An agent's pointer is motionless for two seconds and then arrives.
  • Actions landing dead centre on targets, because coordinates come from an accessibility tree rather than from a hand.
  • No wasted actions. People hover over things they do not click and change their minds.

This explains blocks that arrive after a few interactions rather than at first load, and that timing is the cheapest diagnostic you have. Human-like pointer motion covers what can be done about the mechanical half, and the cadence between actions gets a page of its own, because smoothing a single click's path does not smooth the gaps between clicks.

This stopped being a theoretical concern in 2026

Agent-driven browsing used to be rare enough that most detection stacks didn't bother building a dedicated signal for it. That changed this year, and it changed from two directions that solve the problem in opposite ways. Fingerprint, the commercial fingerprinting vendor behind FingerprintJS, shipped a product in early 2026 that treats "is this an authorized AI agent" as its own question: it verifies agents from partner providers such as OpenAI, AWS AgentCore and Browserbase through a cryptographic signature on their HTTP requests, not by scoring how they behave.

Academic research published the same year took the opposite route. A large-scale study deployed honeysites behind several real anti-bot mechanisms, ran six LLM-based web agents against them, and found every agent distinguishable from a human, and from each other, using network, HTTP and browser-level fingerprinting alone, with no behaviour involved. The finding that matters most for this page is a third one: the stealth features some of those agents carried often made them easier to single out, not harder.

The practical upshot for anyone running an agent against a real site: "is this an agent" now has a funded answer on the fingerprint side and on the authentication side alike, independent of whatever engine sits underneath.

Neither 2026 development actually measures the timing and pointer-behaviour signal from the previous section, so treat that signal as resting on its own reasoning, not on outside confirmation. What both developments do confirm is that an agent's technical identity, not just its behaviour, is now something sites are actively paid to notice, which raises the cost of getting either the engine's fingerprint or the loop's rhythm wrong.

The route that does accept a different engine

If you want an engine whose fingerprint is set in its own source and you want an agent to drive it, the working combination today is MCP rather than CDP.

Microsoft's playwright-mcp accepts a browser and an executable path and speaks MCP, so any agent framework that talks MCP can drive a patched Firefox through it. That integration is written up here.

The trade is explicit: you give up the agent loop of whichever framework you were using and get an engine-level fingerprint. Whether that is worth it depends on which of the two problems at the top of this page you actually have.

Conclusion

The honest summary is that the agent ecosystem standardised on CDP, and CDP means Chromium. A Firefox engine does not drop into browser-use, Stagehand or Skyvern, and crawl4ai is one missing field away rather than one protocol away.

More importantly, for most people the engine is not the binding constraint. The container is. Every item in the machine list above is true whichever tool you picked, and none of them is fixed by a stealth setting inside it.

Work out which problem you have first: a block at the first request points at the machine or the address, and a block after several actions points at behaviour.

Short answers to the questions that lead here

Can I use a stealth Firefox with browser-use? No. It drives Chrome over CDP.

Does Stagehand support a custom browser? Yes, executablePath, and it expects a Chromium build.

Can crawl4ai use a patched engine? Not through configuration. It accepts browser_type="firefox" but has no field naming a binary.

Why does my agent work locally and fail in Docker? Because the container answers differently about the GPU, the fonts, the audio device and the screen. The agent is identical.

How do you make an AI agent undetectable? You do not, as a single setting. Three separate problems each need their own fix: the engine fingerprint (what patching Firefox at the C++ level answers), the machine surfaces a container gives away regardless of engine (GPU, fonts, audio, screen), and the agent loop's own rhythm, which no fingerprint patch touches. Fixing only the first and calling the agent undetectable is the mistake this whole page is about.

Which AI agent framework is most stealth-friendly? The question is usually the wrong one. Pick on the agent loop, then fix the machine, then consider the engine.

Is there any agent route to an engine-level fingerprint? Two, and they are not equivalent. uvx invisible-playwright-mcp launches through the engine, so the seeded profile and the humanised pointer come with it. Microsoft's own Playwright MCP server takes a browser and an executable path, which runs the engine but carries no firefox_user_prefs, so every session on a given build shares one identity.

See also: browser-use in detail, crawl4ai in detail, Playwright MCP, and the checklist for being detected on one site.

Sources


From the notes of invisible_playwright, a Firefox patched at the C++ level. This page exists because eight separate articles all concluding "does not fit" would have been worse for you than one that says why.

Documentation

Guides

Comparisons

Integrations

docs/ source folder

Clone this wiki locally