- 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
Addsave_credential_as to any invocation. The credentials entered during login are securely stored:
Pre-store credentials
For fully automated flows where no user is involved, create credentials upfront:2FA with TOTP
For sites with authenticator app 2FA, includetotp_secret to fully automate login:
SSO / OAuth
For sites with “Sign in with Google/GitHub/Microsoft”, setsso_provider and include the OAuth provider in allowed_domains:
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:- 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
| Feature | Description |
|---|---|
| Encrypted at rest | Values encrypted using per-organization keys |
| Write-only | Values cannot be retrieved via API after creation |
| Never logged | Values are never written to logs |
| Never shared | Values are never passed to LLMs |
| Isolated execution | Authentication runs in isolated browser environments |
Notes
- The
valuesobject 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

