anti-detect-browser

Launch a Patchright-patched Chrome session with persistent context and CDP connectivity.

Updated Jan 12, 2026
One-click install
npx skills add https://github.com/chinawrj/agent-skills-stock --skill anti-detect-browser
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: anti-detect-browser
Source: https://github.com/chinawrj/agent-skills-stock/tree/main/.github/skills/anti-detect-browser
Command: npx skills add https://github.com/chinawrj/agent-skills-stock --skill anti-detect-browser

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires patchright, and includes scripts (resource) components.

What problem does it solve?

Start real Chrome with anti-detection patches to bypass automation checks, enabling browser automation, data scraping, and site visits that would otherwise trigger bot protections.

Core Features & Use Cases

  • Patchright-based navigation: patch navigator.webdriver and remove automation flags for stealthy automation execution.
  • Persistent context: launch_persistent_context with a user data directory to preserve cookies, logins, and history across sessions.
  • CDP access: expose a CDP port for external scripts to connect and control the browser.
  • Real Chrome channel: use channel="chrome" to avoid fingerprinting issues associated with Chromium.
  • Use Case: automate access to anti-bot sites (Temu, 1688, Amazon) and perform scraping with simulated human interactions.

Quick Start

Run the Python script to start the anti-detect browser in the background.

Frequently Asked Questions about anti-detect-browser

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I launch an undetectable Chrome session for web scraping?

To launch an undetectable Chrome session for web scraping, run the provided Python script to start Patchright in the background. It patches navigator.webdriver and removes automation flags to bypass bot protections on sites like Amazon or Temu.

How does Patchright prevent bot detection during browser automation?

Patchright prevents bot detection during browser automation by patching navigator.webdriver and stripping automation flags. It uses a real Chrome channel instead of Chromium to avoid fingerprinting issues, ensuring stealthy execution on protected sites.

Can I connect to the anti-detect browser using CDP for external script control?

Yes, you can connect to the anti-detect browser using CDP for external script control. The session exposes a CDP port, allowing external scripts to use connect_over_cdp to manage and interact with the real Chrome instance.

Does this browser automation approach keep cookies and logins persistent across sessions?

Yes, this browser automation approach keeps cookies and logins persistent across sessions. It uses launch_persistent_context with a dedicated user-data-dir to preserve your history, cookies, and active logins between scraping runs.

What is the best way to access bot-protected sites like 1688 and Temu for scraping?

The best way to access bot-protected sites like 1688 and Temu for scraping is using Patchright with a real Chrome channel. It applies anti-detection patches to bypass automation checks and supports simulated human interactions.

Do I need to install Chromium separately to use this anti-detection browser?

No, you do not need to install Chromium separately to use this anti-detection browser. The Skill requires the patchright dependency and explicitly uses channel="chrome" to launch a real Chrome browser, avoiding Chromium fingerprinting issues.