Safety

Protect sensitive data and restrict navigation.

Secrets

Define domain-specific credentials that agents can use securely.

1const task = await client.tasks.createTask({
2 task: "Log into the admin panel and check user accounts",
3 llm: "browser-use-llm",
4 secrets: {
5 "https://example.com": "user@example.com",
6 "https://admin.example.com": "securePassword123",
7 "https://*.google.com": "google_password",
8 "http*://test.example.com": "testPassword"
9 }
10});

Domain Restrictions

Restrict agent navigation to specific domains using allowed patterns.

1const task = await client.tasks.createTask({
2 task: "Search for information on approved sites only",
3 llm: "browser-use-llm",
4 allowedDomains: [
5 "example.com", // Matches only https://example.com/*
6 "*.example.com", // Matches https://example.com/* and any subdomain
7 "http*://example.com", // Matches both http:// and https:// protocols
8 "chrome-extension://*" // Matches any Chrome extension URL
9 ]
10});

Domain patterns: example.com, *.example.com, http*://example.com. Wildcards in TLD (e.g., example.*) are not allowed for security.

Learn More