browser-use, openai-cua, anthropic-cua, and gemini-computer-use.
Basic Usage
Pass credentials as key-value pairs insecretValues. The agent will securely use these values when logging into websites or filling forms.
Domain-Scoped Secrets
For enhanced security, you can scope secrets to specific domains. Secrets will only be available when the browser is on a matching domain - preventing credential exposure on the wrong site.Domain Pattern Examples
Best Practices
Use Environment Variables
Never hardcode secrets in your code. Always load from environment variables or a secrets manager.
Scope to Domains
Use domain-scoped secrets for multi-site tasks to prevent credential leakage.
Meaningful Key Names
Use clear, descriptive key names like
LINKEDIN_PASSWORD instead of PASS1.Minimal Exposure
Only include secrets that the task actually needs.

