Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

update-sensitive-data-docs

Magnus Müller5967eb48c976
diff --git a/docs/customize/examples/sensitive-data.mdx b/docs/customize/examples/sensitive-data.mdx
index aeef62529..89b86e243 100644
--- a/docs/customize/examples/sensitive-data.mdx
+++ b/docs/customize/examples/sensitive-data.mdx
@@ -1,6 +1,6 @@
---
title: "Sensitive Data"
-description: "Handle sensitive information securely and avoid sending PII & passwords to the LLM."
+description: "Handle secret information securely and avoid sending PII & passwords to the LLM."
icon: "shield"
mode: "wide"
---
@@ -11,14 +11,24 @@ import os
from browser_use import Agent, Browser, ChatOpenAI
os.environ['ANONYMIZED_TELEMETRY'] = "false"
+
+company_credentials = {'x_user': '[email protected]', 'x_pass': 'your-real-password123'}
+
+# Option 1: Secrets available for all websites
+sensitive_data = company_credentials
+
+# Option 2: Secrets per domain with regex
+# sensitive_data: dict[str, str | dict[str, str]] = {
+# 'https://*.example-staging.com': company_credentials,
+# 'http*://test.example.com': company_credentials,
+# 'https://example.com': company_credentials,
+# 'https://*.google.com': {'g_email': '[email protected]', 'g_pass': 'google_password'},
+# }
+
+
agent = Agent(
task='Log into example.com with username x_user and password x_pass',
- sensitive_data={
- 'https://example.com': {
- 'x_user': '[email protected]',
- 'x_pass': 'your-real-password123',
- },
- },
+ sensitive_data=sensitive_data,
use_vision=False, # Disable vision to prevent LLM seeing sensitive data in screenshots
llm=ChatOpenAI(model='gpt-4.1-mini'),
)
diff --git a/docs/quickstart.mdx b/docs/quickstart.mdx
index 9566b902f..189bc4998 100644
--- a/docs/quickstart.mdx
+++ b/docs/quickstart.mdx
@@ -9,13 +9,13 @@ icon: "rocket"
<Tabs>
<Tab title="uv">
-```bash create environment
+```bash create environment
uv venv --python 3.12
```
</Tab>
<Tab title="pip">
-```bash create environment
-python -m venv .venv
+```bash create environment with python >= 3.11
+python3.12 -m venv .venv
```
</Tab>
</Tabs>
@@ -43,7 +43,7 @@ uvx playwright install chromium --with-deps
<Tab title="pip">
```bash install browser-use & chromium
pip install browser-use
-playwright install chromium --with-deps
+pip install playwright && playwright install chromium --with-deps
```
</Tab>
</Tabs>