No open-source project clears every Cloudflare Turnstile widget or challenge page in 2026. The tools fall into three families: HTTP clients that never run JavaScript (cloudscraper, curl_cffi), stealth or patched browser-automation libraries (patchright, rebrowser, nodriver, zendriver, Camoufox and others), and self-hosted solver servers that put one of those browsers behind an HTTP API (FlareSolverr, Byparr, Turnstile-Solver, cf-clearance-scraper, CloudflareBypassForScraping). Pick the family that matches your job, expect to maintain it, and keep a managed API as the fallback for the day it stops clearing.
This roundup compares 18 projects with facts from their own repositories, PyPI and npm, checked on 2026-12-01, and links to a troubleshooting guide for each one.
Quick answer: symptom → which tool, which fix
Find the row that matches what you are trying to get past, then jump to the matching tool guide below.
- I need a Turnstile token (cf-turnstile-response) for a form
- You need a token, not a cookie. Self-host Turnstile-Solver (GET /turnstile, then /result) or CloudflareBypassForScraping's /turnstile endpoint, or call a Turnstile solver API. Submit the token within 300 seconds, and only once.
- "Just a moment..." page; my scraper needs cf_clearance
- Something has to run Cloudflare's challenge in a browser. Use a server that returns cookies (CloudflareBypassForScraping /cookies, Byparr, FlareSolverr) or a browser library, then replay cf_clearance with the same User-Agent and the same IP.
- Prowlarr or Jackett needs a FlareSolverr URL
- Only servers that speak FlareSolverr's POST /v1 protocol fit. Use FlareSolverr or Byparr. A REST solver API cannot be pasted into that setting.
- cloudscraper or curl_cffi gets 403 with cf-mitigated: challenge
- HTTP-only clients cannot run the current challenge script. Obtain cf_clearance elsewhere and keep the HTTP client for the requests that follow.
- Stealth plugin still detected although navigator.webdriver is false
- The leak is in the automation protocol (Runtime.enable), not in page JavaScript. Move to patchright (Playwright) or rebrowser-puppeteer / rebrowser-playwright, which patch that leak.
- Works on my laptop, fails headless, in Docker or on a VPS
- Headless tells, no display, or a datacenter IP. Run the browser headed under Xvfb, give it a realistic screen size and test from a cleaner IP.
- The repository has not been updated for a long time
- Cloudflare changes faster than an unmaintained tool. Check the status column below. cf-clearance-scraper's README says it will no longer receive updates, and puppeteer-extra-plugin-stealth's last npm release is from March 2023.
Endpoints and behaviour from each project's README; versions from GitHub, PyPI and npm; token rules from Cloudflare's Turnstile docs. All checked on 2026-12-01; sources are listed at the end.
Three families of open-source Cloudflare tools
HTTP clients. cloudscraper was built to answer Cloudflare's older JavaScript challenge from Python without a browser, and curl_cffi impersonates a real browser's TLS/JA3 and HTTP/2 fingerprint. Neither runs Cloudflare's current challenge script, so on a managed challenge both get a 403 with cf-mitigated: challenge. They remain excellent for the bulk of requests once you already hold a valid cf_clearance.
Automation libraries. These drive a real browser and try to hide that it is automated. On the Chromium side: undetected-chromedriver, its successor nodriver and the nodriver fork zendriver, SeleniumBase UC and CDP Mode, DrissionPage, Botasaurus, patchright, rebrowser-patches, puppeteer-extra-plugin-stealth and playwright-stealth. On the Firefox side: Camoufox. They do run the challenge, but Cloudflare still scores the browser, its environment and the IP; Cloudflare's own testing docs state that automated suites such as Selenium, Cypress or Playwright are detected as bots by Turnstile.
Solver servers. These wrap a browser behind HTTP so any program can ask for a page, cookies or a token. FlareSolverr uses Selenium with undetected-chromedriver behind POST /v1, and Byparr answers the same /v1 protocol. Theyka's Turnstile-Solver runs patchright or Camoufox behind a small local API. cf-clearance-scraper is a Node.js server built on puppeteer-real-browser. CloudflareBypassForScraping (version 3.0) keeps a pool of Brave browsers driven by DrissionPage and adds a request-mirroring mode.
18 open-source tools compared
| Tool | How it works | Language · licence | Latest release (2026-12-01) | Status and caveats |
|---|---|---|---|---|
| Turnstile-Solver (Theyka) | Local API (GET /turnstile, then /result); patchright or Camoufox renders the widget | Python · CC BY-NC 4.0 | No tagged releases; solver code last changed 2025-04-08 | About 1k stars. Token only, non-commercial licence; in issue #211 the maintainer says he has no time to maintain it |
| cf-clearance-scraper (ZFC-Digital, ex zfcsoftware) | Node.js server on puppeteer-real-browser; modes source, turnstile-min, turnstile-max, waf-session | JavaScript · MIT | Tag 2.0.3 (2024-09-29); last push 2025-09-03 | README: "will no longer receive updates" |
| CloudflareBypassForScraping (sarperavci) | Server with a pool of Brave browsers driven by DrissionPage; /cookies, /turnstile, request mirroring | Python · MIT | No tagged releases; v3.0 per README; last push 2026-11-28 | About 2.7k stars, actively developed |
| FlareSolverr | Proxy server: Selenium + undetected-chromedriver behind POST /v1 | Python · MIT | v3.5.2 (2026-09-12) | README: none of its captcha solvers currently work |
| Byparr | FlareSolverr-compatible /v1 server driving a Playwright-based browser | Python · GPL-3.0 | v3.1.1 (2026-11-05) | Drop-in for Prowlarr and Jackett |
| nodriver | Drives Chrome over the DevTools protocol, no WebDriver; successor of undetected-chromedriver | Python · AGPL-3.0 | 0.50.99 on PyPI (2026-10-26) | About 5k stars |
| zendriver | Community fork of nodriver with a DOM-based verify_cf() | Python 3.10+ · AGPL-3.0 | v0.18.0 (2026-11-21) | About 1.5k stars |
| undetected-chromedriver | Patched chromedriver for Selenium | Python · GPL-3.0 | 3.5.5 on PyPI (2024-02-17); last push 2025-07-05 | Its author's newer project is nodriver |
| SeleniumBase UC / CDP Mode | UC Mode hides chromedriver; CDP Mode drives Chrome over CDP with sb.solve_captcha() | Python · MIT | 4.59.2 (2026-11-29) | About 13k stars, very active |
| DrissionPage | Drives Chrome over CDP through a debugging port, no chromedriver | Python · own licence | 4.1.1.4 on PyPI (2026-05-27) | Licence forbids commercial use without the author's permission |
| Botasaurus | Scraping framework with its own driver; google_get(url, bypass_cloudflare=True) | Python · MIT | 4.0.97 on PyPI (2026-01-06) | README: Cloudflare identifies headless mode |
| Camoufox | Anti-detect Firefox build driven through Playwright | Python · MPL-2.0 (browser), MIT (package) | v159.0-beta.43 (2026-11-22); package 0.5.9 | All browser builds still labelled beta |
| patchright | Patched Playwright (Chromium only) that removes the Runtime.enable and Console.enable leaks | Python, Node.js · Apache-2.0 | 1.64.4 on PyPI, 1.64.3 on npm (2026-11-02) | About 5.3k stars; console API disabled by design |
| rebrowser-patches | Patches Puppeteer and Playwright (Runtime.enable fix); drop-in rebrowser-puppeteer and rebrowser-playwright | JavaScript, Python · MIT | v1.1.3 (2026-11-02) | About 1.5k stars |
| puppeteer-extra-plugin-stealth | JavaScript evasions injected into every page | JavaScript · MIT | 2.11.2 (2023-03-01) | No release since March 2023 |
| playwright-stealth | Python port of the stealth evasions (JavaScript overrides) | Python · MIT | 2.0.3 on PyPI (2026-04-04) | README: only bypasses the simplest bot detection |
| cloudscraper | requests-based client that answers the older JavaScript challenge without a browser | Python · MIT | 1.2.71 on PyPI (2023-04-25); GitHub tag 3.0.0 (2025-06-10) | No engine for the current challenge |
| curl_cffi | HTTP client impersonating browser TLS/JA3 and HTTP/2 fingerprints | Python 3.10+ · MIT | 0.17.0 (2026-10-26) | Runs no JavaScript; pair it with a cf_clearance |
Licences, star counts (rounded) and last pushes from each GitHub repository; versions and dates from GitHub releases, PyPI or npm; all checked on 2026-12-01. Licence notes are a summary, not legal advice. Being maintained does not mean a tool clears every site: all browser-based options are scored by Cloudflare like any other browser.
Turnstile tokens: which open-source tools return one
A Turnstile widget on a login or sign-up form needs a token in the cf-turnstile-response field, not a cookie. Three of the servers above return one directly. Theyka's Turnstile-Solver takes GET /turnstile?url=...&sitekey=... (plus optional action and cdata), answers with a task_id, and GET /result?id=... returns CAPTCHA_NOT_READY until the token is ready as value with elapsed_time; its README says --headless requires a --useragent, and the repo is licensed CC BY-NC 4.0. CloudflareBypassForScraping exposes /turnstile (GET, or POST with url, sitekey, optional action and proxy) and returns the token with the user_agent that produced it. cf-clearance-scraper has a turnstile-min mode that needs the siteKey and renders a minimal widget page, and a turnstile-max mode that loads the full page.
Browser libraries can produce a token too, by clicking the widget and reading the hidden input; SeleniumBase's CDP Mode wraps that in sb.solve_captcha(). Whatever produces the token, Cloudflare's server-side validation docs set the same rules: each token is valid for 300 seconds after generation and a replayed token is rejected. If the widget sets an action or cdata, pass the same values. When a site still rejects tokens, read cf-turnstile-response invalid and the Turnstile error codes guide.
Why open-source solvers stop working
- Release gaps. Cloudflare updates its challenge continuously; a tool that is not updated falls behind. puppeteer-extra-plugin-stealth has not shipped since March 2023, cloudscraper's last PyPI release is from April 2023, and cf-clearance-scraper's README says it will no longer receive updates.
- Headless and environment tells. Headless Chrome announces itself in several places, servers have no display, and Docker images often run a tiny Xvfb screen without a GPU. Most "works locally, fails on the VPS" reports come from here.
- Protocol leaks. Libraries that call the DevTools Runtime.enable command can be detected by page scripts. patchright and rebrowser-patches exist to remove exactly that leak; JavaScript-only stealth plugins cannot.
- IP reputation. A perfectly hidden browser on a datacenter or overused proxy IP can still loop on "Just a moment...".
- Cookie replay mismatches. cf_clearance is only accepted with the User-Agent and IP that earned it, and the replaying client's TLS fingerprint matters too. See the cf_clearance cookie explained.
- Version drift. Unpinned installs pull a new library or browser build between two deploys. Pin versions and upgrade deliberately.
- Licence fit. Turnstile-Solver (CC BY-NC 4.0) and DrissionPage restrict commercial use; nodriver and zendriver are AGPL-3.0; Byparr and undetected-chromedriver are GPL-3.0. Check this before you ship one inside a product.
How to choose for your job
- Prowlarr or Jackett: FlareSolverr, or Byparr as a drop-in /v1 server.
- A Turnstile token for a self-hosted pipeline: CloudflareBypassForScraping's /turnstile, or Turnstile-Solver for non-commercial projects.
- cf_clearance for your own HTTP client: CloudflareBypassForScraping's /cookies or mirror mode, Byparr, or a browser library; then make the requests with curl_cffi.
- Existing Playwright code: patchright for Chromium, or Camoufox if you want Firefox.
- Existing Puppeteer code: rebrowser-puppeteer instead of puppeteer-extra-plugin-stealth.
- Python browser automation from scratch: zendriver or nodriver, SeleniumBase CDP Mode, DrissionPage or Botasaurus.
- Still on cloudscraper, undetected-chromedriver or puppeteer-extra-plugin-stealth: plan a migration; the guides below explain the exact failure modes.
A troubleshooting guide for each tool
- Turnstile-Solver (GitHub) not working: CAPTCHA_FAIL, CAPTCHA_NOT_READY, headless mode and Python-version issues.
- cf-clearance-scraper not working: waf-session and turnstile modes, Docker, timeouts.
- CloudflareBypassForScraping not working: /cookies, mirror mode and Docker fixes.
- FlareSolverr not working and FlareSolverr alternatives.
- Byparr not working: 408 timeouts, port 8191, Prowlarr tags.
- nodriver not working and zendriver not working.
- undetected-chromedriver not working and SeleniumBase UC Mode not working.
- DrissionPage blocked by Cloudflare and Botasaurus not working.
- Camoufox not working and patchright not working.
- rebrowser-patches not working, puppeteer-stealth not working and playwright-stealth not working.
- cloudscraper not working and curl_cffi Cloudflare 403.
When a managed API is the better fallback
Open-source tools are the right choice when you run a few sessions, need a full browser anyway, or want to understand exactly what happens. They stop paying off when the same page keeps looping after the fixes in the guides above, when every Chrome or Cloudflare update breaks a deploy, or when you run servers, Xvfb and residential proxies only to obtain one token or one cookie at a time.
At that point, move only that step to an API and keep the rest of your code. Only automate sites you own or are explicitly authorised to access, and respect their terms and rate limits.
NSLSolver example: Turnstile token and cf_clearance without a browser
NSLSolver is a REST API: POST https://api.nslsolver.com/solve with an X-API-Key header. Solving is server-side and request-based, so no browser runs on your side or ours. For a widget, send type turnstile with site_key and url and get a token back in about 250 ms on average, at $0.80 per 1,000 (Cloudflare Turnstile solver API). For a full-page challenge, send type challenge with url, site_key and a proxy, and get cookies (including cf_clearance) plus the user_agent to replay through that same proxy (Cloudflare Challenge solver API); omit user_agent in the request, because the clearance is issued for the solver's iPhone Safari browser.
You pay per successful solve and failed solves are free; see pricing. NSLSolver does not solve reCAPTCHA v2, hCaptcha, image CAPTCHAs or DataDome, so keep an open-source browser for those.
import os
import requests
API = "https://api.nslsolver.com/solve"
HEADERS = {"X-API-Key": os.environ["NSLSOLVER_API_KEY"]}
# 1) Turnstile widget on a form: get a token (about 250 ms on average)
r = requests.post(API, headers=HEADERS, json={
"type": "turnstile",
"site_key": "0x4AAAAAAA...", # data-sitekey of the widget
"url": "https://target-site.com/login", # page that renders the widget
# "action": "login", "cdata": "...", # only if the widget sets them
}, timeout=120)
data = r.json()
if not data.get("success"):
raise RuntimeError(data) # failed solves are not billed
token = data["token"] # submit as cf-turnstile-response within 300 s
# 2) Full-page "Just a moment..." challenge: get cf_clearance (proxy required)
PROXY = "http://user:pass@sticky-proxy.example.com:8080"
r = requests.post(API, headers=HEADERS, json={
"type": "challenge",
"url": "https://target-site.com/",
"site_key": "0x4AAAAAAA...", # challenge widget id
"proxy": PROXY, # user_agent omitted on purpose
}, timeout=120)
clearance = r.json()
s = requests.Session()
s.proxies = {"http": PROXY, "https": PROXY} # same exit IP as the solve
s.headers["User-Agent"] = clearance["user_agent"]
s.cookies.update(clearance["cookies"]) # includes cf_clearance
print(s.get("https://target-site.com/", timeout=30).status_code)Related guides
- Cloudflare Turnstile solver API: a token from one HTTP call.
- Cloudflare Challenge solver API: cf_clearance and the matching user_agent.
- FlareSolverr alternatives: what replaces it for scrapers, Prowlarr and Jackett.
- Web scraping Cloudflare sites in 2026: which guide fits which symptom.
- Pricing: pay per successful solve.
Sources (checked 2026-12-01)
- Theyka/Turnstile-Solver: README, LICENSE (CC BY-NC 4.0), requirements.txt
- ZFC-Digital/cf-clearance-scraper: README (no further updates), package.json
- sarperavci/CloudflareBypassForScraping: README (v3.0, /cookies, /turnstile, mirror mode)
- FlareSolverr README and releases (v3.5.2)
- Byparr README and releases (v3.1.1)
- nodriver (GitHub)
- zendriver releases (v0.18.0)
- undetected-chromedriver on PyPI (3.5.5)
- SeleniumBase (GitHub)
- DrissionPage LICENSE
- Botasaurus (GitHub)
- Camoufox releases
- patchright-python README (Chromium only, Console.enable patch)
- rebrowser-patches README (Runtime.enable fix modes)
- puppeteer-extra-plugin-stealth on npm (2.11.2)
- playwright_stealth README
- cloudscraper releases (GitHub) and PyPI
- curl_cffi (GitHub)
- Cloudflare: Turnstile server-side validation (300-second validity, replay rejection)
- Cloudflare: Turnstile testing (automated suites are detected as bots)