一键导入
2-captcha
Solve CAPTCHAs using 2Captcha service via CLI. Use for bypassing captchas during web automation, account creation, or form submission.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Solve CAPTCHAs using 2Captcha service via CLI. Use for bypassing captchas during web automation, account creation, or form submission.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Authoritative user guide + reference map for Mux-Swarm itself (v0.12.1). Use when the user asks how Mux works, how to configure it, what a command/flag/config-key does, how modes/teams/sandbox/auth/ACP/delegation work, or how to troubleshoot Mux. Points to exact sections in the bundled DOCS.md instead of dumping it.
Structured diff and PR code review with a prioritized checklist. Use when reviewing staged changes, pull requests, or any code diff before merge.
Profile, clean, and analyze tabular data (CSV/JSON/Parquet) with pandas/polars. Use when exploring datasets, computing aggregations, joining tables, resampling time series, or producing analysis charts.
Find vulnerable and outdated dependencies across ecosystems (Python, Node, .NET, Rust, Go). Use when auditing a project for CVEs, preparing a release, or investigating a security report.
Design distinctive, polished UI that avoids generic 'AI slop'. Use when making visual design decisions: typography, color, spacing, hierarchy, motion, and component composition.
Run real SAST and secret-scanning tools locally (semgrep, bandit, gitleaks, trivy). Use when auditing a codebase for vulnerabilities, exposed secrets, or vulnerable dependencies before shipping or on demand.
| name | 2-captcha |
| description | Solve CAPTCHAs using 2Captcha service via CLI. Use for bypassing captchas during web automation, account creation, or form submission. |
| homepage | https://github.com/adinvadim/2captcha-cli |
| requires_bins | ["node","npm"] |
Solve CAPTCHAs programmatically using the 2Captcha human-powered service.
npm install -g 2captcha-cli
# Verify
2captcha-cli --version
Set your API key as an environment variable. Get your key at https://2captcha.com/enterpage
Unix/Mac:
export TWOCAPTCHA_API_KEY=your-key
# To persist, add the above line to ~/.bashrc or ~/.zshrc
Windows:
# Session only
$env:TWOCAPTCHA_API_KEY = "your-key"
# Persistent
setx TWOCAPTCHA_API_KEY your-key
Unix/Mac:
mkdir -p ~/.2captcha
echo "YOUR_API_KEY" > ~/.2captcha/api-key
Windows:
New-Item -ItemType Directory -Path "$env:APPDATA\2captcha" -Force
"YOUR_API_KEY" | Out-File -FilePath "$env:APPDATA\2captcha\api-key" -Encoding UTF8
2captcha-cli balance
# From file
2captcha-cli image /path/to/captcha.png
# From URL
2captcha-cli image "https://site.com/captcha.jpg"
# With options
2captcha-cli image captcha.png --numeric 1 --math
2captcha-cli image captcha.png --comment "Enter red letters only"
2captcha-cli recaptcha2 --sitekey "6Le-wvk..." --url "https://example.com"
2captcha-cli recaptcha3 --sitekey "KEY" --url "URL" --action "submit" --min-score 0.7
2captcha-cli hcaptcha --sitekey "KEY" --url "URL"
2captcha-cli turnstile --sitekey "0x4AAA..." --url "URL"
2captcha-cli funcaptcha --public-key "KEY" --url "URL"
# v3
2captcha-cli geetest --gt "GT" --challenge "CHALLENGE" --url "URL"
# v4
2captcha-cli geetest4 --captcha-id "ID" --url "URL"
2captcha-cli text "What color is the sky?" --lang en
Look for:
data-sitekey attribute in HTMLk= parameter in reCAPTCHA iframe URLgoogle.com/recaptcha/api2/anchorLook for:
data-sitekey in hCaptcha divhcaptcha.comLook for:
data-sitekey in Turnstile widgetcf-turnstile class elementsg-recaptcha-response or callback// After getting token from 2captcha-cli
document.getElementById('g-recaptcha-response').value = token;
// Or call callback if defined
___grecaptcha_cfg.clients[0].callback(token);
Unix/Mac:
export TWOCAPTCHA_API_KEY="YOUR_API_KEY"
token=$(2captcha-cli recaptcha2 --sitekey "6Le-wvk..." --url "https://example.com")
echo "Token: $token"
Windows:
$env:TWOCAPTCHA_API_KEY = "YOUR_API_KEY"
$token = 2captcha-cli recaptcha2 --sitekey "6Le-wvk..." --url "https://example.com"
Write-Host "Token: $token"
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