Auth Vault
The Auth Vault provides secure credential storage for authentication workflows. Credentials are always encrypted at rest using AES-256-GCM, and the LLM never sees passwords - only profile names.Quick Start
Commands
Save Auth Profile
Store credentials for later use:Login with Profile
Navigate to login page and automatically fill credentials:- Navigates to the profile’s URL
- Fills username and password fields
- Clicks the submit button
- Updates
lastLoginAttimestamp
List Profiles
View all saved auth profiles:Show Profile Details
View details for a specific profile (without password):Delete Profile
Remove a stored auth profile:Storage Location
Auth profiles are stored at:- Has 0600 permissions (owner read/write only)
- Is encrypted with AES-256-GCM
- Contains username, password, URL, and selectors
Encryption
Automatic Encryption Key
If no encryption key is configured, agent-browser automatically generates one on first use:- Contains a 256-bit random key (64 hex characters)
- Has 0600 permissions (owner read/write only)
- Is used for all encryption operations
Manual Encryption Key
For production deployments, set an explicit encryption key:Encryption Algorithm
- Algorithm: AES-256-GCM
- Key size: 256 bits (32 bytes)
- IV size: 96 bits (12 bytes)
- Authentication: AEAD with GCM auth tag
Decrypted Data Structure
The decrypted data contains:Custom Selectors
By default, auth profiles use standard selectors:- Username:
input[type="text"], input[type="email"] - Password:
input[type="password"] - Submit:
button[type="submit"], input[type="submit"]
Profile Naming
Profile names must contain only:- Alphanumeric characters (a-z, A-Z, 0-9)
- Hyphens (-)
- Underscores (_)
Security Best Practices
1. Always Use stdin for Passwords
Never pass passwords as command-line arguments (they appear in shell history):2. Backup Your Encryption Key
If you lose the encryption key, encrypted profiles cannot be recovered:3. Use Unique Keys Per Environment
Don’t share encryption keys between development, staging, and production:4. Rotate Keys Periodically
To rotate keys:Programmatic API
Auth profiles can also be managed via the Node.js API:Environment Variables
| Variable | Description | Example |
|---|---|---|
AGENT_BROWSER_ENCRYPTION_KEY | 64-character hex encryption key for AES-256-GCM | openssl rand -hex 32 |
~/.agent-browser/.encryption-key.
Troubleshooting
Encryption key required error
- Restore the original key file or environment variable
- Delete the profile and re-create it
Invalid auth profile name error
Login fails with custom selectors
Ifauth login fails to find elements:
-
Open the login page in headed mode:
-
Inspect the page and identify correct selectors:
-
Update the profile with correct selectors:
See Also
- Security Overview - All security features
- Domain Allowlist - Network restriction
- Action Policies - Action gating