UzbekistanismoiloffS/EzSolver
Cloudflare Turnstile solver & bypass — Python, real Chrome browser, no paid APIs. Local HTTP API service included. Auto-solves invisible and managed (checkbox) widgets. Works on Windows & Linux. Fast, lightweight, zero third-party captcha services.
Featured achievements
The project's latest awards
#1 Repository of the week
#2 Repository of the week
#4 Repository of the week
⚡ EzSolver
Fast, cross-platform Cloudflare Turnstile solver powered by a real browser.
No paid APIs. No third-party services. Just Python and Chrome.
How it works
EzSolver injects a Turnstile widget directly into the target page using a real Chrome browser via nodriver. Because it runs in a genuine browser with a persistent profile, Cloudflare's fingerprinting sees a real user — no token farms, no captcha services needed.
- Invisible widgets resolve automatically within seconds
- Managed (checkbox) widgets are clicked with human-like mouse movement
- On Linux servers, a virtual display (Xvfb) is started automatically — no
xvfb-runneeded - Chrome path and profile directory are auto-detected per OS, with env var overrides
Requirements
- Python 3.8+
- Google Chrome installed
nodriverPython package- Linux only:
Xvfb(for headless servers)
Installation
1. Clone the repo
git clone https://github.com/ismoiloffS/EzSolver.git
cd EzSolver
2. Install the Python dependency
pip install nodriver
3. Linux headless servers only — install Xvfb
sudo apt install xvfb
Windows users: nothing extra needed, Chrome runs normally.
Usage
Option A — Standalone solver (single token)
Run solver.py directly from the command line:
python solver.py <sitekey> <siteurl>
Example:
python solver.py 0x4AAAAAAActoBfh_En8yr3T https://example.com/
Output:
[solver] clicking Cloudflare iframe at (48, 52)
0.abc123...longtoken...xyz
Option B — Local API service
Start service.py once and send as many solve requests as you want via HTTP.
Start the service:
python service.py
[service] Turnstile solver service running on http://0.0.0.0:8191
Send a request with the CLI client:
python clientsend.py <sitekey> <siteurl> [timeout]
python clientsend.py 0x4AAAAAAActoBfh_En8yr3T https://example.com/
Token (14.32s): 0.abc123...longtoken...xyz
Or call it from your own code / any HTTP client:
curl -s -X POST http://127.0.0.1:8191/solve \
-H "Content-Type: application/json" \
-d '{"sitekey":"0x4AAAAAAActoBfh_En8yr3T","siteurl":"https://example.com/"}'
{
"token": "0.abc123...longtoken...xyz",
"elapsed": 14.32
}
Use it from Python:
from clientsend import request_token
token, elapsed = request_token(
sitekey="0x4AAAAAAActoBfh_En8yr3T",
siteurl="https://example.com/"
)
print(f"Got token in {elapsed}s: {token}")
API reference
POST /solve
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
sitekey | string | yes | — | Turnstile sitekey from the target page |
siteurl | string | yes | — | Full URL of the page with the Turnstile widget |
timeout | integer | no | 45 | Max seconds to wait for a token |
Success response 200:
{ "token": "0.abc...", "elapsed": 12.5 }
Error response 500:
{ "error": "Turnstile token not obtained within 45s" }
GET /health
Returns current service status — useful for uptime checks and monitoring queue depth.
{ "status": "ok", "workers": 4, "active": 2, "queued": 5 }
Scaling
EzSolver uses a worker pool to handle high volumes safely. Instead of spinning up unlimited Chrome instances (which would crash your machine), requests queue up and are processed as workers free up — no requests are dropped.
500 requests → queue → [worker 1] [worker 2] [worker 3] [worker 4] → tokens
Rule of thumb: each Chrome worker uses ~500 MB RAM.
| Machine RAM | Recommended MAX_WORKERS | Throughput (est.) |
|---|---|---|
| 2 GB | 2 | ~8 tokens/min |
| 4 GB | 4 (default) | ~16 tokens/min |
| 8 GB | 8 | ~32 tokens/min |
| 16 GB+ | 16 | ~64 tokens/min |
Set MAX_WORKERS when starting the service:
MAX_WORKERS=8 python service.py
Check the queue live via /health:
curl http://127.0.0.1:8191/health
{ "status": "ok", "workers": 8, "active": 6, "queued": 47 }
For truly massive scale (thousands of concurrent solves), run multiple service instances behind a load balancer (nginx, Caddy, etc.) across several machines.
Configuration
| Environment variable | Default | Description |
|---|---|---|
CHROME_PATH | auto-detected | Path to your Chrome executable |
TS_PROFILE_DIR | %TEMP%\ts_profile / /tmp/ts_profile | Persistent Chrome profile directory |
PORT | 8191 | Port the service listens on |
MAX_WORKERS | 4 | Max concurrent Chrome instances |
Example:
MAX_WORKERS=8 PORT=9000 python service.py
Project structure
EzSolver/
├── solver.py # Core solver — browser automation logic
├── service.py # HTTP API wrapper around the solver
└── clientsend.py # CLI client + importable helper for service.py
Troubleshooting
Chrome not found
Set
CHROME_PATHto the full path of your Chrome executable.
Timeout / token not received
The target site may be serving a harder challenge. Try increasing the timeout:
python clientsend.py <key> <url> 90
Linux: Xvfb not found
sudo apt install xvfb
Made with ☕ by Ismoiloff
Similar Projects
Discover other similar projects and AI models.
Powerful CAPTCHA Solver (Turnstile, cf_clearance, reCAPTCHA v3, AWS WAF) built with FastAPI + Camoufox. High success rate, proxy support, and VPS friendly
Geetest v4 CAPTCHA solver — slide、match、voice、svg、icon、phrase、word. No browser or automation required. 极验 v4 验证码求解库,支持滑块/找图/语音/svg/图标/语序/文字。无需浏览器或自动化环境。
Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Undetected version of the Playwright testing and automation library.
Open field guide to 39 CAPTCHA types: identification signals, free and open-source bypass methods, and paid alternatives. Includes a searchable web version.
🕷️ The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev