hcaptcha-challenger

AI agent that solves hCaptcha challenges using local and multimodal models

Overview

hcaptcha-challenger is an agent that uses multimodal large language models to work through hCaptcha challenges inside a Playwright-controlled browser page. It initializes with the Page object you pass in and then takes over interaction with that page through two operations, clicking the checkbox and waiting for the challenge to appear.

The project is aimed at developers and automation teams who encounter hCaptcha in browser workflows and want an approach that does not rely on Tampermonkey scripts or third-party anti-captcha services. Its documentation frames it as a way to make AI versus AI possible by defining a set of interfaces so an agent, rather than a hand-trained model, handles spatial-visual tasks.

What sets it apart is its reliance on spatial chain-of-thought reasoning to adapt to new challenge types without task-specific fine-tuning. The documentation argues that retraining convolutional models can take up to half a week while challenge types change frequently, and it presents the agent as a more general solution that can adjust as verification types shift. Pluggable resources such as ResNet, YOLOv8, ViT, and CLIP-ViT are documented for specific challenge types.

Best for

  • Automation engineers
  • Browser automation developers
  • QA engineers
  • AI/ML engineers

How to use

  1. Install the package with the documented uv pip command.
  2. Create and set your Gemini API key for the example workflow.
  3. Launch a Playwright browser and create a new page in its context.
  4. Navigate the page to a site key URL when encountering hCaptcha.
  5. Initialize the agent with the Page object and an agent configuration.
  6. Call click_checkbox, then wait_for_challenge to hand control to the agent.

What it can do

Binary image labeling

Handles image_label_binary challenges through an agent capability backed by a pluggable ResNet ONNX classification resource. The agent works through the challenge presented on the page rather than requiring a separately trained task-specific model.

Area selection by point

Handles image_label_area_select challenges that ask for a point answer, using a pluggable YOLOv8 ONNX detection resource. The corresponding agent capability is documented as supported for this challenge type.

Drag and drop challenges

Handles image_drag_drop challenges through spatial chain-of-thought reasoning. This is documented as an agent capability, extending the workflow to interaction types beyond simple label selection.

Checkbox interaction

The agent exposes click_checkbox so it can initiate the hCaptcha challenge by interacting with the checkbox through its robotic arm interface. This interaction is performed on the Page object supplied at initialization.

Challenge waiting

The agent exposes wait_for_challenge, which waits until the challenge is ready for solving, for example while images or instructions load. This lets the surrounding workflow pause at the right moment.

Dataset collection

A command-line option, hc dataset collect, lets you manage image datasets even if you already have your own solver. Installation and environment setup are documented with uv before running the collection command.

Self-supervised challenge handling

A self-supervised challenge mode is listed with CLIP-ViT as its pluggable resource, alongside a nested-model-zoo resource for Rank.Strategy. Both appear among the advanced task capabilities documented for the project.

Agentic workflow

The project builds an agentic workflow around AIOps multimodal large language models, documented with the Gemini API referenced in the quickstart. The agent controls browser pages through Playwright and can work on any browser Playwright supports.

How it works

You install the package, create and set a Gemini API key as shown in the quickstart, and give the agent a Playwright Page object. The agent then takes over interaction with that page through the robotic arm interface, clicking the checkbox and waiting for the challenge before continuing. Because the agent interacts only through the Page object, it is documented as usable on any platform or patcher built on Playwright, and on any browser Playwright can launch.

Pluggable resources back different tasks: ResNet ONNX for binary labeling, YOLOv8 ONNX for point selection, CLIP-ViT for self-supervised challenges, and a nested model zoo for rank strategy. The documentation describes the agent as adapting through dynamic problem-solving rather than task-specific fine-tuning, while the workflow still depends on a human-prepared browser session and API configuration.

Assistant

The agent acts on a Page object you supply and is driven through the documented click and wait calls, so it assists a user-directed browser workflow rather than operating on its own.

Where it fits

  • Handling image label binary challenges during a Playwright automation run.
  • Pointing at areas of an image for area-select challenges.
  • Completing drag and drop challenges that require spatial reasoning.
  • Collecting image datasets when you already have a solver of your own.

