auth-and-sessions

Log in, handle OAuth and MFA, persist sessions, and sync cookies between local and cloud browsers. Use when the agent needs to authenticate or manage browser sessions.

MIT
Install
npx skills add browser-use/browser-skills --skill auth-and-sessions

Authenticate and manage browser sessions using the browser-use Python SDK. Handles login flows with domain-scoped secrets, 1Password auto-TOTP, and OAuth consent screens. Uses persistent profiles so the agent stays logged in across runs.

bash
pip install browser-use-sdk

Prerequisites

Set your Browser Use API key before running any examples. Get one at cloud.browser-use.com.

bash
export BROWSER_USE_API_KEY=your_key

Reference

TopicReferenceUse for
Login Flowslogin-flows.mdUsername/password login, social login buttons, and SSO redirects
MFA Handlingmfa-handling.mdTOTP codes, SMS verification, email verification during authentication
Session Persistencesession-persistence.mdCookie export/import, cloud profile sync, and session reuse across runs
OAuth Flowsoauth-flows.mdOAuth redirect handling, consent screens, and token capture
auth-and-sessions - Browser Skills