Skip to main content
Do not put credentials, tokens, or private values directly in a browsing goal. Pass secrets as scoped variables.

CLI secrets

The CLI reads DEMO_ACCOUNT_EMAIL from your environment and exposes it as accountEmail only to the browser-agent run. When --allow-domain is present, the secret is scoped to that domain. When no domain is present, the CLI scopes secrets to the start URL domain when it can.

SDK variables

Use descriptions to tell the agent what a variable is for. Keep the raw value out of logs, prompts, and final answers.

Ask for user input

If the workflow needs a human decision, use approvals instead of hiding the decision inside a prompt. Examples:
  • Approve a form submission.
  • Confirm a file upload.
  • Decide whether a blocker should stop the run.
  • Review output before sending it to another system.
Keep unattended examples read-only. Require explicit user authorization before account changes, purchases, legal acceptances, or destructive operations.