2captcha
Solve CAPTCHAs using 2Captcha service via CLI. Use for bypassing captchas during web automation, account creation, or form submission.
- License 许可
- MIT
- 最近更新
- 2026-06-07
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- 2captcha
- homepage
- https://github.com/adinvadim/2captcha-cli
- description
- Solve CAPTCHAs using 2Captcha service via CLI. Use for bypassing captchas during web automation, account creation, or form submission.
03 SKILL.md 正文
2Captcha Skill
Solve CAPTCHAs programmatically using the 2Captcha human-powered service.
Installation
# One-line install
curl -fsSL https://raw.githubusercontent.com/adinvadim/2captcha-cli/main/solve-captcha \
-o /usr/local/bin/solve-captcha && chmod +x /usr/local/bin/solve-captcha
# Verify
solve-captcha --version
Configuration
# Save your 2Captcha API key
mkdir -p ~/.config/2captcha
echo "YOUR_API_KEY" > ~/.config/2captcha/api-key
# Or use environment variable
export TWOCAPTCHA_API_KEY="your-key"
Get your API key at https://2captcha.com/enterpage
Quick Reference
Check Balance First
./solve-captcha balance
Image CAPTCHA
# From file
./solve-captcha image /path/to/captcha.png
# From URL
./solve-captcha image "https://site.com/captcha.jpg"
# With options
./solve-captcha image captcha.png --numeric 1 --math
./solve-captcha image captcha.png --comment "Enter red letters only"
reCAPTCHA v2
./solve-captcha recaptcha2 --sitekey "6Le-wvk..." --url "https://example.com"
reCAPTCHA v3
./solve-captcha recaptcha3 --sitekey "KEY" --url "URL" --action "submit" --min-score 0.7
hCaptcha
./solve-captcha hcaptcha --sitekey "KEY" --url "URL"
Cloudflare Turnstile
./solve-captcha turnstile --sitekey "0x4AAA..." --url "URL"
FunCaptcha (Arkose)
./solve-captcha funcaptcha --public-key "KEY" --url "URL"
GeeTest
# v3
./solve-captcha geetest --gt "GT" --challenge "CHALLENGE" --url "URL"
# v4
./solve-captcha geetest4 --captcha-id "ID" --url "URL"
Text Question
./solve-captcha text "What color is the sky?" --lang en
Finding CAPTCHA Parameters
reCAPTCHA sitekey
Look for:
data-sitekeyattribute in HTMLk=parameter in reCAPTCHA iframe URL- Network request to
google.com/recaptcha/api2/anchor
hCaptcha sitekey
Look for:
data-sitekeyin hCaptcha div- Network requests to
hcaptcha.com
Turnstile sitekey
Look for:
data-sitekeyin Turnstile widgetcf-turnstileclass elements
Workflow for Browser Automation
- Detect CAPTCHA - Check if page has captcha element
- Extract params - Get sitekey/challenge from page source
- Solve via CLI - Call solve-captcha with params
- Inject token - Set
g-recaptcha-responseor callback
Example: Inject reCAPTCHA Token
// After getting token from solve-captcha
document.getElementById('g-recaptcha-response').value = token;
// Or call callback if defined
___grecaptcha_cfg.clients[0].callback(token);
Cost Awareness
- Check balance before heavy automation
- Image: ~$0.001 per solve
- reCAPTCHA/hCaptcha/Turnstile: ~$0.003 per solve
Error Handling
Common errors:
ERROR_ZERO_BALANCE- Top up accountERROR_NO_SLOT_AVAILABLE- Retry in few secondsERROR_CAPTCHA_UNSOLVABLE- Bad image or impossible captchaERROR_WRONG_CAPTCHA_ID- Invalid task ID
Notes
- Solving takes 10-60 seconds depending on type
- reCAPTCHA v3 may need multiple attempts for high scores
- Some sites detect automation - use carefully
- Tokens expire! Use within 2-5 minutes
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
ceaser
Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp <subcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir/UltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).
ceaser-send
Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp <subcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir/UltraHonk zero-knowledge proofs.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
moldium
Post and manage content on the Moldium blog platform. Triggered by "post to Moldium", "write a blog post", "publish an article", etc.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http://weakaccept.top:8000/.