Stealth Chromium that passes every bot detection test. Drop-in Playwright replacement with source-level fingerprint patches. 50+ tests passed.
Python ai-agentsanti-detectantidetect-browserbot-detectionbrowser-automationcaptcha-bypasschromiumcloudflarecloudflare-bypassfingerprintheadless-browserplaywrightpuppeteerpythonrecaptchaseleniumstealth-browserundetectedweb-scrapingwebscraping
docs: refresh READMEs, drop retired font-metrics arg handling
CloakHQb2d778926e82
diff --git a/README.md b/README.mdindex 9924ac2..71f9bb5 100644--- a/README.md+++ b/README.md@@ -94,7 +94,7 @@ const browser = await launch({});```-See [Troubleshooting](#troubleshooting) for site-specific issues (FingerprintJS, Kasada, reCAPTCHA).+See [Troubleshooting](#troubleshooting) for site-specific issues (Kasada, Akamai, reCAPTCHA).## Install@@ -164,12 +164,11 @@ page.goto("https://example.com")- **Composable JS helpers** — `buildLaunchOptions()` and `humanizeBrowser()` for custom Playwright integrations- **Native SOCKS5 proxy** — `proxy="socks5://user:pass@host:port"` works directly in all launch functions, Python + JS. QUIC/HTTP3 tunnels through SOCKS5 via UDP ASSOCIATE- **Proxy signal removal** — DNS/connect/SSL timing zeroed, proxy cache headers stripped, Proxy-Connection header leak removed-- **Chromium 146 upgrade** — rebased all patches from 145.0.7632.x to 146.0.7680.177- **WebRTC IP spoofing** — `--fingerprint-webrtc-ip=auto` resolves your proxy's exit IP and spoofs WebRTC ICE candidates. Auto-injected when using `geoip=True` (no extra network call)- **`humanize=True`** — one flag makes all mouse, keyboard, and scroll interactions behave like a real user. Bézier curves, per-character typing, realistic scroll patterns- **Stealthy with zero flags** — binary auto-generates a random fingerprint seed at startup. No configuration required- **Timezone & locale from proxy IP** — `launch(proxy="...", geoip=True)` auto-detects timezone and locale-- **Persistent profiles** — `launch_persistent_context()` keeps cookies and localStorage across sessions, bypasses incognito detection+- **Persistent profiles** — `launch_persistent_context()` keeps cookies and localStorage across sessionsSee the full [CHANGELOG.md](CHANGELOG.md) for details.@@ -187,7 +186,7 @@ CloakBrowser doesn't solve CAPTCHAs — it prevents them from appearing. No CAPTAnti-bot systems change every week and an older binary quietly degrades. The latest build is the one that keeps passing. **Try it free, then upgrade when you're running for real.**-- **Free, latest build (Chromium 155)** — the newest binary, the exact one that stays [green against live detection](#test-results). Free with a GitHub sign-in, one concurrent session. [Grab your key](https://cloakbrowser.dev/free) or run `cloakbrowser login`, then throw it at your hardest target.+- **Free, latest build (Chromium 156)** — the newest binary, the exact one that stays [green against live detection](#test-results). Free with a GitHub sign-in, one concurrent session. [Grab your key](https://cloakbrowser.dev/free) or run `cloakbrowser login`, then throw it at your hardest target.- **Pro** — when it's part of production scraping, QA, monitoring, or automation: scale to **5, 20, 200, 2,000, or more concurrent sessions**, always first on the newest patches, with hands-on support. Linux, Windows, macOS. **[See plans and pricing →](https://cloakbrowser.dev)**- **v146** — the older build stays free on [GitHub Releases](https://github.com/CloakHQ/cloakbrowser/releases). A quick first look, but it ages fast as detection evolves.@@ -217,7 +216,7 @@ It's also the fastest way to try the browser without writing any code: download,## Test Results-All tests verified against live detection services. Results below are for the latest Pro/current build unless noted. Last tested: Oct 2026 (Chromium 155).+All tests verified against live detection services. Results below are for the latest Pro/current build unless noted. Last tested: Oct 2026 (Chromium 156).| Detection Service | Stock Playwright | CloakBrowser | Notes ||---|---|---|---|@@ -232,7 +231,7 @@ All tests verified against live detection services. Results below are for the la| `navigator.webdriver` | `true` | **`false`** | Source-level patch || `navigator.plugins.length` | 0 | **5** | Real plugin list || `window.chrome` | `undefined` | **`object`** | Present like real Chrome |-| UA string | `HeadlessChrome` | **`Chrome/151.0.0.0`** | No headless leak |+| UA string | `HeadlessChrome` | **`Chrome/156.0.0.0`** | No headless leak || CDP detection | Detected | **Not detected** | `isAutomatedWithCDP: false` || TLS fingerprint | Mismatch | **Identical to Chrome** | ja3n/ja4/akamai match || | | **Tested against 50+ detection sites** | |@@ -282,7 +281,7 @@ All tests verified against live detection services. Results below are for the laCloakBrowser is a thin wrapper (Python + JavaScript) around a custom-built Chromium binary:1. **You install** → `pip install cloakbrowser` or `npm install cloakbrowser`-2. **First launch** → binary auto-downloads for your platform (Chromium 146)+2. **First launch** → binary auto-downloads for your platform (latest build with a free or Pro key, the older v146 without one)3. **Every launch** → Playwright or Puppeteer starts with our binary + stealth args4. **You write code** → standard Playwright/Puppeteer API, nothing new to learn@@ -318,17 +317,11 @@ browser = launch(proxy={"server": "http://proxy:8080", "bypass": ".google.com",# With extra Chrome argsbrowser = launch(args=["--disable-gpu"])-# With timezone and locale (sets binary flags — no detectable CDP emulation)-browser = launch(timezone="America/New_York", locale="en-US")-# Auto-detect timezone/locale from proxy IP (requires: pip install cloakbrowser[geoip])# Also auto-injects --fingerprint-webrtc-ip to prevent WebRTC IP leaks (no extra cost)# Note: makes HTTP calls through your proxy to resolve exit IP (ipify.org, checkip.amazonaws.com)browser = launch(proxy="http://proxy:8080", geoip=True)-# Explicit timezone/locale always win over auto-detection-browser = launch(proxy="http://proxy:8080", geoip=True, timezone="Europe/London")-# WebRTC IP spoofing only (no geoip dep needed — resolves exit IP via HTTP call through proxy)browser = launch(proxy="http://proxy:8080", args=["--fingerprint-webrtc-ip=auto"])@@ -365,16 +358,16 @@ asyncio.run(main())### `launch_context()`-Convenience function that creates browser + context in one call with user agent, viewport, locale, and timezone:+Convenience function that creates browser + context in one call:```pythonfrom cloakbrowser import launch_contextcontext = launch_context(- user_agent="Custom UA",- viewport={"width": 1920, "height": 1080},- locale="en-US",- timezone="America/New_York",+ proxy="http://user:pass@residential-proxy:port",+ geoip=True,+ headless=False,+ humanize=True,)page = context.new_page()page.goto("https://protected-site.com")@@ -422,10 +415,8 @@ A persistent profile keeps its fingerprint seed across launches (stored in `.cloUse this when you need to:- **Stay logged in** across runs (cookies/sessions survive restarts)-- **Bypass incognito detection** (some sites flag empty, ephemeral profiles)- **Load Chrome extensions** (extensions only work from a real user data dir)- **Build natural browsing history** (cached fonts, service workers, IndexedDB accumulate over time, making the profile look more realistic)-- **Play DRM-protected video** (Widevine) — with a sideloaded CDM, the wrapper enables Widevine on the first launch (see [Widevine / DRM](#widevine--drm))```pythonfrom cloakbrowser import launch_persistent_context@@ -451,43 +442,6 @@ Supports all the same options as `launch_context()`: `proxy`, `user_agent`, `vieAsync version: `launch_persistent_context_async()`.-**Storage quota and incognito detection:** the binary normalizes storage quota by default (this also hides the real disk size). Detectors that infer private/incognito mode from quota — e.g. BrowserScan's incognito check (−10%) — read the default as incognito. Raise it to present as a regular profile:--```python-ctx = launch_persistent_context("./my-profile", args=["--fingerprint-storage-quota=5000"])-```--### Widevine / DRM--The binary is built with Widevine support, but the Widevine CDM is a proprietary Google component we can't redistribute. Get it one of two ways (full background in [#96](https://github.com/CloakHQ/CloakBrowser/issues/96)):--**Fetch it** — no Chrome install needed; pulls the CDM from Google's component server (Linux x86-64 only; SHA-256 + CRX3-signature verified). It lands at `~/.cloakbrowser/WidevineCdm`, which the wrapper auto-detects — no env var needed:--```bash-python3 bin/fetch-widevine.py-```--**Or copy it** from an existing Chrome install, next to the binary:--```bash-cp -r /opt/google/chrome/WidevineCdm ~/.cloakbrowser/chromium-<version>/WidevineCdm-```--(In Docker, just pass `-e CLOAKBROWSER_FETCH_WIDEVINE=1` — the entrypoint runs the fetch automatically; see the Docker note below.)--With the CDM in place, `launch_persistent_context()` enables Widevine **on the first launch** — the wrapper auto-writes the CDM hint file into the profile, so you don't need the manual two-launch workaround. This lets you play DRM-protected video (e.g. Netflix, Spotify Web).--```python-from cloakbrowser import launch_persistent_context--# WidevineCdm sideloaded next to the binary -> Widevine works on first launch-ctx = launch_persistent_context("./my-profile", headless=False)-```--- **Linux only.** Chromium's hint-file mechanism is Linux/ChromeOS-specific. On Windows the CDM can't initialise (DRM host verification) and macOS uses a different layout, so seeding is a no-op there.-- **Auto by presence.** No flag needed — a sideloaded CDM is the opt-in. Point at a CDM in a non-default location with `CLOAKBROWSER_WIDEVINE_CDM=/path/to/WidevineCdm`, or disable seeding entirely with `CLOAKBROWSER_WIDEVINE=0`.-- **Docker — auto-fetch (opt-in).** No Chrome to copy from inside the image, so the official image can fetch the CDM for you. Run with `-e CLOAKBROWSER_FETCH_WIDEVINE=1` and it pulls the CDM from Google's component server (the same source Chrome uses) on first launch, caches it at `~/.cloakbrowser/WidevineCdm` in the mounted volume, where the wrapper auto-detects it — for free or Pro binaries, and for `docker exec`'d scripts alike. **Off by default** — no network call unless you opt in — and best-effort, so a failed fetch never blocks launch. The download is signature- and checksum-verified before install. Bare-metal Linux users can run the same fetcher directly: `python3 bin/fetch-widevine.py` (pip-only installs can grab that one self-contained file from the repo).-### CLIPre-download the binary, diagnose your setup, or manage the cache from the command line:@@ -534,36 +488,39 @@ CloakBrowser ships a TypeScript package with full type definitions. Choose Playw```javascriptimport { launch, launchContext, launchPersistentContext } from 'cloakbrowser';-// Basic-const browser = await launch();+// Recommended+const browser = await launch({+ proxy: 'http://user:pass@residential-proxy:port',+ geoip: true, // match timezone + locale to proxy IP+ headless: false,+ humanize: true,+});// Pro — use the latest binary (or set CLOAKBROWSER_LICENSE_KEY env var)-const browser = await launch({ licenseKey: 'cb_xxxxxxxx' });--// With optionsconst browser = await launch({+ licenseKey: 'cb_xxxxxxxx',+ proxy: 'http://user:pass@residential-proxy:port',+ geoip: true,headless: false,- proxy: 'http://user:pass@proxy:8080',- args: ['--fingerprint=12345'],- timezone: 'America/New_York',- locale: 'en-US',humanize: true,});// Convenience: browser + context in one callconst context = await launchContext({- userAgent: 'Custom UA',- viewport: { width: 1920, height: 1080 },- locale: 'en-US',- timezone: 'America/New_York',+ proxy: 'http://user:pass@residential-proxy:port',+ geoip: true,+ headless: false,+ humanize: true,});const page = await context.newPage();-// Persistent profile — cookies/localStorage survive restarts, avoids incognito detection+// Persistent profile — cookies/localStorage survive restartsconst ctx = await launchPersistentContext({userDataDir: './chrome-profile',+ proxy: 'http://user:pass@residential-proxy:port',+ geoip: true,headless: false,- proxy: 'http://user:pass@proxy:8080',+ humanize: true,});```@@ -578,7 +535,12 @@ All Python options work in JS: `stealthArgs: false` to disable defaults, `geoip:```javascriptimport { launch } from 'cloakbrowser/puppeteer';-const browser = await launch({ headless: true });+const browser = await launch({+ proxy: 'http://user:pass@residential-proxy:port',+ geoip: true,+ headless: false,+ humanize: true,+});const page = await browser.newPage();await page.goto('https://example.com');await browser.close();@@ -680,15 +642,12 @@ For an arbitrary expression, `page._stealth_world.evaluate("…")` evaluates it| Env Variable | Default | Description ||---|---|---|-| `CLOAKBROWSER_BINARY_PATH` | — | Skip download, use a local Chromium binary |+| `CLOAKBROWSER_BINARY_PATH` | — | Skip download, use a local Chromium binary. Set `CLOAKBROWSER_VERSION` (or `browser_version=`) to that binary's exact version too, or proxy auth and headless viewport fall back to safe defaults || `CLOAKBROWSER_CACHE_DIR` | `~/.cloakbrowser` | Binary cache directory || `CLOAKBROWSER_DOWNLOAD_URL` | `cloakbrowser.dev` | Custom download URL for binary || `CLOAKBROWSER_AUTO_UPDATE` | `true` | Set to `false` to disable background update checks || `CLOAKBROWSER_SKIP_CHECKSUM` | `false` | Only applies to a custom `CLOAKBROWSER_DOWNLOAD_URL`: set to `true` to skip its checksum check. Signature verification on the official download path is mandatory and cannot be skipped. || `CLOAKBROWSER_GEOIP_TIMEOUT_SECONDS` | `5` | Max seconds for GeoIP resolution before continuing without it |-| `CLOAKBROWSER_WIDEVINE_CDM` | — | Path to a sideloaded `WidevineCdm` directory (overrides auto-detection next to the binary). See [Widevine / DRM](#widevine--drm) |-| `CLOAKBROWSER_WIDEVINE` | `1` | Set to `0` to disable automatic Widevine hint-file seeding for persistent contexts |-| `CLOAKBROWSER_FETCH_WIDEVINE` | `0` | Docker only: set to `1` to auto-fetch the Widevine CDM on container start (Linux x86-64 only). See [Widevine / DRM](#widevine--drm) || `CLOAKBROWSER_VERSION` | — | Pin to an exact Chromium version for rollback (e.g. `154.0.8037.57.1`). Paid Pro key only || `CLOAKBROWSER_RELEASE_CHANNEL` | `stable` | Set to `preview` to opt into the Preview binary channel |@@ -701,21 +660,21 @@ The binary is **stealthy by default** — no flags needed. It auto-generates a r| Scenario | What happens ||----------|-------------|| **No flags** | Random seed auto-generated at startup. GPU, screen, hardware specs, and all noise patches are spoofed automatically. Fresh identity each launch. |-| **`--fingerprint=seed`** | Deterministic identity from the seed. Same seed = same fingerprint across launches. Use this for session persistence (returning visitor). |+| **`--fingerprint=seed`** | Deterministic identity from the seed. Same seed = same fingerprint across launches. For a returning visitor, use a persistent profile instead (it keeps its own seed). || **`--fingerprint=seed` + explicit flags** | Explicit flags override individual auto-generated values. The seed fills in everything else. |-The binary detects its platform at compile time — a macOS binary reports as macOS with Apple GPU, a Linux binary reports as Linux with NVIDIA GPU. The **wrapper** overrides this on Linux by passing `--fingerprint-platform=windows`, so sessions appear as Windows desktops (more common fingerprint, harder to cluster). Use `--fingerprint-platform` for cross-platform spoofing when running the binary directly.+On Linux and Windows the wrapper presents as a **Windows** desktop (more common fingerprint, harder to cluster); on macOS it runs as a native Mac.**macOS persona (a second identity).** Alongside the Windows persona, pass `--fingerprint-platform=macos` to present as a Mac — lined up with real Mac hardware across graphics, media, fonts, text, screen, and device features. Two things to set up: install the Mac fonts (the same way the Windows persona needs Windows fonts — see [Font Setup on Linux](#font-setup-on-linux); a persona without its fonts is a common cause of blocks), and for the most realistic result give it a large display — on a 4K screen it reports at the DPR most real Macs use. Having both the Windows and macOS personas gives you two strong identities to rotate between.-> **Tip: Use a fixed seed when revisiting the same site.** A random seed makes every session look like a different device — which can be suspicious when hitting the same site repeatedly from the same IP. For reCAPTCHA v3 Enterprise and similar scoring systems, a fixed seed produces a consistent fingerprint across sessions, making you look like a returning visitor:+> **Tip: revisiting the same site? Use a persistent profile.** A persistent profile saves its own seed on first launch and reuses it, so you come back as the same device with your cookies and storage intact. No seed flag needed. A fixed `--fingerprint=` with plain `launch()` is the same device with an empty profile every time.>> ```python-> browser = launch(args=["--fingerprint=12345"])+> ctx = launch_persistent_context("./my-profile")> ```>> ```javascript-> const browser = await launch({ args: ['--fingerprint=12345'] });+> const ctx = await launchPersistentContext({ userDataDir: './my-profile' });> ```### Default Fingerprint@@ -729,8 +688,6 @@ Every `launch()` call sets these automatically. The **wrapper** applies platformThe binary auto-generates everything else from the seed: GPU, hardware concurrency, device memory, and screen dimensions. Each seed produces a unique, consistent fingerprint: those values are drawn together as one coherent package. Keep the seed as the source of identity, since changing single values by hand can break that coherence.-> **Using the binary directly?** It works out of the box with zero flags -- the binary auto-spoofs everything. Pass `--fingerprint=seed` for a persistent identity: the seed derives every value as one coherent package.-### Additional FlagsSupported by the binary but **not set by default** — pass via `args` to customize:@@ -738,18 +695,15 @@ Supported by the binary but **not set by default** — pass via `args` to custom| Flag | Controls ||------|----------|| `--fingerprint-gpu-vendor` | **Switch the GPU family** — `NVIDIA` or `Intel`. The binary reports the matching Chrome vendor value, `Google Inc. (NVIDIA)` or `Google Inc. (Intel)`. Auto-generated from seed + platform when unset |-| `--fingerprint-hardware-concurrency` | `navigator.hardwareConcurrency` (auto-generated: `8`) |-| `--fingerprint-device-memory` | `navigator.deviceMemory` in GB (auto-generated: `8`) |-| `--fingerprint-screen-width` | Screen width (auto-generated: `1920` Win/Linux, `1440` macOS) |-| `--fingerprint-screen-height` | Screen height (auto-generated: `1080` Win/Linux, `900` macOS) |-| `--fingerprint-brand` | Browser brand: `Chrome`, `Edge`, `Opera`, `Vivaldi` |-| `--fingerprint-brand-version` | Brand version (UA + Client Hints) |+| `--fingerprint-hardware-concurrency` | `navigator.hardwareConcurrency` (seed-derived when unset) |+| `--fingerprint-device-memory` | `navigator.deviceMemory` in GB (seed-derived when unset) |+| `--fingerprint-screen-width` | Screen width (seed-derived when unset) |+| `--fingerprint-screen-height` | Screen height (seed-derived when unset) || `--fingerprint-platform-version` | Client Hints platform version || `--fingerprint-timezone` | Timezone (e.g. `America/New_York`) || `--fingerprint-locale` | Locale (e.g. `en-US`) |-| `--fingerprint-storage-quota` | Override storage quota in MB — affects `storage.estimate()`, `storageBuckets`, and legacy webkit APIs. Auto-normalized when `--fingerprint` is set |+| `--fingerprint-storage-quota` | Storage headroom in MB, reported on top of current usage — affects `storage.estimate()`, `storageBuckets`, and legacy webkit APIs. Default 10 GiB, like a regular Chrome profile || `--fingerprint-taskbar-height` | Override taskbar height (binary defaults: Win=48, Mac=95, Linux=0) |-| `--fingerprint-windows-font-metrics` | **Chromium 148+ binary only** (no-op on earlier builds). Align font metrics with the Windows platform when spoofing Windows on Linux — used in the [FingerprintJS config](#detected-by-fingerprintjs). Requires Windows fonts installed (see [Font Setup on Linux](#font-setup-on-linux)); no effect without them. On `154.0.8037.57.2` and newer this is on by default when the Windows fonts are installed, so the flag is no longer needed || `--fingerprint-webrtc-ip` | WebRTC ICE candidate IP replacement. Use `auto` to resolve from proxy exit IP (makes an HTTP call through the proxy), or pass an explicit IP. Auto-injected when `geoip=True` || `--fingerprint-noise=false` | Disable noise injection (canvas, WebGL, audio) while keeping the deterministic fingerprint seed active || `--fingerprint=off` | **Chromium 148+ binary only.** Pass-through debug mode — turns spoofing off and presents the machine's **real native fingerprint** (keeps only the baseline any Chrome needs). The binary strips the injected seed *and* `--fingerprint-platform`, so there's no mixed OS profile. Most useful on a genuine Windows machine to check whether an issue is our spoofing or the environment. Accepts `off`/`false`/`0`/`disable`/`disabled`. For a *pure* pass-through don't combine it with `geoip=True` / explicit timezone / locale — those stay applied. |@@ -777,7 +731,7 @@ sudo apt install -y fonts-noto-color-emoji fonts-freefont-ttf fonts-unifont \The Docker image (`cloakhq/cloakbrowser`) ships with these pre-installed. If you run the binary directly on a Linux server or in a custom Docker image, install them manually.-**2. Real Windows fonts — strongly recommended (required for `--fingerprint-windows-font-metrics`).** Since the Linux default persona is Windows, a Windows browser with no Windows fonts is itself a bot tell: font-fingerprinting anti-bot (FingerprintJS) flags the mismatch, and CreepJS font enumeration scores poorly. The apt packages above do **not** provide these — they are Microsoft-proprietary and cannot be installed from a package repo, and `ttf-mscorefonts-installer` only has old XP-era fonts (not enough).+**2. Real Windows fonts — strongly recommended.** Since the Linux default persona is Windows, a Windows browser with no Windows fonts is itself a bot tell: font-fingerprinting anti-bot (FingerprintJS) flags the mismatch, and CreepJS font enumeration scores poorly. The apt packages above do **not** provide these — they are Microsoft-proprietary and cannot be installed from a package repo, and `ttf-mscorefonts-installer` only has old XP-era fonts (not enough).Copy the fonts from a real Windows machine's `C:\Windows\Fonts\` directory. The wrapper keeps warning until it finds all of: **Segoe UI, Segoe UI Light, Calibri, Marlett, MS UI Gothic, Franklin Gothic, Consolas, Courier New** (copying the whole `Fonts` folder covers these and more):@@ -816,7 +770,7 @@ RUN fc-cache -f### Examples```python-# Pin a seed for a persistent identity+# Pin a specific seedbrowser = launch(args=["--fingerprint=42069"])# Full control — disable defaults, set everything yourself@@ -875,15 +829,15 @@ browser = await launch_async(args=["--remote-debugging-port=9242"])| Framework | Stars | Language | Example ||-----------|-------|----------|---------|-| [browser-use](https://github.com/browser-use/browser-use) | 70K | Python | [`browser_use_example.py`](examples/integrations/browser_use_example.py) |-| [Crawl4AI](https://github.com/unclecode/crawl4ai) | 58K | Python | [`crawl4ai_example.py`](examples/integrations/crawl4ai_example.py) |-| [Crawlee](https://github.com/apify/crawlee-python) | 8.6K | Python | [`crawlee_example.py`](examples/integrations/crawlee_example.py) |-| [Scrapling](https://github.com/D4Vinci/Scrapling) | 21K | Python | [`scrapling_example.py`](examples/integrations/scrapling_example.py) |-| [Stagehand](https://github.com/browserbase/stagehand) | 21K | TypeScript | [`stagehand.ts`](js/examples/stagehand.ts) |-| [LangChain](https://github.com/langchain-ai/langchain) | 100K+ | Python | [`langchain_loader.py`](examples/integrations/langchain_loader.py) |+| [browser-use](https://github.com/browser-use/browser-use) | 120K | Python | [`browser_use_example.py`](examples/integrations/browser_use_example.py) |+| [Crawl4AI](https://github.com/unclecode/crawl4ai) | 87K | Python | [`crawl4ai_example.py`](examples/integrations/crawl4ai_example.py) |+| [Crawlee](https://github.com/apify/crawlee-python) | 9.6K | Python | [`crawlee_example.py`](examples/integrations/crawlee_example.py) |+| [Scrapling](https://github.com/D4Vinci/Scrapling) | 91K | Python | [`scrapling_example.py`](examples/integrations/scrapling_example.py) |+| [Stagehand](https://github.com/browserbase/stagehand) | 26K | TypeScript | [`stagehand.ts`](js/examples/stagehand.ts) |+| [LangChain](https://github.com/langchain-ai/langchain) | 149K | Python | [`langchain_loader.py`](examples/integrations/langchain_loader.py) || [Selenium](https://github.com/SeleniumHQ/selenium) | — | Python | [`selenium_example.py`](examples/integrations/selenium_example.py) |-| [undetected-chromedriver](https://github.com/ultrafunkamsterdam/undetected-chromedriver) | 12K | Python | [`undetected_chromedriver.py`](examples/integrations/undetected_chromedriver.py) |-| [agent-browser](https://github.com/nichochar/agent-browser) | — | Shell | [`agent_browser.sh`](examples/integrations/agent_browser.sh) |+| [undetected-chromedriver](https://github.com/ultrafunkamsterdam/undetected-chromedriver) | 13K | Python | [`undetected_chromedriver.py`](examples/integrations/undetected_chromedriver.py) |+| [agent-browser](https://github.com/vercel-labs/agent-browser) | 45K | Shell | [`agent_browser.sh`](examples/integrations/agent_browser.sh) |### Deployment Integrations@@ -936,7 +890,7 @@ docker run --rm -v ./my_script.py:/app/my_script.py cloakhq/cloakbrowser python# With a proxydocker run --rm cloakhq/cloakbrowser python -c "from cloakbrowser import launch-browser = launch(proxy='http://user:pass@proxy:8080')+browser = launch(proxy='http://user:pass@proxy:8080', geoip=True)page = browser.new_page()page.goto('https://example.com')print(page.title())@@ -1042,21 +996,14 @@ services:b1 = pw.chromium.connect_over_cdp("http://localhost:9222?fingerprint=11111")b2 = pw.chromium.connect_over_cdp("http://localhost:9222?fingerprint=22222")-# Full identity control via query params+# Auto-detect timezone/locale from proxy exit IPb3 = pw.chromium.connect_over_cdp("http://localhost:9222?fingerprint=33333"- "&timezone=Asia/Tokyo&locale=ja-JP&platform=macos"- "&hardware-concurrency=4&device-memory=8"-)--# Auto-detect timezone/locale from proxy exit IP-b4 = pw.chromium.connect_over_cdp(- "http://localhost:9222?fingerprint=44444""&proxy=http://proxy:8080&geoip=true")```-Supported query params: `fingerprint`, `timezone`, `locale`, `platform`, `platform-version`, `brand`, `brand-version`, `gpu-vendor`, `hardware-concurrency`, `device-memory`, `screen-width`, `screen-height`, `proxy`, `geoip`. Same seed reuses the same process (first connection's params win). No seed = shared default process (backward compatible).+Supported query params: `fingerprint`, `timezone`, `locale`, `platform`, `platform-version`, `gpu-vendor`, `hardware-concurrency`, `device-memory`, `screen-width`, `screen-height`, `proxy`, `geoip`. Same seed reuses the same process (first connection's params win). No seed = shared default process (backward compatible).By default, per-seed processes stay alive until `cloakserve` exits; idle cleanup is disabled (`0`). If clients create many unique seeds, set `--idle-timeout=SECONDS` or `CLOAKSERVE_IDLE_TIMEOUT=SECONDS` to automatically terminate a seed's Chrome process after its last CDP WebSocket disconnects. `0`, `off`, `false`, `none`, or `disabled` disable idle cleanup. When cleanup runs, the seed's temporary profile directory under `--data-dir` is removed too. Check active processes at `GET /` (returns JSON with PIDs, ports, connection counts, idle timeout, and pending cleanup status).@@ -1074,8 +1021,6 @@ ctx.close()Run again with the same volume — cookies, localStorage, and cache are restored automatically.-To enable Widevine DRM (Netflix, Spotify Web, etc.) in a persistent profile, add `-e CLOAKBROWSER_FETCH_WIDEVINE=1` to auto-fetch the CDM on first launch (see [Widevine / DRM](#widevine--drm)); it caches in the mounted volume.-**Resource usage:** ~190MB RAM idle, ~280MB with 3 tabs. ~30MB per additional tab.### Extend with your own image@@ -1122,17 +1067,7 @@ Xvfb :99 -screen 0 1920x1080x24 &export DISPLAY=:99```-```python-from cloakbrowser import launch--# Headed mode + residential proxy for maximum stealth-browser = launch(headless=False, proxy="http://your-residential-proxy:port")-page = browser.new_page()-page.goto("https://heavily-protected-site.com") # passes DataDome, etc.-browser.close()-```--This runs a real headed browser rendered on a virtual display — no physical monitor needed. Combine with the recommended config below for maximum stealth.+This runs a real headed browser rendered on a virtual display — no physical monitor needed. Then launch with `headless=False` using the recommended config below.---@@ -1168,49 +1103,6 @@ If you're still blocked after this, check the font setup below.----### Detected by FingerprintJS?--FingerprintJS (`demo.fingerprint.com/playground`) checks multiple signals. Each detection has a specific cause:--| Detection | Cause | Fix |-|-----------|-------|-----|-| **`nodriver` / bad bot** | Stale binary/wrapper, missing current FPJS patches, or poor proxy IP reputation | Upgrade to the latest Pro binary for your platform, use a residential proxy with `geoip=True`, and use the config below. |-| **Browser tampering** | Noise injection detected by ML | `--fingerprint-noise=false` |-| **Browser tampering** (fonts) | Font metrics don't match the spoofed Windows platform | `--fingerprint-windows-font-metrics` (Chromium 148+ binary; requires [Windows fonts installed](#font-setup-on-linux)) |-| **Virtual machine** | Screen dimensions don't match viewport | `--fingerprint-screen-width/height` matching viewport |--Config that passes FPJS on the latest binary (Linux, residential proxy):--```python-browser = launch(- headless=False,- proxy="http://user:pass@residential-proxy:port",- geoip=True,- args=[- "--fingerprint-noise=false", # prevents tampering detection- "--fingerprint-windows-font-metrics", # align font metrics — 148+ binary, needs Windows fonts- ],-)-```--```javascript-const browser = await launch({- headless: false,- proxy: 'http://user:pass@residential-proxy:port',- geoip: true,- args: [- '--fingerprint-noise=false',- '--fingerprint-windows-font-metrics', // align font metrics — 148+ binary, needs Windows fonts- ],-});-```--Requires a **Chromium 148+ binary** and **Windows fonts** installed (see [Font Setup on Linux](#font-setup-on-linux)); run with a **residential proxy** and `geoip=True`.--**Persistent contexts** (`launch_persistent_context` / `launchPersistentContext`) use the same FPJS config on the latest Pro binary. Use a real `userDataDir`. Storage-quota tuning is unrelated to FingerprintJS here; it only affects detectors that infer incognito from quota, such as BrowserScan (see [storage quota](#launch_persistent_context)). For DRM/media playback, see [Widevine / DRM](#widevine--drm).------### Blocked on Kasada / Akamai sites despite correct config?On minimal Linux environments, missing font packages cause canvas emoji rendering to produce hashes that anti-bot systems don't recognize. This is the most common cause of blocks on aggressive sites after proxy, geoip, and headed mode are already set up correctly.@@ -1313,20 +1205,21 @@ const browser = await launch({ licenseKey: 'cb_xxxxxxxx', browserVersion: '154.0The pin is never sticky — unpinned launches always use the latest available version.-**Or downgrade the wrapper** (each wrapper release hardcodes which binary version it downloads):+**Or downgrade the wrapper** (if a new wrapper release broke something). With a license key you still get the latest binary; pin it as above to roll that back too:```bash-pip install cloakbrowser==0.3.21 # Python-npm install [email protected] # JavaScript-docker pull cloakhq/cloakbrowser:0.3.21 # Docker+pip install cloakbrowser==0.6.3 # Python+npm install [email protected] # JavaScript+docker pull cloakhq/cloakbrowser:0.6.3 # Docker```----Set a custom download URL or use a local binary:+Use a local binary:```bashexport CLOAKBROWSER_BINARY_PATH=/path/to/your/chrome+export CLOAKBROWSER_VERSION=155.0.8059.39.2 # that binary's exact version```### macOS: "App is damaged" or Gatekeeper blocks launch@@ -1349,9 +1242,9 @@ playwright install-deps chromium----### Site detects incognito / private browsing mode+### Sites challenge every visit-By default, `launch()` opens an incognito context. Some sites penalize this. Use `launch_persistent_context()` to get a real profile with cookie persistence:+`launch()` starts with an empty profile each time, so every visit looks like a new visitor. Use `launch_persistent_context()` so cookies and storage carry over and you come back as a returning visitor:```pythonfrom cloakbrowser import launch_persistent_context@@ -1359,8 +1252,6 @@ from cloakbrowser import launch_persistent_contextctx = launch_persistent_context("./my-profile", headless=False)```-If the site still flags incognito, raise the storage quota to appear as a regular browsing session. See the [storage quota tradeoff](#launch_persistent_context) for details on how this affects different detection services.----### reCAPTCHA v3 scores are low (0.1–0.3)@@ -1390,7 +1281,6 @@ Other tips for maximizing reCAPTCHA scores:- **Use residential proxies** — datacenter IPs are flagged by IP reputation, not browser fingerprint- **Spend 15+ seconds on the page** before triggering reCAPTCHA — short visits score lower- **Space out requests** — back-to-back `grecaptcha.execute()` calls from the same session get penalized. Wait 30+ seconds between pages with reCAPTCHA-- **Use a fixed fingerprint seed** for consistent device identity across sessions (see [Fingerprint Management](#fingerprint-management))- **Use `page.type()` instead of `page.fill()`** for form filling — `fill()` sets values directly without keyboard events, which reCAPTCHA's behavioral analysis flags. `type()` with a delay simulates real keystrokes:```python@@ -1410,9 +1300,6 @@ A: Yes. The wrappers (Python, JS, .NET) are MIT and free forever. For the binary**Q: Do I need a license key for the free version?**A: For the latest build, a free key from a GitHub sign-in (`cloakbrowser login`, or [cloakbrowser.dev/free](https://cloakbrowser.dev/free)) gives you one concurrent session, and a paid key raises the limit. The older v146 build runs with no key.-**Q: How is this different from Camoufox?**-A: Camoufox patches Firefox. We patch Chromium. Chromium means native Playwright support, larger ecosystem, and TLS fingerprints that match real Chrome. Camoufox returned in early 2026 but is in unstable beta — CloakBrowser is production-ready.-**Q: Will detection sites eventually catch this?**A: Possibly. Bot detection is an arms race. Source-level patches are harder to detect than config-level patches, but not impossible. We actively monitor and update when detection evolves.@@ -1454,7 +1341,7 @@ cosign verify \- **Wrapper code** (this repository) — MIT. See [LICENSE](https://github.com/CloakHQ/CloakBrowser/blob/main/LICENSE).- **CloakBrowser binary** (compiled Chromium):- **v146 and earlier** — free for personal and commercial use, no redistribution (OEM/SaaS license required to serve third parties).- - **v148 and later** — requires an active [CloakBrowser Pro](https://cloakbrowser.dev) subscription to download.+ - **v148 and later** — requires a license key: free with a GitHub sign-in (one concurrent session), or a paid [CloakBrowser Pro](https://cloakbrowser.dev) subscription.- See [BINARY-LICENSE.md](https://github.com/CloakHQ/CloakBrowser/blob/main/BINARY-LICENSE.md) for full terms.## Contributingdiff --git a/cloakbrowser/browser.py b/cloakbrowser/browser.pyindex dbd6b16..28cdc15 100644--- a/cloakbrowser/browser.py+++ b/cloakbrowser/browser.py@@ -1459,18 +1459,6 @@ def build_args(logger.debug("Arg override: %s -> %s", seen[key], arg)seen[key] = arg- # Playwright's default launch args switch off a browser feature that stock Chrome- # ships enabled. Re-enable it alongside the Windows font-metrics profile so the- # feature set matches a stock browser rather than a test harness. Merged into any- # existing --enable-features value rather than added as a second flag.- if "--fingerprint-windows-font-metrics" in seen:- key = "--enable-features"- current = seen[key].split("=", 1)[-1] if key in seen else ""- features = [f for f in current.split(",") if f]- if "MediaRouter" not in features:- features.append("MediaRouter")- seen[key] = f"{key}={','.join(features)}"-# Timezone/locale flags are independent of stealth_args — always inject when setif timezone:key = "--fingerprint-timezone"diff --git a/dotnet/README.md b/dotnet/README.mdindex 4df3c6c..94a3ac8 100644--- a/dotnet/README.md+++ b/dotnet/README.md@@ -6,7 +6,7 @@ Chromium that passes bot-detection tests, built on top of[`Microsoft.Playwright`](https://playwright.dev/dotnet/).CloakBrowser is a thin wrapper around a closed-source, source-level patched-Chromium binary (71 C++ fingerprint patches). This port reproduces **all** of the+Chromium binary (87 C++ fingerprint patches). This port reproduces **all** of thewrapper functionality with identical behavior - same launch flags, same proxy /GeoIP / WebRTC logic, and a humanize layer whose curves, timings, and stealthpaths match the Python and JavaScript clients exactly.@@ -75,7 +75,6 @@ your code ──> HumanizedPage ──┬─ intercepted member ─> humanize en| **Proxy** - HTTP/HTTPS + SOCKS5, inline URL-encoded credentials | ✅ | `ProxyResolver.cs` || **GeoIP** timezone/locale from proxy exit IP (MaxMind GeoLite2) | ✅ | `GeoIp.cs` || **WebRTC** IP spoofing (`--fingerprint-webrtc-ip=auto`) | ✅ | `CloakLauncher.cs` |-| **Widevine** CDM hint seeding (Linux) | ✅ | `Widevine.cs` || **Persistent contexts** (profile reuse) | ✅ | `CloakLauncher.cs` || **Humanize** - Bezier mouse, human typing, scrolling, actionability | ✅ | `Human/`, `Wrappers/` || Transparent humanize via **source generator** | ✅ | `CloakBrowser.Generators/` |@@ -88,7 +87,7 @@ your code ──> HumanizedPage ──┬─ intercepted member ─> humanize en| Dependency | Version | Why || --- | --- | --- || .NET SDK | **8.0** | target framework `net8.0` |-| `Microsoft.Playwright` | **1.49.0** | underlying browser automation |+| `Microsoft.Playwright` | **1.64.1** | underlying browser automation || `MaxMind.GeoIP2` | **5.2.0** | GeoIP timezone/locale resolution |---@@ -114,7 +113,6 @@ dotnet/│ │ ├── Config.cs # <- cloakbrowser/config.py│ │ ├── Download.cs # <- cloakbrowser/download.py (+ zip-slip guard)│ │ ├── GeoIp.cs # <- cloakbrowser/geoip.py-│ │ ├── Widevine.cs # <- cloakbrowser/widevine.py│ │ ├── CloakLauncher.cs # <- cloakbrowser/browser.py (launch funcs, build_args)│ │ ├── ProxyResolver.cs # <- cloakbrowser/browser.py (proxy URL helpers)│ │ ├── ProxySettings.cs # <- ProxySettings TypedDict@@ -164,7 +162,10 @@ using CloakBrowser;await using var browser = await CloakLauncher.LaunchAsync(new LaunchOptions{- Headless = true,+ Proxy = "http://user:pass@residential-proxy:port",+ GeoIp = true, // match timezone + locale to proxy IP+ Headless = false,+ Humanize = true,});var page = await browser.NewPageAsync();@@ -318,24 +319,20 @@ All entry points live on the static `CloakLauncher` class and return an| `LaunchPersistentContextAsync(userDataDir, LaunchContextOptions)` | `CloakContextHandle` | reuse a profile directory (cookies/localStorage persist) |```csharp-// emulated context+// browser + context in one callawait using var ctx = await CloakLauncher.LaunchContextAsync(new LaunchContextOptions{- Locale = "en-US",- Timezone = "America/New_York",- Viewport = (1280, 800),- ColorScheme = "dark",+ Proxy = "http://user:pass@residential-proxy:port",+ GeoIp = true,+ Headless = false,+ Humanize = true,});var page = await ctx.NewPageAsync();```-> Locale and timezone are applied via **binary flags** (`--lang`,-> `--fingerprint-locale`, `--fingerprint-timezone`) - *not* detectable CDP-> emulation - matching the Python wrapper.-```csharp// persistent profile - cookies / localStorage survive across runs, so the-// browser looks like a returning user instead of a fresh incognito session+// browser looks like a returning user instead of a new visitorawait using var ctx = await CloakLauncher.LaunchPersistentContextAsync("./profile",new LaunchContextOptions { Headless = false });var page = await ctx.NewPageAsync();@@ -369,7 +366,7 @@ var page = await ctx.NewPageAsync();The wrappers are MIT, free forever. The latest binary is **free to try**:-- **Free, latest build (Chromium 155)** — the newest binary. Free with a GitHub sign-in, one concurrent session. Run `cloakbrowser login` or [grab your key](https://cloakbrowser.dev/free).+- **Free, latest build (Chromium 156)** — the newest binary. Free with a GitHub sign-in, one concurrent session. Run `cloakbrowser login` or [grab your key](https://cloakbrowser.dev/free).- **Pro** — scale to **5, 20, 200, 2,000, or more concurrent sessions**, always first on the newest patches, with hands-on support. Linux, Windows, macOS. **[See plans and pricing →](https://cloakbrowser.dev)**- **v146** — the older build stays free on [GitHub Releases](https://github.com/CloakHQ/cloakbrowser/releases). A quick first look, but it ages fast as detection evolves.@@ -421,6 +418,12 @@ await using var browser = await CloakLauncher.LaunchAsync(new LaunchOptionsThe pin is **never sticky** — unpinned launches always use the latest available version.You can also set it globally via the `CLOAKBROWSER_VERSION` env var (see [Environment variables](#environment-variables)).+Or downgrade the wrapper (if a new wrapper release broke something). With a license key you still get the latest binary; pin it as above to roll that back too:++```bash+dotnet add package CloakBrowser --version 0.6.3+```+---## `HumanConfig` reference@@ -575,9 +578,10 @@ programmatic value is acceptable.```csharpawait using var browser = await CloakLauncher.LaunchAsync(new LaunchOptions{- Proxy = "http://user:[email protected]:8080", // or a ProxySettings- GeoIp = true, // tz/locale from exit IP- Args = new List<string> { "--fingerprint-webrtc-ip=auto" },+ Proxy = "http://user:[email protected]:8080", // or a ProxySettings+ GeoIp = true, // tz/locale from exit IP; WebRTC spoofing added automatically+ Headless = false,+ Humanize = true,});```@@ -618,7 +622,7 @@ Same set as the Python wrapper:| Variable | Purpose || --- | --- |-| `CLOAKBROWSER_BINARY_PATH` | Use a local binary, skip download |+| `CLOAKBROWSER_BINARY_PATH` | Use a local binary, skip download. Set `CLOAKBROWSER_VERSION` (or `BrowserVersion`) to that binary's exact version too, or proxy auth and headless viewport fall back to safe defaults || `CLOAKBROWSER_CACHE_DIR` | Override the cache directory || `CLOAKBROWSER_DOWNLOAD_URL` | Override the download URL || `CLOAKBROWSER_AUTO_UPDATE` | Enable/disable background auto-update |@@ -626,7 +630,6 @@ Same set as the Python wrapper:| `CLOAKBROWSER_VERSION` | Pin to an exact Chromium version for rollback (e.g. `154.0.8037.57.1`). Paid Pro key only || `CLOAKBROWSER_RELEASE_CHANNEL` | Set to `preview` to opt into the Pro Preview binary channel (default: `stable`) || `CLOAKBROWSER_GEOIP_TIMEOUT_SECONDS` | GeoIP HTTP timeout |-| `CLOAKBROWSER_WIDEVINE_CDM` / `CLOAKBROWSER_WIDEVINE` | Widevine seeding control |---@@ -678,7 +681,6 @@ classes share one serial xunit collection (`RealBrowser`).| `Config.cs` | `cloakbrowser/config.py` || `Download.cs` | `cloakbrowser/download.py` || `GeoIp.cs` | `cloakbrowser/geoip.py` |-| `Widevine.cs` | `cloakbrowser/widevine.py` || `CloakLauncher.cs` / `ProxyResolver.cs` | `cloakbrowser/browser.py` || `Human/HumanConfig.cs` | `cloakbrowser/human/config.py` || `Human/HumanMouse.cs` | `cloakbrowser/human/mouse.py` |@@ -694,4 +696,5 @@ classes share one serial xunit collection (`RealBrowser`).## License-MIT - same as the upstream CloakBrowser project.+- **Wrapper code** — MIT, same as the upstream CloakBrowser project.+- **CloakBrowser binary** (compiled Chromium) — no redistribution. v146 and earlier: free, no key. v148 and later: requires a license key, free with a GitHub sign-in (one concurrent session) or a paid [CloakBrowser Pro](https://cloakbrowser.dev) subscription. See [BINARY-LICENSE.md](https://github.com/CloakHQ/CloakBrowser/blob/main/BINARY-LICENSE.md).diff --git a/dotnet/src/CloakBrowser/CloakLauncher.cs b/dotnet/src/CloakBrowser/CloakLauncher.csindex c0fb446..0e009e8 100644--- a/dotnet/src/CloakBrowser/CloakLauncher.cs+++ b/dotnet/src/CloakBrowser/CloakLauncher.cs@@ -401,24 +401,6 @@ public static class CloakLauncherSet(arg.Split('=', 2)[0], arg);}- // Playwright's default launch args switch off a browser feature that stock Chrome- // ships enabled. Re-enable it alongside the Windows font-metrics profile so the- // feature set matches a stock browser rather than a test harness. Merged into any- // existing --enable-features value rather than added as a second flag.- if (seen.ContainsKey("--fingerprint-windows-font-metrics"))- {- const string key = "--enable-features";- var current = seen.TryGetValue(key, out var existing)- ? existing.Split('=', 2).ElementAtOrDefault(1) ?? ""- : "";- var features = current.Split(',', StringSplitOptions.RemoveEmptyEntries).ToList();- if (!features.Contains("MediaRouter"))- {- features.Add("MediaRouter");- Set(key, $"{key}={string.Join(",", features)}");- }- }-if (!string.IsNullOrEmpty(timezone))Set("--fingerprint-timezone", $"--fingerprint-timezone={timezone}");diff --git a/examples/fingerprint_scan_test.py b/examples/fingerprint_scan_test.pyindex 472dc99..261de90 100644--- a/examples/fingerprint_scan_test.py+++ b/examples/fingerprint_scan_test.py@@ -8,7 +8,7 @@ Tests the specific headless detection signals flagged by the community:Usage:python examples/fingerprint_scan_test.py- python examples/fingerprint_scan_test.py --proxy http://10.50.96.5:8888+ python examples/fingerprint_scan_test.py --proxy http://user:pass@proxy:portpython examples/fingerprint_scan_test.py --headless"""diff --git a/examples/stealth_test.py b/examples/stealth_test.pyindex bf9d26e..b6971f1 100644--- a/examples/stealth_test.py+++ b/examples/stealth_test.py@@ -7,7 +7,7 @@ Usage:python examples/stealth_test.pypython examples/stealth_test.py --headed # watch in real-timepython examples/stealth_test.py --no-screenshots- python examples/stealth_test.py --proxy http://10.50.96.5:8888+ python examples/stealth_test.py --proxy http://user:pass@proxy:port"""import sysdiff --git a/js/README.md b/js/README.mdindex 0592e98..a7f6225 100644--- a/js/README.md+++ b/js/README.md@@ -15,7 +15,7 @@ Drop-in Playwright/Puppeteer replacement. Same API, same code — just swap the- **0.9 reCAPTCHA v3 score** — human-level, server-verified- **Passes Cloudflare Turnstile**, FingerprintJS, BrowserScan — tested against 50+ detection sites- **`npm install cloakbrowser`** — binary auto-downloads, auto-updates, zero config-- **Free and open source** — no subscriptions, no usage limits+- **Latest binary, free to try** — [sign in with GitHub](https://cloakbrowser.dev/free) for a free key, scale to thousands of sessions on Pro- **Works with any framework** — tested with browser-use, Crawl4AI, Scrapling, Stagehand ([example](examples/stagehand.ts)), LangChain, Selenium, and more## Install@@ -55,7 +55,7 @@ const browser = await launch({});```-See the [main README](https://github.com/CloakHQ/CloakBrowser#troubleshooting) for site-specific troubleshooting (FingerprintJS, Kasada, reCAPTCHA).+See the [main README](https://github.com/CloakHQ/CloakBrowser#troubleshooting) for site-specific troubleshooting (Kasada, Akamai, reCAPTCHA).### Puppeteer@@ -64,7 +64,12 @@ See the [main README](https://github.com/CloakHQ/CloakBrowser#troubleshooting) f```javascriptimport { launch } from 'cloakbrowser/puppeteer';-const browser = await launch();+const browser = await launch({+ proxy: 'http://user:pass@residential-proxy:port',+ geoip: true,+ headless: false,+ humanize: true,+});const page = await browser.newPage();await page.goto('https://example.com');console.log(await page.title());@@ -98,13 +103,7 @@ const browser = await launch({ headless: false });// Extra Chrome argsconst browser = await launch({- args: ['--fingerprint=12345'],-});--// With timezone and locale-const browser = await launch({- timezone: 'America/New_York',- locale: 'en-US',+ args: ['--disable-gpu'],});// Pin an exact Chromium version (paid Pro key only)@@ -122,15 +121,15 @@ const browser = await launch({geoip: true,});-// Browser + context in one call (timezone/locale set via binary flags)+// Browser + context in one callconst context = await launchContext({- userAgent: 'Custom UA',- viewport: { width: 1920, height: 1080 },- locale: 'en-US',- timezone: 'America/New_York',+ proxy: 'http://user:pass@residential-proxy:port',+ geoip: true,+ headless: false,+ humanize: true,});-// Persistent profile — stay logged in, bypass incognito detection, load extensions+// Persistent profile — stay logged in, load extensionsconst ctx = await launchPersistentContext({userDataDir: './chrome-profile',headless: false,@@ -155,13 +154,8 @@ const browser = await launch({ proxy: 'http://proxy:8080', geoip: true });// Works with launchContext tooconst context = await launchContext({ proxy: 'http://proxy:8080', geoip: true });--// Explicit values always win over auto-detection-const browser = await launch({ proxy: 'http://proxy:8080', geoip: true, timezone: 'Europe/London' });```-> **Note:** For rotating residential proxies, the DNS-resolved IP may differ from the exit IP. Pass explicit `timezone`/`locale` in those cases.-### CLIPre-download the binary or check installation status from the command line:@@ -214,26 +208,14 @@ if (newVersion) console.log(`Updated to ${newVersion}`);| Env Variable | Default | Description ||---|---|---|-| `CLOAKBROWSER_BINARY_PATH` | — | Skip download, use a local Chromium binary |+| `CLOAKBROWSER_BINARY_PATH` | — | Skip download, use a local Chromium binary. Set `CLOAKBROWSER_VERSION` (or `browserVersion`) to that binary's exact version too, or proxy auth and headless viewport fall back to safe defaults || `CLOAKBROWSER_CACHE_DIR` | `~/.cloakbrowser` | Binary cache directory || `CLOAKBROWSER_DOWNLOAD_URL` | `cloakbrowser.dev` | Custom download URL || `CLOAKBROWSER_AUTO_UPDATE` | `true` | Set to `false` to disable background update checks || `CLOAKBROWSER_SKIP_CHECKSUM` | `false` | Set to `true` to skip SHA-256 verification after download |-| `CLOAKBROWSER_WIDEVINE_CDM` | — | Path to a sideloaded `WidevineCdm` directory (overrides auto-detection next to the binary) |-| `CLOAKBROWSER_WIDEVINE` | `1` | Set to `0` to disable automatic Widevine hint-file seeding for persistent contexts || `CLOAKBROWSER_VERSION` | — | Pin to an exact Chromium version for rollback (e.g. `154.0.8037.57.1`). Paid Pro key only || `CLOAKBROWSER_RELEASE_CHANNEL` | `stable` | Set to `preview` to opt into the Pro Preview binary channel |-### Widevine / DRM--The binary supports Widevine, but the CDM is proprietary and can't be redistributed. Sideload it once by copying a `WidevineCdm/` directory from a real Chrome install next to the binary (full steps in [#96](https://github.com/CloakHQ/CloakBrowser/issues/96)):--```bash-cp -r /opt/google/chrome/WidevineCdm ~/.cloakbrowser/chromium-<version>/WidevineCdm-```--With the CDM in place, `launchPersistentContext()` enables Widevine on the **first** launch — the wrapper auto-seeds the CDM hint file into the profile. This plays DRM-protected video (Netflix, Spotify Web) and makes a persistent profile present as a regular Chrome install to detection services that probe for DRM/EME support. **Linux only.** A sideloaded CDM is the opt-in (no flag); set `CLOAKBROWSER_WIDEVINE_CDM` for a custom path or `CLOAKBROWSER_WIDEVINE=0` to disable. See the [main README](https://github.com/CloakHQ/CloakBrowser#widevine--drm) for details.-## Migrate From Playwright```diff@@ -262,7 +244,7 @@ The wrappers (Python, JS, .NET) are MIT, free forever. The latest binary is **frAnti-bot systems change every week and an older binary quietly degrades. The latest build is the one that keeps passing. **Try it free, then upgrade when you're running for real.**-- **Free, latest build (Chromium 155)** — the newest binary, the exact one that stays [green against live detection](#test-results). Free with a GitHub sign-in, one concurrent session. [Grab your key](https://cloakbrowser.dev/free) or run `cloakbrowser login`, then point it at the site that's been blocking you.+- **Free, latest build (Chromium 156)** — the newest binary, the exact one that stays [green against live detection](#test-results). Free with a GitHub sign-in, one concurrent session. [Grab your key](https://cloakbrowser.dev/free) or run `cloakbrowser login`, then point it at the site that's been blocking you.- **Pro** — when it's part of production scraping, QA, monitoring, or automation: scale to **5, 20, 200, 2,000, or more concurrent sessions**, always first on the newest patches, with hands-on support. Linux, Windows, macOS. **[See plans and pricing →](https://cloakbrowser.dev)**- **v146** — the older build stays free on [GitHub Releases](https://github.com/CloakHQ/cloakbrowser/releases). A quick first look, but it ages fast as detection evolves.@@ -283,9 +265,9 @@ Try the latest free → **[cloakbrowser.dev/free](https://cloakbrowser.dev/free)## Troubleshooting-**Site detects incognito / private browsing mode**+**Sites challenge every visit**-By default, `launch()` opens an incognito context. Some sites (like BrowserScan) detect this. Use `launchPersistentContext()` instead — it runs with a real user profile:+`launch()` starts with an empty profile each time, so every visit looks like a new visitor. Use `launchPersistentContext()` so cookies and storage carry over and you come back as a returning visitor:```javascriptimport { launchPersistentContext } from 'cloakbrowser';@@ -323,7 +305,6 @@ Other tips for maximizing reCAPTCHA scores:- **Use residential proxies** — datacenter IPs are flagged by IP reputation, not browser fingerprint- **Spend 15+ seconds on the page** before triggering reCAPTCHA — short visits score lower- **Space out requests** — back-to-back `grecaptcha.execute()` calls from the same session get penalized. Wait 30+ seconds between pages with reCAPTCHA-- **Use a fixed fingerprint seed** (`--fingerprint=12345`) for consistent device identity across sessions- **Use `page.type()` instead of `page.fill()`** for form filling — `fill()` sets values directly without keyboard events, which reCAPTCHA's behavioral analysis flags. `type()` with a delay simulates real keystrokes:```javascript@@ -359,17 +340,10 @@ const browser = await launch({ licenseKey: 'cb_xxxxxxxx', browserVersion: '154.0The pin is never sticky — unpinned launches always use the latest available version.-Or point directly to a cached older binary on disk:+Or downgrade the wrapper (if a new wrapper release broke something). With a license key you still get the latest binary; pin it as above to roll that back too:```bash-# Linux-export CLOAKBROWSER_BINARY_PATH=~/.cloakbrowser/chromium-146.0.7680.177.4/chrome--# macOS-export CLOAKBROWSER_BINARY_PATH=~/.cloakbrowser/chromium-145.0.7632.109.2/Chromium.app/Contents/MacOS/Chromium--# Windows-set CLOAKBROWSER_BINARY_PATH=%USERPROFILE%\.cloakbrowser\chromium-146.0.7680.177.4\chrome.exe+npm install [email protected]```## Links@@ -383,6 +357,6 @@ set CLOAKBROWSER_BINARY_PATH=%USERPROFILE%\.cloakbrowser\chromium-146.0.7680.177## License- **Wrapper code** (this repository) — MIT. See [LICENSE](https://github.com/CloakHQ/CloakBrowser/blob/main/LICENSE).-- **CloakBrowser binary** (compiled Chromium) — free to use, no redistribution. See [BINARY-LICENSE.md](https://github.com/CloakHQ/CloakBrowser/blob/main/BINARY-LICENSE.md).+- **CloakBrowser binary** (compiled Chromium) — no redistribution. v146 and earlier: free, no key. v148 and later: requires a license key, free with a GitHub sign-in (one concurrent session) or a paid [CloakBrowser Pro](https://cloakbrowser.dev) subscription. See [BINARY-LICENSE.md](https://github.com/CloakHQ/CloakBrowser/blob/main/BINARY-LICENSE.md).Use against financial, banking, healthcare, or government authentication systems without authorization is expressly prohibited.diff --git a/js/examples/stealth-test.ts b/js/examples/stealth-test.tsindex 00359ca..a5b28a0 100644--- a/js/examples/stealth-test.ts+++ b/js/examples/stealth-test.ts@@ -4,7 +4,7 @@** Usage:* CLOAKBROWSER_BINARY_PATH=/path/to/chrome npx tsx examples/stealth-test.ts- * CLOAKBROWSER_BINARY_PATH=/path/to/chrome npx tsx examples/stealth-test.ts --proxy http://10.50.96.5:8888+ * CLOAKBROWSER_BINARY_PATH=/path/to/chrome npx tsx examples/stealth-test.ts --proxy http://user:pass@proxy:port*/import { launch } from "../src/index.js";diff --git a/js/src/args.ts b/js/src/args.tsindex da769a5..a803ee0 100644--- a/js/src/args.ts+++ b/js/src/args.ts@@ -38,20 +38,6 @@ export function buildArgs(options: LaunchOptions): string[] {seen.set(key, arg);}}- // Playwright's default launch args switch off a browser feature that stock Chrome- // ships enabled. Re-enable it alongside the Windows font-metrics profile so the- // feature set matches a stock browser rather than a test harness. Merged into any- // existing --enable-features value rather than added as a second flag.- if (seen.has("--fingerprint-windows-font-metrics")) {- const key = "--enable-features";- const current = seen.get(key)?.split("=")[1] ?? "";- const features = current.split(",").filter(Boolean);- if (!features.includes("MediaRouter")) {- features.push("MediaRouter");- seen.set(key, `${key}=${features.join(",")}`);- }- }-if (options.timezone) {const key = "--fingerprint-timezone";const flag = `${key}=${options.timezone}`;diff --git a/js/tests/geoip.test.ts b/js/tests/geoip.test.tsindex 7529e29..cc7942d 100644--- a/js/tests/geoip.test.ts+++ b/js/tests/geoip.test.ts@@ -23,12 +23,12 @@ afterEach(() => {describe("resolveProxyIp", () => {it("returns literal IPv4 from proxy URL", async () => {- expect(await resolveProxyIp("http://10.50.96.5:8888")).toBe("10.50.96.5");+ expect(await resolveProxyIp("http://10.0.0.5:8888")).toBe("10.0.0.5");});it("handles proxy URL with credentials", async () => {- expect(await resolveProxyIp("http://user:[email protected]:8888")).toBe(- "10.50.96.5"+ expect(await resolveProxyIp("http://user:[email protected]:8888")).toBe(+ "10.0.0.5");});@@ -48,13 +48,13 @@ describe("resolveProxyIp", () => {it("returns null for schemeless proxy (shows why normalization is needed)", async () => {// no scheme — new URL() gives empty hostname for both bare formats- expect(await resolveProxyIp("user:[email protected]:8888")).toBeNull();- expect(await resolveProxyIp("10.50.96.5:8888")).toBeNull();+ expect(await resolveProxyIp("user:[email protected]:8888")).toBeNull();+ expect(await resolveProxyIp("10.0.0.5:8888")).toBeNull();});it("extracts IP after normalization (http:// prepended by maybeResolveGeoip)", async () => {- expect(await resolveProxyIp("http://user:[email protected]:8888")).toBe("10.50.96.5");- expect(await resolveProxyIp("http://10.50.96.5:8888")).toBe("10.50.96.5");+ expect(await resolveProxyIp("http://user:[email protected]:8888")).toBe("10.0.0.5");+ expect(await resolveProxyIp("http://10.0.0.5:8888")).toBe("10.0.0.5");});});diff --git a/tests/test_geoip.py b/tests/test_geoip.pyindex 2cee178..9d3b8f1 100644--- a/tests/test_geoip.py+++ b/tests/test_geoip.py@@ -22,11 +22,11 @@ from cloakbrowser.geoip import (def test_resolve_literal_ipv4():- assert _resolve_proxy_ip("http://10.50.96.5:8888") == "10.50.96.5"+ assert _resolve_proxy_ip("http://10.0.0.5:8888") == "10.0.0.5"def test_resolve_literal_ipv4_with_auth():- assert _resolve_proxy_ip("http://user:[email protected]:8888") == "10.50.96.5"+ assert _resolve_proxy_ip("http://user:[email protected]:8888") == "10.0.0.5"def test_resolve_literal_ipv6():@@ -71,7 +71,7 @@ def test_resolve_geo_seychelles_exit_gets_locale():with patch("cloakbrowser.geoip._ensure_geoip_db", return_value=object()):with patch("cloakbrowser.geoip._resolve_exit_ip", return_value="178.20.213.254"):from cloakbrowser.geoip import resolve_proxy_geo_with_ip- assert resolve_proxy_geo_with_ip("http://10.50.96.5:8888") == (+ assert resolve_proxy_geo_with_ip("http://10.0.0.5:8888") == ("Indian/Mahe", "en-SC", "178.20.213.254",)@@ -101,7 +101,7 @@ def test_resolve_geo_raises_when_geoip2_missing():import cloakbrowser.geoip as geoip_modreload(geoip_mod)with pytest.raises(ImportError, match=r"pip install 'cloakbrowser\[geoip\]'"):- geoip_mod.resolve_proxy_geo("http://10.50.96.5:8888")+ geoip_mod.resolve_proxy_geo("http://10.0.0.5:8888")# Restorereload(geoip_mod)@@ -125,7 +125,7 @@ def test_resolve_geo_raises_when_db_missing():with patch("cloakbrowser.geoip._resolve_exit_ip", return_value="9.8.7.6"):from cloakbrowser.geoip import resolve_proxy_geo_with_ipwith pytest.raises(RuntimeError, match="database is unavailable"):- resolve_proxy_geo_with_ip("http://10.50.96.5:8888")+ resolve_proxy_geo_with_ip("http://10.0.0.5:8888")def test_resolve_geo_unmapped_country_falls_back_to_en_us():@@ -140,7 +140,7 @@ def test_resolve_geo_unmapped_country_falls_back_to_en_us():with patch("cloakbrowser.geoip._ensure_geoip_db", return_value=object()):with patch("cloakbrowser.geoip._resolve_exit_ip", return_value="9.8.7.6"):from cloakbrowser.geoip import resolve_proxy_geo_with_ip- assert resolve_proxy_geo_with_ip("http://10.50.96.5:8888") == (+ assert resolve_proxy_geo_with_ip("http://10.0.0.5:8888") == ("Indian/Mahe", "en-US", "9.8.7.6",)@@ -154,7 +154,7 @@ def test_resolve_geo_raises_when_lookup_fails():with patch("cloakbrowser.geoip._resolve_exit_ip", return_value="9.8.7.6"):from cloakbrowser.geoip import resolve_proxy_geo_with_ipwith pytest.raises(RuntimeError, match="corrupt database"):- resolve_proxy_geo_with_ip("http://10.50.96.5:8888")+ resolve_proxy_geo_with_ip("http://10.0.0.5:8888")# ---------------------------------------------------------------------------@@ -348,7 +348,7 @@ def test_private_ip_rfc1918():def test_private_ip_public():assert _is_private_ip("8.8.8.8") is False- assert _is_private_ip("64.176.168.43") is False+ assert _is_private_ip("8.8.8.8") is False# ---------------------------------------------------------------------------