Skip to main content
Credentials are the automation layer for Agent Auth. Store login information securely, and Kernel handles authentication automatically—no user interaction needed. Three ways to provide credentials:
  • Save during login — Capture credentials when a user logs in via Hosted UI or Programmatic
  • Pre-store in Kernel — Create credentials before any login for fully headless automation
  • Connect 1Password — Use credentials from your existing 1Password vaults

1Password Integration

Connect your 1Password vaults to automatically use existing credentials with Agent Auth. Credentials are matched by domain—no manual setup per site.

Save credentials during login

Add save_credential_as to any invocation. The credentials entered during login are securely stored:
Once saved, the profile stays authenticated automatically. When the session expires, Kernel re-authenticates using the stored credentials—no user interaction needed.

Pre-store credentials

For fully automated flows where no user is involved, create credentials upfront:
Then link the credential to an auth agent:

2FA with TOTP

For sites with authenticator app 2FA, include totp_secret to fully automate login:

SSO / OAuth

For sites with “Sign in with Google/GitHub/Microsoft”, set sso_provider and include the OAuth provider in allowed_domains:
The workflow automatically clicks the matching SSO button and completes OAuth.

Partial Credentials

Credentials don’t need to contain every field. Store what you have, and the flow pauses for missing values. Example: Credential has email + TOTP secret, but no password:
This is useful when you want to:
  • Store TOTP secrets but have users enter their password each time
  • Pre-fill username/email but collect password at runtime
  • Merge user-provided values into an existing credential using save_credential_as

Security

Notes

  • The values object is flexible—store whatever fields the login form needs (email, username, company_id, etc.)
  • Deleting a credential unlinks it from associated auth agents; they’ll no longer auto-authenticate
  • One credential per account—create separate credentials for different user accounts