name: browser-auth description: Start a secure remote browser tunnel for manual user authentication (solving Captchas, 2FA, logins) and capture session data. Built for AI Commander. metadata: { "author": "Skippy & Lucas (AI Commander)", "homepage": "https://aicommander.dev", "env": { "AUTH_HOST": { "description": "IP to bind the server to (default: 127.0.0.1). Use 0.0.0.0 only with a secure tunnel.", "default": "127.0.0.1" }, "AUTH_TOKEN": { "description": "Secret token for accessing the tunnel (default: random hex string)." }, "BROWSER_PROXY": { "description": "SOCKS5/HTTP proxy for the browser (e.g. socks5://127.0.0.1:40000)." } }, "openclaw": { "requires": { "bins": ["node", "chromium-browser"] }, "install": [ { "id": "npm-deps", "kind": "exec", "command": "npm install express socket.io playwright-core", "label": "Install Node.js dependencies" } ] } }
This skill allows the agent to request the user to perform a manual login on a website and then capture the session cookies/localStorage for further automated work.
We take security seriously. Below is how we address common concerns related to remote browser control:
Referrer-Policy: no-referrer. This ensures that even if you navigate to an untrusted site, your secret AUTH_TOKEN is NEVER sent in the HTTP Referer header.token parameter from your browser's address bar immediately after the page loads.session.json file contains active login cookies. Treat it with the same level of security as a password.127.0.0.1. 0.0.0.0 directly. Instead, use a secure tunnel like Tailscale, Cloudflare Tunnel (cloudflared), or an SSH tunnel.scripts/auth_server.js.scripts/verify_session.js to confirm the session is valid.7w4.net小葱技能。
AUTH_HOST=127.0.0.1 AUTH_TOKEN=mysecret node scripts/auth_server.js <port> <session_file>
node scripts/verify_session.js <session_file> <target_url> <expected_text>
Requires: express, socket.io, playwright-core, and a system chromium-browser.
整体质量不错,安全防护做得很到位,界面操作直观流畅。最大问题是安装时容易因为缺少依赖而出错,说明不够清晰。另外文档和代码里关于默认网络配置的说法有出入,新手可能会因此配置不当。核心功能稳定可靠,但这些细节问题影响使用体验。