Skip to main content
Back

CloakBrowser Rewrites Chromium's C++ to Beat Bot Detection at 0.9 reCAPTCHA Score

CloakBrowser patches Chromium's C++ source directly, passing 30+ bot detection tests including Cloudflare Turnstile and reCAPTCHA v3 with a 0.9 human score

Repo, Full Access
  • Source-level stealth: CloakBrowser patches Chromium's C++ source directly (71 patches) instead of injecting JavaScript, making it undetectable as automation.
  • 30/30 detection tests passed: Achieves a 0.9 reCAPTCHA v3 score (human-level), passes Cloudflare Turnstile, FingerprintJS, and BrowserScan.
  • Drop-in replacement: Swap one import line from Playwright or Puppeteer; all existing code works unchanged in Python and JavaScript.
  • humanize=True flag: Adds Bézier mouse curves, per-character typing with pauses, and realistic scroll physics in a single flag.
  • AI agent ready: Integrates with browser-use, Crawl4AI, Stagehand, LangChain, and other automation frameworks via CDP.
  • Free and open source (MIT wrapper): Install via pip install cloakbrowser; Pro plans from $19/month for the always-latest binary build.

CloakBrowser is a Chromium fork built for bot detection evasion. Where tools like playwright-stealth and undetected-chromedriver inject JavaScript patches on top of a standard browser, CloakBrowser modifies Chromium's C++ source before compiling. Anti-bot systems see a real browser because the binary genuinely is one. The project has crossed 20,000 GitHub stars and currently tracks Chromium 150.

JavaScript-injection approaches have a structural problem: every Chrome update can break them, and detection services have grown skilled at spotting the gap between a patched runtime and an unpatched binary. Moving the patches into the compiled binary eliminates that gap entirely.

58 patches, zero JavaScript injection

The binary ships with 58 source-level patches covering canvas, WebGL, audio, fonts, GPU, screen properties, WebRTC, network timing, hardware reporting, automation signal removal, and CDP input behavior. None are injected at runtime. All are compiled in. Binary downloads are verified with SHA-256 checksums.

The fingerprint system generates a random seed at startup and spoofs every detectable value: GPU, hardware specs, screen dimensions, canvas, WebGL, audio, and fonts. Each launch produces a fresh, internally consistent identity. For returning-visitor scenarios, pin a seed with --fingerprint=12345 to preserve the same device identity across sessions, which matters for reCAPTCHA v3 Enterprise scoring.

reCAPTCHA v3 API demo showing a score of 0.9 (human level) from CloakBrowser

Detection scores against real systems