> ## Documentation Index
> Fetch the complete documentation index at: https://cloudsneak.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Cloudsneak: Cloudflare Turnstile and IUAM solver

> Cloudsneak is a Python service that solves Cloudflare Turnstile tokens and extracts cf_clearance cookies via an anti-detect browser.

Cloudsneak is a Python service for automated solving of Cloudflare challenge mechanisms. It renders Turnstile widgets to capture `cf-response` tokens and intercepts IUAM (I'm Under Attack Mode) responses to extract `cf_clearance` cookies and their matching `User-Agent`.

## What Cloudsneak does

* **Turnstile token solver**: Renders and solves Cloudflare Turnstile challenge widgets using synthetic injection and local script replacement.
* **IUAM clearance extraction**: Intercepts responses to extract `cf_clearance` cookies and the corresponding `User-Agent`.
* **Anti-detect browser**: Custom Chromium launch configuration driven by Playwright.
* **FastAPI REST API**: Async server with TTL caching, auth token checks, and concurrency throttling.

## Architecture

Cloudsneak launches anti-detect Chromium instances and intercepts challenge scripts at the network layer. For Turnstile it renders synthetic DOM targets that trigger the widget callback; for IUAM it extracts `Set-Cookie` headers from Under Attack Mode responses. An in-memory TTL cache prevents redundant solves for frequent requests.

## Get started

> [card] [Quickstart](https://cloudsneak.mintlify.site/quickstart.md)
>
> Install Cloudsneak, run the server, and solve your first challenge in under 5 minutes.

> [card] [Solve Cloudflare](https://cloudsneak.mintlify.site/api-reference/cloudflare.md)
>
> Reference for the `POST /cloudflare` endpoint, including Turnstile and IUAM modes.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.