Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
update-sensitive-data-docs
Magnus Müller5967eb48c976
diff --git a/docs/customize/examples/sensitive-data.mdx b/docs/customize/examples/sensitive-data.mdxindex 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 osfrom browser_use import Agent, Browser, ChatOpenAIos.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 screenshotsllm=ChatOpenAI(model='gpt-4.1-mini'),)diff --git a/docs/quickstart.mdx b/docs/quickstart.mdxindex 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 environmentuv 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 & chromiumpip install browser-use-playwright install chromium --with-deps+pip install playwright && playwright install chromium --with-deps```</Tab></Tabs>