Auto Login — Auto 记录in
v1.0.0通用网页自动登录 技能 - 集成验证码识别(支持任意 OpenAI 兼容视觉 API)。支持配置化登录流程、多网站规则、自动重试、WSL 自动检测。
运行时依赖
安装命令
点击复制技能文档
Auto 记录in 技能 - 自动登录 v1.0.0
全自动网页登录解决方案 — 集成验证码识别、账号密码填写、登录状态检测、失败重试。
实测成功率:100% - 已在超鹰打码平台等多个真实网站验证
⚠️ 重要:安装路径说明
ClawHub 默认安装到当前工作目录的 ./技能s 子目录!
✅ 正确的安装方式 # 方式 1:进入 workspace 目录安装(推荐) cd ~/.OpenClaw/workspace ClawHub 安装 auto-记录in
# 方式 2:使用 --workdir 参数 ClawHub 安装 auto-记录in --workdir ~/.OpenClaw/workspace
# 方式 3:设置环境变量(永久生效) 导出 ClawHub_WORKDIR=~/.OpenClaw/workspace ClawHub 安装 auto-记录in
❌ 错误的安装方式 # 不要在 home 目录直接运行! cd ~ ClawHub 安装 auto-记录in # 会安装到 ~/技能s/auto-记录in ❌
验证安装位置 # 正确位置 ls -la ~/.OpenClaw/workspace/技能s/auto-记录in/
🎯 核心功能 功能 说明 自动填写账号密码 支持选择器配置,适配不同网站 验证码自动识别 混合模式:本地 Tesseract OCR → 阿里云 Qwen VL 降级 登录状态检测 URL 变化 + 页面内容关键词双重检测 失败自动重试 最多 3 次重试,应对验证码刷新 截图记录 每步可选截图,便于调试 配置化规则 预定义网站规则 + 自定义选择器 🔑 必需配置 视觉模型 API(验证码识别)
本 技能 支持通用的 提供者_* 环境变量,默认使用阿里云 Qwen VL。
方案 1:阿里云 DashScope(通义千问 VL)- 默认 导出 提供者_API_KEY="sk-your-API-key" 导出 提供者_BASE_URL="https://dashscope.aliyuncs.com/compatible-mode/v1" 导出 提供者_模型="qwen3-vl-plus"
或使用兼容的旧变量名:
导出 VISION_API_KEY="sk-your-API-key" 导出 VISION_BASE_URL="https://dashscope.aliyuncs.com/compatible-mode/v1" 导出 VISION_模型="qwen3-vl-plus"
获取 API Key:
访问 阿里云 DashScope 控制台 创建/登录账号 申请 API Key 选择 qwen3-vl-plus 视觉模型 方案 2:自定义提供商(兼容任意 OpenAI 格式 API) # 使用 应用Id 认证的提供商(如内部 API) 导出 提供者_应用_ID="your-应用-id" 导出 提供者_BASE_URL="https://your-API.example.com/v1" 导出 提供者_模型="your-模型-name"
# 或使用 API Key 认证的提供商 导出 提供者_API_KEY="your-API-key" 导出 提供者_BASE_URL="https://your-API.example.com/v1" 导出 提供者_模型="your-模型-name"
⚠️ 重要:认证方式
使用 提供者_应用_ID 时:Authorization: Bearer <应用Id> 使用 提供者_API_KEY 时:Authorization: Bearer 方案 3:OpenAI 兼容接口 导出 OPENAI_API_KEY="sk-..." 导出 OPENAI_BASE_URL="https://API.openAI.com/v1" 导出 OPENAI_模型="gpt-4o-mini"
配置文件方式(推荐)
在 ~/.OpenClaw/OpenClaw.json 中配置:
{ "模型s": { "提供者s": { "aliyun": { "APIKey": "sk-...", "baseUrl": "https://dashscope.aliyuncs.com/compatible-mode/v1", "模型": "qwen3-vl-plus" }, "generic": { "应用Id": "your-应用-id", "baseUrl": "https://your-API.example.com/v1", "模型": "your-模型-name" } } } }
优先级说明
配置加载优先级(从高到低):
命令行参数 --API-key / --模型 / --提供者 环境变量 配置文件 ~/.OpenClaw/OpenClaw.json 🚀 快速开始 方式 1:使用预定义规则(超鹰打码平台) # 1. 创建配置文件 cat > 记录in-config.json << 'EOF' { "site": "chaojiying", "url": "https://www.chaojiying.com/user/记录in/", "username": "your_username", "password": "your_password" } EOF
# 2. 运行自动登录(阿里云 Qwen VL) cd ~/.OpenClaw/workspace 提供者_API_KEY="sk-xxx" 提供者_BASE_URL="..." 提供者_模型="qwen3-vl-plus" \ node 技能s/auto-记录in/scripts/运行.mjs --config-file=./记录in-config.json
# 或使用旧变量名(兼容) VISION_API_KEY="sk-xxx" VISION_BASE_URL="..." VISION_模型="qwen3-vl-plus" \ node 技能s/auto-记录in/scripts/运行.mjs --config-file=./记录in-config.json
# 2. 运行自动登录(自定义提供商 - 使用 应用Id) 提供者_应用_ID="your-应用-id" \ 提供者_BASE_URL="https://your-API.example.com/v1" \ 提供者_模型="your-模型-name" \ node 技能s/auto-记录in/scripts/运行.mjs --config-file=./记录in-config.json
# 2. 运行自动登录(自定义提供商 - 使用 API Key) 提供者_API_KEY="your-API-key" \ 提供者_BASE_URL="https://your-API.example.com/v1" \ 提供者_模型="your-模型-name" \ node 技能s/auto-记录in/scripts/运行.mjs --config-file=./记录in-config.json
方式 2:使用自动登录框架(推荐) # 自动登录框架提供更完整的控制 node scripts/auto-记录in-框架.mjs --config-file=./记录in-config.json --keep-open
方式 3:命令行参数 node 技能s/auto-记录in/scripts/运行.mjs \ --url="https://example.com/记录in" \ --username="your_user" \ --password="your_pass" \ --selectors='{"username":"输入[name=user]","password":"输入[name=pass]","captchA输入":"输入[name=captcha]"}'
方式 4:指定视觉模型提供商 # 使用阿里云 node scripts/auto-记录in-框架.mjs \ --config-file=./记录in-config.json \ --提供者=aliyun \ --模型=qwen3-vl-plus
# 使用自定义提供商(如内部 API) 提供者_应用_ID="your-应用-id" \ node scripts/auto-记录in-框架.mjs \ --config-file=./记录in-config.json \ --提供者=generic \ --模型=your-模型-name
📋 预定义网站规则 chaojiying(超鹰打码平台) { "site": "chaojiying", "url": "https://www.chaojiying.com/user/记录in/", "selectors": { "username": "输入[name=\"user\"]", "password": "输入[name=\"pass\"]", "captchA输入": "输入[name=\"imgtxt\"]", "submit": "输入[type=\"submit\"]" } }
generic(通用规则)
自动检测选择器,适用于大多数标准登录页面。
🔧 高级配置 完整配置示例 { "site": "chaojiying", "url": "https://www.chaojiying.com/user/记录in/", "username": "your_username", "password": "your_password", "config": { "headless": false, "keepOpen": true, "timeout": { "pageLoad": 30000, "element": 5000, "submit": 10000 }, "retry": { "maxAttempts": 3, "delay": 1000 }, "screenshots": { "enabled": true, "fullPage": true, "输出Dir": "./screenshots" } } }
配置选项说明 选项 类型 默认值 说明 headless boole