Skip to content
Guide

Open-Source Turnstile and Cloudflare Solvers in 2026: 18 Tools Compared

NSLSolver TeamPublished Updated 11 min read

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

ToolHow it worksLanguage · licenceLatest release (2026-12-01)Status and caveats
Turnstile-Solver (Theyka)Local API (GET /turnstile, then /result); patchright or Camoufox renders the widgetPython · CC BY-NC 4.0No tagged releases; solver code last changed 2025-04-08About 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-sessionJavaScript · MITTag 2.0.3 (2024-09-29); last push 2025-09-03README: "will no longer receive updates"
CloudflareBypassForScraping (sarperavci)Server with a pool of Brave browsers driven by DrissionPage; /cookies, /turnstile, request mirroringPython · MITNo tagged releases; v3.0 per README; last push 2026-11-28About 2.7k stars, actively developed
FlareSolverrProxy server: Selenium + undetected-chromedriver behind POST /v1Python · MITv3.5.2 (2026-09-12)README: none of its captcha solvers currently work
ByparrFlareSolverr-compatible /v1 server driving a Playwright-based browserPython · GPL-3.0v3.1.1 (2026-11-05)Drop-in for Prowlarr and Jackett
nodriverDrives Chrome over the DevTools protocol, no WebDriver; successor of undetected-chromedriverPython · AGPL-3.00.50.99 on PyPI (2026-10-26)About 5k stars
zendriverCommunity fork of nodriver with a DOM-based verify_cf()Python 3.10+ · AGPL-3.0v0.18.0 (2026-11-21)About 1.5k stars
undetected-chromedriverPatched chromedriver for SeleniumPython · GPL-3.03.5.5 on PyPI (2024-02-17); last push 2025-07-05Its author's newer project is nodriver
SeleniumBase UC / CDP ModeUC Mode hides chromedriver; CDP Mode drives Chrome over CDP with sb.solve_captcha()Python · MIT4.59.2 (2026-11-29)About 13k stars, very active
DrissionPageDrives Chrome over CDP through a debugging port, no chromedriverPython · own licence4.1.1.4 on PyPI (2026-05-27)Licence forbids commercial use without the author's permission
BotasaurusScraping framework with its own driver; google_get(url, bypass_cloudflare=True)Python · MIT4.0.97 on PyPI (2026-01-06)README: Cloudflare identifies headless mode
CamoufoxAnti-detect Firefox build driven through PlaywrightPython · MPL-2.0 (browser), MIT (package)v159.0-beta.43 (2026-11-22); package 0.5.9All browser builds still labelled beta
patchrightPatched Playwright (Chromium only) that removes the Runtime.enable and Console.enable leaksPython, Node.js · Apache-2.01.64.4 on PyPI, 1.64.3 on npm (2026-11-02)About 5.3k stars; console API disabled by design
rebrowser-patchesPatches Puppeteer and Playwright (Runtime.enable fix); drop-in rebrowser-puppeteer and rebrowser-playwrightJavaScript, Python · MITv1.1.3 (2026-11-02)About 1.5k stars
puppeteer-extra-plugin-stealthJavaScript evasions injected into every pageJavaScript · MIT2.11.2 (2023-03-01)No release since March 2023
playwright-stealthPython port of the stealth evasions (JavaScript overrides)Python · MIT2.0.3 on PyPI (2026-04-04)README: only bypasses the simplest bot detection
cloudscraperrequests-based client that answers the older JavaScript challenge without a browserPython · MIT1.2.71 on PyPI (2023-04-25); GitHub tag 3.0.0 (2025-06-10)No engine for the current challenge
curl_cffiHTTP client impersonating browser TLS/JA3 and HTTP/2 fingerprintsPython 3.10+ · MIT0.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

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.

nslsolver_cloudflare.py
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)

Full /solve API reference

Related guides

Frequently asked questions

What is the best open-source Turnstile solver in 2026?

It depends on the job. For a token in a self-hosted pipeline, CloudflareBypassForScraping's /turnstile endpoint or Theyka's Turnstile-Solver (non-commercial licence) are the most direct. For existing Playwright code, patchright; for Puppeteer, rebrowser-puppeteer. None of them is guaranteed to clear every site, because Cloudflare also scores the environment and the IP.

Is there an open-source Turnstile solver that works without a browser?

Not for Cloudflare's current challenge. The HTTP-only clients, cloudscraper and curl_cffi, do not run the challenge script, and every open-source tool in this comparison that returns a Turnstile token runs a real browser under the hood.

Why is my Turnstile token rejected even though the solver returned one?

Cloudflare documents that a token is valid for 300 seconds and that a replayed token is rejected, so submit it quickly and only once. It must also come from the right site key and, if the widget sets them, the same action and cdata.

Which open-source tools work with Prowlarr and Jackett?

Those apps expect a server that speaks FlareSolverr's POST /v1 protocol, so FlareSolverr itself or Byparr, which serves the same endpoint. The other servers in this list use their own APIs.

Can I use Theyka's Turnstile-Solver in a commercial project?

Its LICENSE file is Creative Commons Attribution-NonCommercial 4.0, which does not allow commercial use without separate permission. DrissionPage's licence has a similar restriction. Check each licence yourself; this is not legal advice.

Is cf-clearance-scraper still maintained?

Its README opens with a warning that the repository will no longer receive updates; the last push was on 2025-09-03. It still runs, but fixes for new Cloudflare or Chrome changes should not be expected.

When should I switch from an open-source tool to an API?

When the fixes in the tool's guide no longer help, when updates keep breaking deploys, or when infrastructure costs more than the solves. NSLSolver returns a Turnstile token in about 250 ms on average for $0.80 per 1,000, with no browser, and only successful solves are billed.

Keep your scraper, drop the browser farm

One HTTP call returns a Turnstile token or a cf_clearance cookie with its User-Agent. Free credit with Google, Gmail or Proton sign-up, no card, and you only pay for successful solves.