🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

agent-browser-stealth

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

agent-browser-stealth

Browser automation CLI for AI agents — stealth fork with anti-detection

fork
latest
Source
npmnpm
Version
0.27.0-fork.11
Version published
Weekly downloads
94
-7.84%
Maintainers
1
Weekly downloads
 
Created
Source

agent-browser-stealth

Stealth fork of agent-browser — connects to your real Chrome, shares your login sessions, and is undetectable by anti-bot systems.

For basic usage, commands, and API reference, see the upstream documentation.

Why this fork?

agent-browser launches a fresh browser with an empty profile. You need to log in again, and websites can detect it's automated.

agent-browser-stealth connects to your existing Chrome. Your cookies, sessions, and browser fingerprint are all real — because it IS your real browser.

agent-browseragent-browser-stealth
BrowserLaunches new ChromeConnects to your Chrome
Login stateEmpty, need to re-loginYour existing sessions
FingerprintAutomation markers presentYour real fingerprint
User collaborationSeparate windowSame window, take over anytime
CAPTCHAAgent stuckYou solve it, agent continues

Install

npm install -g agent-browser-stealth

Install the AI agent skills

The repo ships SKILL.md files for Claude Code, Cursor, etc. Pull them into the current project with skills.sh:

npx skills add leeguooooo/agent-browser-stealth

This drops skills/agent-browser (and the specialized skill-data/{core,electron,slack,dogfood,agentcore,vercel-sandbox}) into your project so your AI agent gets the right usage patterns and pre-approved bash permissions for agent-browser, agent-browser-stealth, and abs.

Setup (one time)

Enable Chrome DevTools Protocol in your Chrome:

  • Open chrome://inspect/#remote-debugging in Chrome
  • Toggle the switch on

That's it. This setting persists across Chrome restarts.

Usage

# Connect to your Chrome and navigate
agent-browser open https://example.com

# Everything works through your logged-in browser
agent-browser click "Post"
agent-browser fill "Title" "Hello World"
agent-browser screenshot ./page.png

The agent operates in your Chrome — you'll see tabs opening, pages loading, clicks happening in real time. You can take over at any point (e.g. solve a CAPTCHA), then let the agent continue.

Standalone mode

If you need a separate browser (CI, testing, etc.):

agent-browser --launch open https://example.com

In CI environments, standalone mode is used automatically.

Anti-detection

When connected to your real Chrome, we inject zero JavaScript patches. Your browser's fingerprint is completely genuine.

The only thing we do is call Emulation.setAutomationOverride via CDP to set navigator.webdriver = false at the native Chrome level — undetectable by lie-detection systems like CreepJS.

Test results (connected to real Chrome):

Test siteResult
CreepJS0% stealth, 0% headless
bot.sannysoft.comAll green
Cloudflare TurnstilePassed

When using --launch mode (standalone browser), a full suite of 32 stealth patches is applied for headless Chrome.

Differences from upstream

Based on agent-browser v0.27.0. Changes:

  • Auto-connect is defaultagent-browser open <url> connects to your Chrome instead of launching a new one
  • CDP-native stealthEmulation.setAutomationOverride instead of JS patches
  • Dual stealth mode — zero patches for real Chrome, full patches for --launch mode
  • --launch / --new flag — explicitly start a standalone browser
  • CI auto-detection — standalone mode when CI env var is set

All upstream features (commands, snapshots, screenshots, recordings, tabs, sessions, etc.) work the same. See the upstream repo for full documentation.

License

Apache-2.0 (same as upstream)

Keywords

browser

FAQs

Package last updated on 01 Jun 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts