AI AGENTS

Browser-Use + GateSolve

Your AI agent hits a CAPTCHA. Instead of failing silently, GateSolve solves it and returns a token. Three lines of Python.

The Problem

AI agents using browser-use, AgentQL, or Playwright hit CAPTCHAs on 50%+ of websites. Cloudflare Turnstile, reCAPTCHA, and hCaptcha block automated browsers — even with stealth plugins. Your agent crashes, retries, or hallucinates results from cached pages. GateSolve solves the CAPTCHA and returns a valid token your agent can inject.

Install

pip install gatesolve

Python SDK

Three lines to solve any CAPTCHA. Works with any Python agent framework.

from gatesolve import GateSolve

solver = GateSolve(api_key="gs_your_key_here")

# Solve any CAPTCHA by URL + siteKey
result = solver.solve(
    type="cloudflare-turnstile",
    page_url="https://example.com/login",
    site_key="0x4AAAAAAA..."
)

print(f"Token: {result.token}")  # inject into your form

With Browser-Use

When your browser-use agent encounters a CAPTCHA, call GateSolve to get a valid token.

from browser_use import Agent, Browser
from gatesolve import GateSolve
from langchain_openai import ChatOpenAI

solver = GateSolve(api_key="gs_your_key_here")

async def solve_captcha_task():
    # When your agent hits a CAPTCHA, call GateSolve
    agent = Agent(
        task="Go to example.com/signup and create an account",
        llm=ChatOpenAI(model="gpt-4o"),
    )

    # If the agent encounters a Turnstile challenge:
    result = solver.solve(
        type="cloudflare-turnstile",
        page_url="https://example.com/signup",
        site_key="0x4AAAAAAA..."  # from page source
    )

    # Inject the token into the page
    # The agent can use this token to bypass the CAPTCHA
    print(f"Solved in {result.solve_time}")

MCP Server (Zero Code)

Add GateSolve as an MCP tool. Any MCP-compatible agent can solve CAPTCHAs without writing integration code.

# Or use GateSolve MCP server — zero code integration
# Add to your MCP config:
{
  "mcpServers": {
    "gatesolve": {
      "command": "npx",
      "args": ["-y", "@gatesolve/mcp-server"],
      "env": {
        "GATESOLVE_API_KEY": "gs_your_key_here"
      }
    }
  }
}

# Your agent can now call solve_captcha as a tool

How It Works

1

Agent hits CAPTCHA

Your browser-use agent navigates to a page with Cloudflare Turnstile or reCAPTCHA.

2

Call GateSolve API

Pass the CAPTCHA type, siteKey, and page URL. GateSolve solves it in 7-15 seconds.

3

Inject token

GateSolve returns a valid token. Your agent injects it into the form and continues.

Cloudflare Turnstile

Most common on modern sites. $0.02/solve.

reCAPTCHA v2/v3

Google reCAPTCHA support. $0.03/solve.

hCaptcha

Privacy-focused CAPTCHA. $0.03/solve.

Why GateSolve for AI Agents

100 free solves

No credit card required. Just sign up and start.

Async API

Submit and poll. No blocking. Webhook callbacks available.

MCP server

Listed in MCP Registry. Zero-code agent integration.

Python SDK

pip install gatesolve. Three lines of code.

Error taxonomy

correction_class tells your agent exactly what to do on failure.

Agent-first

Built for AI agents, not humans clicking checkboxes.

Start Solving CAPTCHAs

100 free solves. No credit card. 30-second setup.