browser-login
Original:🇺🇸 English
Translated
Drive an authentication flow once, sanitize cookies through AIDefence, and vault a reusable cookie handle in browser-cookies for future sessions
5installs
Sourceruvnet/ruflo
Added on
NPX Install
npx skill4agent add ruvnet/ruflo browser-loginTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Browser Login
Authenticate against a target site once, then vault the resulting session credentials so subsequent skills (, , ) can reuse them without re-driving the auth flow. Borrows the pattern from Browserbase's but stores the resulting context in AgentDB rather than on a hosted backend.
browser-extractbrowser-form-fillbrowser-testcookie-sync/SKILL.mdWhen to use
- Establishing reusable auth for a host the agent will visit repeatedly.
- Refreshing a vaulted cookie set whose expiry has passed.
- Capturing an MFA-protected session that requires interactive completion.
Steps
- Open a recorded session via .
browser-record - Drive the auth flow — fill credentials with /
browser_fill. Credentials come from the user or environment; do not read them frombrowser_typeor paste them into the trajectory args..env - Handle MFA (when ): pause for user input or invoke the user's TOTP helper; capture only the resulting redirect, not the code itself.
--mfa - Capture cookies via :
browser_evalOr use the Playwright context API where exposed.javascriptdocument.cookie // returns the cookie string for the active document - AIDefence sanitize:
Tokens that look raw get vault-wrapped (an opaque handle) before AgentDB store; raw values never enter the namespace.bash
# Each cookie value passes aidefence_scan to flag raw secrets / high-entropy tokens. - Store in :
browser-cookiesbashnpx -y @claude-flow/cli@latest memory store --namespace browser-cookies \ --key "<host>" \ --value "{vault_handle:<opaque>, expiry:<iso>, aidefence_verdict:safe}" - Return the vault handle so downstream skills can mount it via the planned MCP tool.
browser_cookie_use
Caveats
- Never log raw cookie values, tokens, or passwords. The trajectory step for the auth POST records only the form field names and a placeholder for values.
<redacted> - The 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
browser_cookie_use(TBD).scripts/ - Some sites bind cookies to a UA fingerprint; if a vaulted cookie fails on reuse, re-run . Do not attempt to fingerprint-match yourself.
browser-login - This skill is not a credential storage solution. The vault-handle pattern protects against AgentDB leaks, not against compromise of the agent's environment.