Drive an authentication flow once, sanitize cookies through AIDefence, and vault a reusable cookie handle in browser-cookies for future sessions
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-browser-login-659b78e21315 ,按照其中的说明把「browser-login」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Authenticate against a target site once, then vault the resulting session credentials so subsequent skills (browser-extract, browser-form-fill, browser-test) can reuse them without re-driving the auth flow. Borrows the pattern from Browserbase's cookie-sync/SKILL.md but stores the resulting context in AgentDB rather than on a hosted backend.
browser-record.browser_fill / browser_type. Credentials come from the user or environment; do not read them from .env or paste them into the trajectory args.--mfa): pause for user input or invoke the user's TOTP helper; capture only the resulting redirect, not the code itself.browser_eval:
document.cookie // returns the cookie string for the active document
Or use the Playwright context API where exposed.# Each cookie value passes aidefence_scan to flag raw secrets / high-entropy tokens.
Tokens that look raw get vault-wrapped (an opaque handle) before AgentDB store; raw values never enter the namespace.browser-cookies:
npx -y @claude-flow/cli@latest memory store --namespace browser-cookies \
--key "<host>" \
--value "{vault_handle:<opaque>, expiry:<iso>, aidefence_verdict:safe}"
browser_cookie_use MCP tool.<redacted> placeholder for values.browser_cookie_use MCP tool is reserved (ADR-0001 §7) but not yet implemented. Until then, downstream skills mount the vaulted cookies via a helper bash function in scripts/ (TBD).browser-login. Do not attempt to fingerprint-match yourself.