Skip to content

feat(#120): add stealth mode via --stealth flag and AGENT_BROWSER_STEALTH env var#471

Open
giulio-leone wants to merge 3 commits intovercel-labs:mainfrom
giulio-leone:feat/120-stealth-mode
Open

feat(#120): add stealth mode via --stealth flag and AGENT_BROWSER_STEALTH env var#471
giulio-leone wants to merge 3 commits intovercel-labs:mainfrom
giulio-leone:feat/120-stealth-mode

Conversation

@giulio-leone
Copy link

Summary

Adds stealth mode to evade bot detection systems via --stealth CLI flag or AGENT_BROWSER_STEALTH env var.

Changes

  • cli/: Add --stealth flag, forward to daemon
  • src/browser.ts: Apply evasions via addInitScript() — hide navigator.webdriver, fix chrome.runtime, spoof plugins/languages, patch WebGL+WebGL2 fingerprinting
  • Stealth applied to all context creation paths (launch, newWindow, ensurePage, recording)
  • Add --disable-blink-features=AutomationControlled launch arg

Usage

agent-browser --stealth open https://example.com
# or
export AGENT_BROWSER_STEALTH=1

Closes #120. Related: #53

@vercel
Copy link
Contributor

vercel bot commented Feb 14, 2026

@giulio-leone is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Add stealth mode via AGENT_BROWSER_STEALTH environment variable

1 participant