---
title: "Automatic CAPTCHA solver for Playwright and AI agents"
description: "An automatic CAPTCHA solver built into Browser Use Cloud browsers. reCAPTCHA and hCaptcha get solved in the page while your Playwright script or AI agent waits: no solver API key, no sitekey, no token injection, no per-solve fee. On by default outside the EU region; switch it off per standalone browser with solveCaptchas: false. $0.06 per browser-hour."
canonical: "https://browser-use.com/features/captcha-solving"
last_updated: "2026-12-04"
---

# Automatic CAPTCHA solver for Playwright and AI agents

> An automatic CAPTCHA solver built into Browser Use Cloud browsers. reCAPTCHA and hCaptcha get solved in the page while your Playwright script or AI agent waits: no solver API key, no sitekey, no token injection, no per-solve fee. On by default outside the EU region; switch it off per standalone browser with `solveCaptchas: false`. $0.06 per browser-hour.

[HTML page](https://browser-use.com/features/captcha-solving) · [Docs](https://docs.browser-use.com/cloud/browser/captcha-handling) · [Anti-detect browser](https://browser-use.com/comparisons/best-anti-detect-browsers.md)

## How a challenge is handled

1. The stealth layer makes challenges less likely: a hardened Chromium fork, per-session fingerprints and residential IPs.
2. When a reCAPTCHA or hCaptcha renders, the browser solves it in place. Your script should stop driving the page, wait about ten seconds, then read it again; keep checking for up to two minutes. Do not refresh, click the challenge, or replace the browser while the solver works.
3. Solving is not guaranteed. If a challenge remains, open the live view and let a person solve it. If the whole site blocks the browser rather than showing a challenge, try a different proxy country.

Stealth Bench V2 (September 25, 2026), 100 bot-protected sites, 2 visits each: Browser Use Cloud got through 90.5% of the time with the solver on and 84% with it off; the solver-off setup ran once, and a rerun with it on scored 90%. The 100 sites were picked because Browser Use Cloud historically got through where stock Chrome with a US proxy did not. They are hard on purpose and not a balanced sample of the web or of anti-bot vendors. [Results, method and code](https://browser-use.com/benchmarks/browsers)

## Which CAPTCHAs it solves

| Challenge | What happens |
| :-- | :-- |
| reCAPTCHA | Solved automatically when the challenge renders in the page, like the image grid in the demo recording. |
| hCaptcha | Solved automatically, in the page. Newer than reCAPTCHA support and not guaranteed: test your site first. |
| Cloudflare challenge pages, PerimeterX and other bot walls | Not the solver. The stealth layer and residential proxies handle these; access is not guaranteed. |
| Cloudflare Turnstile | Not a listed solver type. It shows a checkbox only when its non-interactive checks flag the visitor ([Cloudflare docs](https://developers.cloudflare.com/turnstile/concepts/widget/)), so a clean browser often passes on its own; if a checkbox stays, clear it in the live view. |
| FunCaptcha (Arkose Labs), GeeTest, text CAPTCHAs | Not listed as supported. Test your site first; if a challenge stays, clear it in the live view or email contact@browser-use.com with the session ID. |
| EU region | Automatic solving is off in the EU deployment. |
| If it does not clear | Hand the session to a person in the live view; the browser and cookies stay as they are. If the whole site blocks the browser, switch proxy country. |

## Configuration

- On by default for standalone browsers (`POST /api/v4/browsers`) and for V4 agent runs, except in the EU deployment, where automatic solving is off.
- Opt out on a standalone browser: `client.browsers.create(solve_captchas=False)` in Python, `client.browsers.create({ solveCaptchas: false })` in TypeScript (`browser-use-sdk/v4`), or `"solveCaptchas": false` over REST. This field is not part of V4 run `browserSettings`, so agent runs keep the solver on.
- Cost: no CAPTCHA line item. You pay $0.06 per browser-hour and $5/GB of residential proxy traffic, on the free tier and pay-as-you-go alike.

```python
from browser_use_sdk.v4 import BrowserUse
from playwright.sync_api import TimeoutError, sync_playwright

with BrowserUse() as client:
    session = client.browsers.create(proxy_country_code="us")  # solver on
    print("Watch it:", session.live_url)
    try:
        with sync_playwright() as p:
            context = p.chromium.connect_over_cdp(session.cdp_url).contexts[0]
            page = context.pages[0] if context.pages else context.new_page()
            page.goto("https://example.com/search?q=shoes")  # your page
            # CAPTCHA in the way? Don't touch it: no sitekey, no token, no
            # refresh, no clicking. Wait for what comes after it, up to 2 min.
            try:
                page.wait_for_selector("#results", timeout=120_000)
            except TimeoutError:
                # Still stuck: a person clears it before the browser stops.
                input(f"Clear it in the live view, then press Enter: {session.live_url}")
    finally:
        client.browsers.stop(session.id)
```

## Questions people ask

**How do I solve CAPTCHAs automatically in Playwright or Puppeteer?** Run the script on a Browser Use Cloud browser. Create one with the API or SDK, connect Playwright or Puppeteer to its CDP URL, and the solver is already on. When a challenge appears, stop driving the page, wait about ten seconds, then read it again; keep checking for up to two minutes. No solver API key, sitekey or token code.

**How is this different from wiring up a solver API like 2Captcha?** With a solver API, your code finds the sitekey and page URL, sends them to the API, polls for a token, then injects it into the `g-recaptcha-response` field or a callback ([2Captcha reCAPTCHA v2 docs](https://2captcha.com/api-docs/recaptcha-v2)). You pay per solve: 2Captcha lists reCAPTCHA v2 at $1 to $2.99 per 1,000 ([pricing](https://2captcha.com/pricing), October 2026). Here there is no solver integration in your code: the browser handles the challenge where it renders, with no per-solve fee.

**When is a solver API the better pick?** When there is no browser, only raw HTTP requests that need a token. When you need a type we do not list, such as FunCaptcha. When you run your own browsers. And in the EU region, where automatic solving is off. You can also switch our solver off on a standalone browser and call your own.

**What happens when a challenge is not cleared?** Open the session's live view and let a person click through. For an agent run, set `keepAlive` so the browser stays open, clear the challenge in the live view, then send a follow-up run on the same session ([human checkpoint docs](https://docs.browser-use.com/cloud/guides/2fa)). If the whole site blocks the browser, try another proxy country.

**Where am I allowed to use it?** On automation you are allowed to do: your own accounts, your own sites, and sites whose terms permit it.

---

BROWSER USE

- Browser Use Agents: give Browser Use a task and receive completed work. API V4 is current for new integrations.
- Browser Infrastructure: connect your agent or automation to managed browsers through SDK, REST, or CDP. Starts at $0.06/browser-hour.
- Developer tools: Open Source, Browser Harness, SDK, and MCP support the two products above.

[Developer Index](https://browser-use.com/index.md)
[Product Map](https://browser-use.com/llms.txt)
[Full Product Context](https://browser-use.com/llms-full.txt)
[Pricing](https://browser-use.com/pricing.md)
[Cloud Docs](https://docs.browser-use.com/cloud/quickstart)
[Open Source Docs](https://docs.browser-use.com/open-source/introduction)
