Guide
CapSolver AI
CapSolver For AI Agents

CapSolver for AI Agents

Your agent can navigate, click, and type. But a large share of real-world tasks stall at a human-verification wall — a reCAPTCHA, a Cloudflare Turnstile, a device-fingerprint check — and an otherwise perfect multi-step run grinds to a halt. CapSolver clears that wall inline, inside your existing workflow, and hands control straight back to the agent so the task completes.

This page explains what that means in practice, where CapSolver fits in an agent stack, and how to choose an integration path. If you’d rather jump straight to code, see Introduction and Quick Start, the Core SDK, the Agent Tools, and the MCP Service.

The production gap

Agents demo beautifully. In a demo, the agent books the flight, enriches the lead, or pulls the filing. In production, it reaches a verification challenge and someone on the team has to step in. The same failure shows up in four recognizable shapes:

  • Workflow interruption — a single verification challenge halts an otherwise complete multi-step task.
  • Manual fallback — teams quietly babysit “autonomous” agents, jumping in whenever one gets blocked.
  • No recovery layer — browser agents can click and type, but nothing closes the loop when verification fires.
  • No observability — production needs request IDs, retries, and clear error states, not a token returned from a black box.

In CapSolver’s own real-world testing, a meaningful fraction of agent tasks — on the order of 30% or more — stall on CAPTCHA, Cloudflare, or fingerprinting checks. That is the gap CapSolver is built to close.

What CapSolver adds: a recovery layer, not a rewrite

CapSolver does not replace your agent framework or your browser. It sits between the agent and the wall, solves the challenge, and returns the result inline so the original task can continue. There is no re-architecture: you keep your orchestration, your browser session, and your business logic exactly as they are, and add the one layer they don’t cover.

Two design choices make it production-grade rather than a one-off script:

  • Built for retry logic and observability. A solve returns a usable token and a request identifier, so every challenge is traceable — you can attribute, retry, and debug stalls instead of guessing why an agent stopped.
  • Solving happens in the cloud. Detection, parameter assembly, and result fill-back run on your side through the SDK; the actual recognition is performed by CapSolver’s AI service. Your code (or your model) decides what to do; CapSolver handles solving it.

The SDK currently covers the verification types agents hit most often — reCAPTCHA v2 and v3 (including Enterprise) and Cloudflare Turnstile — while the underlying CapSolver service supports a far broader catalog of challenge types. See the task type reference for the current full list.

How it works

CapSolver breaks “getting past a wall” into five clear stages that drop into an existing flow:

  1. Detect — your agent or browser flow hits a human-verification challenge.
  2. Solve — CapSolver handles the challenge across all supported CAPTCHA types.
  3. Recover — the result is returned inline to your agent flow.
  4. Continue — the agent resumes and completes the original task, with no failure.
  5. Observe — a request ID, status, and error information make every solve traceable.

Choose the path for your stack

CapSolver ships as three Python packages plus native framework integrations, so you can pick the level of abstraction that matches how you build. All three are layers over one engine — choose the closest fit and ship in minutes.

PathBest forWhat you get
MCP Service (capsolver-mcp)Any MCP-compatible client — Claude Desktop, Claude Code, Cursor, ClineA standard MCP server that exposes solving tools automatically, with near-zero integration code. The fastest way in. See the MCP Service guide.
Agent tools (capsolver-agent)LangChain, the OpenAI Agents SDK, Browser Use, or any custom agent loopFramework-agnostic tool schemas plus an executor, and ready-made LangChain tools — let the model decide when to solve. See the Agent guide.
Core SDK (capsolver-core)Scripts, crawlers, and bespoke Playwright automationThe engine itself: detect, read parameters, solve, and fill back, with no LLM required. See the Core SDK guide.

The framework integrations map onto these packages: a Browser Use agent registers solving as an action that recovers the session whenever verification appears mid-task; a LangChain or OpenAI Agents SDK app calls CapSolver as a tool with full tracing; and a Playwright flow wires solving directly into bespoke QA, RPA, and end-to-end automation.

Works on top of your browser infrastructure

CapSolver is additive. You bring the browser — Browserbase, Steel, Playwright, Puppeteer, Selenium, or your own — and CapSolver clears the part it can’t get through on its own. A clean IP and a fresh browser get an agent to the wall; CapSolver gets it through. We add the layer your stack doesn’t cover rather than replacing the stack.

Who it’s for

The verification problem appears the same way across every vertical building production agents:

  • Sales automation — outreach and prospecting agents get blocked enriching leads and gathering signals at scale, so pipelines that should run unattended overnight stall instead.
  • HR & recruiting tech — candidate-sourcing agents stall behind verification on job boards and profiles.
  • RegTech & compliance — automated review agents need to reach gated portals to pull filings and records on schedule.
  • QA & testing tools — end-to-end test agents break on CAPTCHA in staging and production login flows.

In each case the fix is the same: a recovery layer that lets authorized, user-directed work complete without a human stepping in.

Built for responsible automation

CapSolver is infrastructure for legitimate, user-authorized work — the same role a payments API plays for a SaaS product, or a messaging API plays for communications. An agent acts on behalf of a real user who authorized it; the problem isn’t the agent, it’s that legitimate, user-directed automation keeps getting mis-flagged as a bot. CapSolver resolves that mis-classification so authorized work can finish.

That positioning comes with guardrails:

  • User-authorized only — built for automation a user explicitly directed and consented to.
  • Respects site terms — intended to support lawful, terms-compliant agent workflows.
  • Full audit trail — every solve is logged with a request ID for accountability and review.
  • Clear acceptable-use policy — published guidelines define what the service is and isn’t for. See our compliance statement and position on abuse.

Pricing model

CapSolver is usage-based: you pay per successfully solved challenge, with no monthly minimums and no charge for failed attempts. A free tier lets you test inside your own workflow before committing, volume discounts apply as you scale, and enterprise teams running agents at scale can request an SLA, custom onboarding, and a dedicated support channel. See pricing for current details.

Get started

  1. Create an account and get an API key — register on the CapSolver website, copy your key from the dashboard, and add funds. Every successful solve consumes balance.
  2. Pick a path — the MCP Service for plug-and-play use in an AI client, the Agent Tools to let a model call solving itself, or the Core SDK for scripts and custom automation.
  3. Drop it into your flow — follow the matching guide and add the layer your agent was missing.

If your agent touches the real web, it will hit this wall. CapSolver is the layer that gets it through.