Collect credentials securely via Kernel’s hosted page, then use the authenticated session in your automations. This is the recommended approach for most applications. Use the Hosted UI when:Documentation Index
Fetch the complete documentation index at: https://tbd-6fc993ce-pools-fill-rate-1772767851.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
- You need users to provide their credentials
- You want the simplest integration with minimal code
- You want Kernel to handle 2FA and multi-step login flows
Getting started
1. Create a Connection
A Managed Auth Connection links a profile to a domain you want to keep authenticated.2. Start a Login Session
Start a Managed Auth Session to get the hosted login URL.3. Collect Credentials
Send the user to the hosted login page:- See the login page for the target website
- Enter their credentials
- Complete 2FA if needed
4. Poll for Completion
On your backend, poll until authentication completes:Poll every 2 seconds. The session expires after 20 minutes if not completed, and the flow times out after 10 minutes of waiting for user input.
5. Use the Profile
Create browsers with the profile and navigate to the site. The browser session will already be authenticated:Managed Auth Connections are generated using Kernel’s stealth mode. Use
stealth: true when creating authenticated browser sessions for the best experience.Complete Example
Adding Features
The basic flow above gets you started. Add these features as needed:Credentials and Auto-Reauth
Credentials are saved after every successful login, enabling automatic re-authentication when the session expires. One-time codes (TOTP, SMS, etc.) are not saved. To opt out of credential saving, setsave_credentials: false when creating the connection. See Credentials for more on automated authentication.
Custom Login URL
If the site’s login page isn’t at the default location, specify it when creating the connection:SSO/OAuth Support
Sites with “Sign in with Google/GitHub/Microsoft” are supported. The user completes the OAuth flow with the provider, and the authenticated session is automatically saved to the Kernel profile. Make sure to add all of the OAuth provider’s domains toallowed_domains:
Post-Login URL
After successful authentication,post_login_url will be set to the page where the login landed. Use this start your automation from the right place: