Skip to main content

solvecha (Python)

A small client for the Solvecha captcha API, plus ready-made tools for AI agent frameworks: OpenAI function calling and the Agents SDK, LangChain, CrewAI, LlamaIndex and Browser Use.

pip install solvecha                  # client only (needs httpx)
pip install "solvecha[langchain]"     # or openai, crewai, llamaindex, browser-use
export SOLVECHA_API_KEY=slv_...       # create a key at https://solvecha.com/dashboard?utm_source=pypi&utm_medium=readme&utm_campaign=solvecha-python

Client

from solvecha import Solvecha

client = Solvecha()  # reads SOLVECHA_API_KEY
result = client.solve_recaptcha("Select all images with buses", "3x3", "grid.png")
print(result.tiles)      # [2, 4, 5], counted from 1, left to right, top to bottom
print(result.positions)  # ['row 1, column 2', ...]
client.report_result(result.job_id, "accepted", "3x3")  # optional, free

images can be a file path, bytes, base64 text or a data URL. AsyncSolvecha has the same methods. Other methods: solve_text, solve_geetest, solve_funcaptcha, status. Errors raise SolvechaError subclasses with the API code (InvalidKeyError 15, OutOfCreditError 16, RateLimitError 11).

Agent tools

from solvecha import Solvecha
from solvecha.tools import openai_tools, openai_agents_tools, langchain_tools, crewai_tools, llamaindex_tools

client = Solvecha()
tools, handle = openai_tools(client)     # Chat Completions: pass tools=tools, answer calls with handle(name, args_json)
agents_sdk = openai_agents_tools(client) # OpenAI Agents SDK
lc = langchain_tools(client)             # LangChain / LangGraph
crew = crewai_tools(client)              # CrewAI
li = llamaindex_tools(client)            # LlamaIndex

Tools never raise: a failure comes back as {"error": "..."} with advice for the model.

Browser Use

from browser_use import Agent, Browser, ChatBrowserUse
from solvecha import AsyncSolvecha
from solvecha.tools import browser_use_tools

tools = browser_use_tools(AsyncSolvecha())   # adds the action solve_recaptcha_in_tab
agent = Agent(task="...", llm=ChatBrowserUse(), browser=Browser(), tools=tools)

The action crops the screenshot to the reCAPTCHA challenge window and returns the tiles to click.

Or use MCP

No code needed: https://api.solvecha.com/mcp with Authorization: Bearer <key>. See https://solvecha.com/docs/mcp-server?utm_source=pypi&utm_medium=readme&utm_campaign=solvecha-python.

Develop

pip install -e ".[test]" && pytest
python -m build   # needs: pip install build

Metadata

Release files for solvecha 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for solvecha 0.1.1
File Size Uploaded Provenance Actions
solvecha-0.1.1.tar.gz 10.0 kB With provenance Details for solvecha-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for solvecha 0.1.1
File Interpreter ABI Platform Actions
solvecha-0.1.1-py3-none-any.whl Python 3 none any Details for solvecha-0.1.1-py3-none-any.whl

Total release size: 20.7 kB

Release files / solvecha-0.1.1.tar.gz

Download URL solvecha-0.1.1.tar.gz
Size 10.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3a31dc8d1153b9a6a270ec5c412dd6842b51599f0f20485c6970471283af7528
BLAKE2b-256 checksum
How to use checksums
830f3344ec04c93c0489028f90f9244412f8482f5a6427fc6a1ff84f5e852307
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / solvecha-0.1.1-py3-none-any.whl

Download URL solvecha-0.1.1-py3-none-any.whl
Size 10.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fff98a01d6d59965c7f5bbe995340f0b1a5bec06b16a3c237e9dea441a6774e2
BLAKE2b-256 checksum
How to use checksums
cd8210b58117ad7733fc414d7a513caaccd24fc2ab9eb2050125a5678b3d51ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Security for solvecha 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for solvecha-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page