Wink Pings

CloakBrowser at 33K Stars: Writing Anti-Bot Patches Into Chromium C++ Source, Scoring 0.9 on reCAPTCHA v3

CloakBrowser directly modifies Chromium source code instead of using JS injection for disguise. With 87 C++ patches, it scores 0.9 on reCAPTCHA v3 and passes Cloudflare Turnstile. A drop-in replacement for Playwright that works right after installation. This open-source project has 33K stars; is it worth using? This article breaks it down for you.

Your AI Agent is running smoothly, then a page opens and Cloudflare's shield drops. Website anti-bot detection checks signals such as Canvas rendering, WebGL parameters, and network behavior. As soon as it detects bot traits, it throws up a CAPTCHA or outright denies access. reCAPTCHA, fingerprint anomalies, and 403 errors are what many people working with automation go through every day.

A project recently appeared on GitHub: CloakBrowser, with 33K stars. It takes a more hardcore route: it pulls down Chromium's C++ source code, patches it at a low level, and compiles its own browser. It bypasses JS injection and configuration patches; what anti-bot systems see is a "real" browser.

The official claim is that this binary includes 87 source-level C++ patches, covering Canvas, WebGL, audio, fonts, GPU, screen, WebRTC, network timing, automation signals, and CDP input behavior. In the test results, reCAPTCHA v3 scores 0.9, while ordinary Playwright scores only 0.1; Cloudflare Turnstile is passed; FingerprintJS is also passed.

reCAPTCHA v3 Score 0.9

Cloudflare Turnstile Passing

BrowserScan Normal

Its most practical feature is being a drop-in replacement for Playwright. After installing cloakbrowser, replace the original import with from cloakbrowser import launch, and almost no other code needs to change.

from cloakbrowser import launch

browser = launch()
page = browser.new_page()
page.goto('https://example.com')
browser.close()

On sites with strict anti-bot measures, the official recommendation is to use it with residential proxies, geoip=True, headless=False, and humanize=True. humanize mode simulates human operation: moving the mouse along Bézier curves, typing character by character, and occasionally making a typo and then correcting it. Persistence is also a highlight: launch_persistent_context() can store cookies and login state locally, so the next launch still uses the same identity. When running multiple instances, each profile has an independent fingerprint.

The project is not completely free. The wrapper is MIT-licensed open source, but the compiled browser binary requires a license. A free key can be obtained with an email address and allows one concurrent session. More concurrency requires buying Pro. A Docker image is also provided, so it can be running with a single command. There is also a self-hosted graphical version, CloakBrowser Manager, an open-source alternative similar to Multilogin, supporting unlimited profiles.

The comment section is lively. User @拳手 asks, "Can it really bypass it directly?"; @躺平哥 says, "Recently muse has been shielded so hard I doubt life; I'll give it a try later"; someone else is numb from being shielded. 33K stars shows there are quite a few developers tormented by Cloudflare.

But anti-bot is an arms race. Source-level patches are harder to detect than JS injection, but whenever the platform updates its rules, you have to recompile again. User @全哥AI创业记 put it plainly: "As soon as the platform upgrades its rules, you have to start over again. Making a living relying on it doesn't feel stable."

If you want to try it, the GitHub repository is CloakHQ/CloakBrowser, supporting Python, JavaScript, and .NET. On first run after installation, it automatically downloads a browser binary of about 200MB, and then you apply for a free key. Anti-bot tools walk in a gray area; what you use them for is on you to know.

发布时间: 2026-11-30 04:04