2captcha

2captcha is a skill for Claude Code, Codex from AgentComputerAI/torch. It costs 96 tokens per session (1,949 once invoked), scanned A, original, MIT.

Instructions for using 2Captcha, an online service where human workers solve CAPTCHA challenges (tests that distinguish people from automated programs). It covers several CAPTCHA types and requires an API key.

In plain words
What is it for?
Use it when scraping encounters reCAPTCHA, Cloudflare Turnstile, hCaptcha, Geetest, FunCaptcha, or image-based CAPTCHA challenges.
Why use it?
It provides a way for a scraper to continue when a website blocks access with a CAPTCHA that normal browser techniques cannot handle.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Use it when scraping encounters reCAPTCHA, Cloudflare Turnstile, hCaptcha, Geetest, FunCaptcha, or image-based CAPTCHA challenges.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/agentcomputerai/torch/2captcha
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add AgentComputerAI/torch --skill 2captcha
Clone the repo
git clone --depth 1 https://github.com/AgentComputerAI/torch

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for 2captcha

README.md
[![agentmods](https://agentmods.dev/badge/skills/agentcomputerai/torch/2captcha/github.svg)](https://agentmods.dev/skills/agentcomputerai/torch/2captcha)
Your own site
<a href="https://agentmods.dev/skills/agentcomputerai/torch/2captcha"><img src="https://agentmods.dev/badge/skills/agentcomputerai/torch/2captcha/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for 2captcha

Your own site · 80×15
<a href="https://agentmods.dev/skills/agentcomputerai/torch/2captcha"><img src="https://agentmods.dev/badge/skills/agentcomputerai/torch/2captcha.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 96 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,949 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00096 $0.01949
Opus 5.5 $0.00038 $0.00780
Sonnet 5.5 $0.00019 $0.00390
Haiku 4.5 $0.00010 $0.00195

Measured 1mo ago against content hash 1c414da89af6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

2captcha scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/2captcha/SKILL.md · 252 lines

How it starts

The opening of the file, as written. The whole thing — 252 lines — stays where its author put it; the contents beside it link to each section on GitHub.

2Captcha

2Captcha is a human-backed CAPTCHA solving service. You send it a captcha challenge (usually just a pageurl + sitekey), it returns a token ~20-40s later, and you inject that token into the target page to bypass the captcha.

Use this skill when:

  • Stealth mode + headed Chrome fail against Cloudflare Turnstile
  • reCAPTCHA v2 / v3 blocks the flow
  • hCaptcha, Geetest, FunCaptcha appear on signup/login pages
  • You need image-text OCR fallback

For cheaper pricing (~$0.60/1K vs $1.00/1K) and faster solves, also check capmonster — the APIs are similar enough to swap providers.

Installation

npm install @2captcha/captcha-solver

Setup

import TwoCaptcha from "@2captcha/captcha-solver";

// Default polling interval: 5000ms
const solver = new TwoCaptcha.Solver(process.env.TWOCAPTCHA_API_KEY);

// Or with custom polling (seconds)
const solver = new TwoCaptcha.Solver(process.env.TWOCAPTCHA_API_KEY, 10);

Always read the key from process.env.TWOCAPTCHA_API_KEY — never hardcode it. Torch loads .env from the repo root automatically.

Check balance

Do this first in development to confirm your key works and you have funds:

const balance = await solver.balance();
console.log(`2Captcha balance: $${balance}`);

2Captcha charges only for successful solves, but verify balance before starting large scrapes.

Finding the sitekey

The sitekey is a public identifier the target site passes to the CAPTCHA provider. Find it before calling the solver:

Captcha type Where the sitekey lives
reCAPTCHA v2 <div class="g-recaptcha" data-sitekey="..."> or iframe[src*="recaptcha"] URL
reCAPTCHA v3 grecaptcha.execute('SITEKEY', ...) in page JS
Turnstile <div class="cf-turnstile" data-sitekey="0x4AAA..."> or iframe[src*="turnstile"]
hCaptcha <div class="h-captcha" data-sitekey="...">

Extract it from Puppeteer:

const sitekey = await page.$eval(
  '.g-recaptcha, .cf-turnstile, .h-captcha',
  (el) => el.getAttribute('data-sitekey')
);

Read the full file on GitHub · 252 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 252 lines · 96 tokens per session scan A 1c414da89af6

Subscribe to this mod's changes

2captcha is a skill published in the GitHub repository AgentComputerAI/torch (5 stars, last pushed 6mo ago), licensed MIT. It adds 96 tokens to every session and 1,949 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

chrome-extension

Use when building or shipping a Manifest V3 browser extension and hitting its quirks — service worker dying and losing state, permission warnings, a Chrome Web Store rejection, content-script/worker/popup messaging, or an MV2-to-V3 migration. NOT a generic web app (that is nextjs), NOT a desktop shell (that is…

ericrisco/rsc-harness · 76 tokens

data-scraper

Use when data lives on a website with no usable API — listings, prices, public records — and the scrape must stay legal and not get blocked: legal gate, extraction path, durable selectors, pacing, resilience. NOT parsing bytes you already hold into fields (that is structured-extraction), NOT a documented API or key…

ericrisco/rsc-harness · 77 tokens

nodejs

Use when building or operating a plain Node.js / Express 5 backend service: project layout, async correctness, central error middleware, fail-fast config, graceful shutdown on SIGTERM. NOT DI modules/providers/guards (that is nestjs), NOT the type system or tsconfig (that is typescript), NOT REST contract design (that…

ericrisco/rsc-harness · 77 tokens

checking-a-page

Check that a web page you wrote or changed actually works, by opening it in a browser and driving every control on it. Use after creating or editing an HTML page, or the JavaScript or CSS that a page loads.

awss1i/assay · 49 tokens

browser-qa

Testing web apps through a real browser: reconnaissance before acting, selector discovery, state capture, console errors and screenshot evidence. Use on a web surface end to end, or to reproduce a front-end bug.

damianvtran/local-operator · 45 tokens

browser-automation

A browser-automation workflow that detects the terminal environment and chooses a browser control tool. It supports opening pages, taking snapshots, clicking, filling fields, and other checks.

Insajin/autopus-adk · 34 tokens