Good fit

  • Automating hCaptcha challenges in Playwright-based browser workflows
  • Collecting image datasets for CAPTCHA solver development
  • Building AI agents that interact with web pages via Playwright

Not a fit

  • Applications not using Playwright for browser control
  • Users unable or unwilling to provide a Gemini API key

How to evaluate

  1. Check that your browser automation stack uses Playwright, as the Agent interacts exclusively through a Playwright Page object.
  2. Verify you can create and configure a Gemini API key, required in the quickstart example.
  3. Assess whether the documented challenge types (image label binary, area select, drag drop, multiple choice) cover your needs.
  4. Consider whether your use case requires handling frequent hCaptcha updates, as the project aims for zero-shot adaptation via multimodal LLM reasoning.
  5. Review allowed usage for CAPTCHA solving in your jurisdiction and target sites.

Our take

hCaptcha Challenger is an agentic workflow framework that uses multimodal large language models to tackle hCaptcha challenges in Playwright-driven browsers. It emphasizes zero-shot spatial reasoning over training custom CNN models, which the documentation notes can become outdated quickly as hCaptcha updates challenge types. The approach requires a Gemini API key and is limited to Playwright-based pages, but supports common challenge types including image label binary, area select, drag and drop, and multiple choice. Datasets can also be collected for use with your own solver.

Alternatives

AgentPricingAutonomyBest for
hermes-agent—SupervisedAI researchers, Developers, System administrators, DevOps engineers, Technical founders
deer-flow—SupervisedSoftware developers, AI and agent engineers, Research engineers, Technical teams building agent workflows, Data pipeline builders
OpenMausBot—SupervisedDevelopers and engineers, Technical founders and small product teams, DevOps and IT administrators, Operations specialists who coordinate recurring tasks, AI power users comfortable with command-line tools
Toonflow-app—SupervisedShort drama creators, Comic video producers, Storyboard artists, Previsualization artists, Video editors, Independent animators, Content studio operators
rowboat—SupervisedSoftware engineers, Engineering managers, Product managers, Support teams, Operations leads, Founders, Research and knowledge workers
artemis—SupervisedMobile QA engineers, Test automation engineers, AI coding assistant users, Android developers, CI and DevOps engineers

FAQ

What is the required setup to use hCaptcha Challenger?
You install the package via uv, set up a Gemini API key, and use the provided AgentV class with a Playwright Page object. The quickstart example shows initializing the agent, clicking the checkbox, and waiting for the challenge.
Do I need to train my own CNN models?
No, the framework uses multimodal large language models for zero-shot adaptation to spatial visual tasks, eliminating the need for task-specific fine-tuning or extra training parameters.
Which hCaptcha challenge types are supported?
Documentation lists support for image label binary, image label area select (point), image drag drop, and image label multiple choice, with some limitations for bounding box segmentation.
Can I use it with browsers other than Chromium?
Yes, any browser supported and launched by Playwright can be used, as the Agent operates exclusively through a Playwright Page object.
What integrations does it offer?
It integrates with Playwright for browser control and Google Gemini models via API, and references other projects like Dislock, undetected-playwright, and epic-awesome-gamer as related tools.
How do I check pricing?
The supplied documentation does not describe a pricing model; consult the project repository or distribution channel for any commercial terms.
Can I use hCaptcha Challenger to manage datasets?
Yes, the documentation provides a command to collect image datasets: hc dataset collect.
How does it handle frequent hCaptcha updates?
The agent uses spatial chain-of-thought reasoning from multimodal LLMs to adapt dynamically, which the project presents as an alternative to retraining CNN models that can become obsolete quickly.

Comments

No comments yet.

Embed a listing badge

Featured on AI Agents Marketplace
<a href="https://aiagentsmarketplace.dev/agents/hcaptcha-challenger"><img src="https://aiagentsmarketplace.dev/badges/featured.svg" alt="Featured on AI Agents Marketplace" width="262" height="36"></a>
See badge options