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 secrets: {
4 "https://example.com": "user@example.com",
5 "https://admin.example.com": "securePassword123",
6 "https://*.google.com": "google_password",
7 "http*://test.example.com": "testPassword"
8 }
9});

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 allowedDomains: [
4 "example.com", // Matches only https://example.com/*
5 "*.example.com", // Matches https://example.com/* and any subdomain
6 "http*://example.com", // Matches both http:// and https:// protocols
7 "chrome-extension://*" // Matches any Chrome extension URL
8 ]
9});

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

Learn More