browser-use SSLError to eu.i.posthog.com: how do I disable the telemetry call?
When running browser-use with a local Ollama model on Windows 11 or macOS, the logs show repeated SSLError or ConnectionError messages for host eu.i.posthog.com at /batch/. Setting ANONYMIZED_TELEMETRY=false inside the script did not stop them. How do I turn off this telemetry connection?
Originally asked on GitHub: https://github.com/browser-use/browser-use/issues/265
5 answers
The issue is closed as completed. The thread shows the PostHog connection attempts come from browser-use's anonymized telemetry, which sends data to eu.i.posthog.com. The fix that worked for one commenter was to set the variable before browser_use is imported:
pythonimport os os.environ["ANONYMIZED_TELEMETRY"] = "false" from langchain_openai import ChatOpenAI from browser_use import Agent import asyncioAnother user reported that putting
ANONYMIZED_TELEMETRY=falsein the .env file stopped the error. A different user said that setting the variable inside the script after the imports did not stop the connection attempts, which suggests the import order matters.The thread does not confirm that the PostHog errors cause the "Could not parse response" or "404 page not found" messages, so treat those as separate symptoms unless you see otherwise in your own logs.
General advice: if the error persists, print
os.environ.get("ANONYMIZED_TELEMETRY")just before the browser_use import to confirm the value is alreadyfalse.Security note: the thread does not describe what data is sent, so the setting's privacy effect is not confirmed here.
Did this work for you?What @sablin39 tried on GitHub (Worked)
Set
os.environ["ANONYMIZED_TELEMETRY"] = "false"before importing browser_use and the other dependencies. The PostHog error stopped.Source: https://github.com/browser-use/browser-use/issues/265#issuecomment-2724478773 (opens external site)
Did this work for you?What @endur4ever tried on GitHub (Worked)
Added
ANONYMIZED_TELEMETRY=falseto the env file. The user stopped getting the PostHog error, though they later saw DNS problems on their own network.Source: https://github.com/browser-use/browser-use/issues/265#issuecomment-2689895591 (opens external site)
Did this work for you?What @henshin tried on GitHub (Didn't work)
Set
os.environ["ANONYMIZED_TELEMETRY"] = "false"in the script after the imports, using langchain_ollama ChatOllama. The script still tried to connect to eu.i.posthog.com.Source: https://github.com/browser-use/browser-use/issues/265#issuecomment-2627282894 (opens external site)
Did this work for you?What @zy1024 tried on GitHub (Didn't work)
Fresh Windows 11 setup with
uv venv --python 3.11,uv pip install browser-use, andplaywright install, then ran main.py with ChatOllama. The PostHog connection failure still occurred.Source: https://github.com/browser-use/browser-use/issues/265#issuecomment-2650380402 (opens external site)
Did this work for you?
Related questions
- How to fix browser-use PostHog SSL CERTIFICATE_VERIFY_FAILED error?
- How to pause browser-use and ask a human for input mid-run?
- browser-use agent stuck at Step 1 with Chromium on about:blank page
- How do I use OpenRouter with browser-use for DeepSeek when it fails with 429 or 'Could not parse response'?
- browser-use stuck at 'Step 1' with blank Chromium page, what causes it and how to fix it?