简介
通过 ngrok 隧道建立远程浏览器访问,支持用户手动登录、2FA、验证码等敏感操作,Google OAuth 单账号授权。
原始描述
Remote browser access for login, 2FA, captcha, and manual verification. Protected by Google OAuth - only the configured email can access. Use when you need t...
通过你的 Agent 添加
安装目录:browser-control/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: browser-control description: Remote browser access for login, 2FA, captcha, and manual verification. Protected by Google OAuth - only the configured email can access. Use when you need the user to log into a website, complete 2FA/MFA, solve a captcha, or do any manual browser action.
Browser Control
Remote browser access for login, 2FA, captcha, and manual verification. Protected by Google OAuth - the user must login with their Google account.
Installation (First Time Only)
Before using this skill, run the installer to configure ngrok and Google OAuth:
bash ~/.openclaw/skills/browser-control/install.sh
The installer will:
- Install dependencies (VNC, noVNC, ngrok)
- Ask for your ngrok authtoken (get it from https://dashboard.ngrok.com/get-started/your-authtoken)
- Verify your Google account (only this email will be able to access the browser)
This only needs to be done once per machine.
When to use
When you need the user to:
- Log into a website
- Complete 2FA / MFA
- Solve a captcha
- Do any manual browser action
Check if running
~/.openclaw/skills/browser-control/status.sh
Returns JSON with status of VNC, noVNC, and ngrok tunnel.
Start if not running
~/.openclaw/skills/browser-control/start-tunnel.sh
Starts VNC + noVNC + ngrok tunnel with Google OAuth. Takes ~30 seconds.
Get URL
⚠️ ALWAYS read this file fresh before sending the URL to the user. Never use cached values.
cat ~/.openclaw/skills/browser-control/config.json
Returns:
{
"novncUrl": "https://xxx.ngrok.app/vnc.html?password=xxx&autoconnect=true",
"tunnelUrl": "https://xxx.ngrok.app",
"allowedEmail": "user@gmail.com",
"cdpUrl": "http://localhost:9222"
}
The URL changes every time the tunnel restarts. Always read the file, don't trust memory.
Workflow
- Check status with
status.sh - If not running, start with
start-tunnel.sh - Read
config.jsonNOW (not from memory!) for URL - Send user the link
- User logs in with their Google account
- User does the manual action (login, 2FA, etc.)
- Wait for user to say "done"
- Continue using browser via CDP (localhost:9222)
Important: The tunnel URL changes frequently. Always cat config.json right before sending the link.
Example message to user
🔐 I need you to log in.
Open: https://xxx.ngrok.app/vnc.html?password=xxx&autoconnect=true
You'll need to sign in with your Google account.
Let me know when you're done!
Note: Do NOT mention passwords. The link includes auto-login. The user just needs to:
- Click the link
- Login with Google
- Do the action
- Tell you "done"
Security
- Protected by Google OAuth
- Only the email configured during install can access
- No password to leak - authentication is via Google
- Tunnel URL changes on restart (adds obscurity)
Stop when done (optional)
~/.openclaw/skills/browser-control/stop-tunnel.sh
After server reboot
The tunnel does NOT auto-start on reboot. You must run start-tunnel.sh again.
Always check status.sh first before assuming the tunnel is running.
Files
~/.openclaw/skills/browser-control/
├── SKILL.md # This file
├── start-tunnel.sh # Start everything
├── stop-tunnel.sh # Stop everything
├── status.sh # Check status
├── config.json # Current URL (read this before sending to user!)
├── ngrok-config.json # Configured email
├── vnc-password # VNC password (auto-included in URL)
└── ngrok.log # ngrok logs
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。