Enhance logging configuration with CDP logging level and environment settings

Co-authored-by: mamagnus00 <mamagnus00@gmail.com>
This commit is contained in:
Cursor Agent
2025-08-16 19:57:48 +00:00
parent ef64704cd7
commit 2f3a19bf7e
3 changed files with 62 additions and 13 deletions

View File

@@ -1,20 +1,64 @@
# Browser Use Environment Configuration
# Copy this file to .env and configure your API keys and settings
# =============================================================================
# API Keys for Language Models
# =============================================================================
OPENAI_API_KEY=
ANTHROPIC_API_KEY=
AZURE_OPENAI_ENDPOINT=
AZURE_OPENAI_API_KEY=
GOOGLE_API_KEY=
DEEPSEEK_API_KEY=
GROK_API_KEY=
NOVITA_API_KEY=
# Set to false to disable anonymized telemetry
ANONYMIZED_TELEMETRY=true
# Azure OpenAI Configuration
AZURE_OPENAI_ENDPOINT=
AZURE_OPENAI_KEY=
# LogLevel: Set to debug to enable verbose logging, set to result to get results only. Available: result | debug | info
# =============================================================================
# Logging Configuration
# =============================================================================
# Browser Use logging level (debug, info, warning, error)
BROWSER_USE_LOGGING_LEVEL=info
# Calculate costs: (beta) Add cost calculations to tokens. Available: true | false
BROWSER_USE_CALCULATE_COST=false
# CDP (Chrome DevTools Protocol) logging level for cdp_use library
# Controls logging verbosity of Chrome DevTools Protocol interactions
# Recommended: WARNING to reduce noise (debug, info, warning, error)
CDP_LOGGING_LEVEL=WARNING
# set this to true to optimize browser-use's chrome for running inside docker
IN_DOCKER=false
# =============================================================================
# Telemetry and Cloud Configuration
# =============================================================================
# Enable anonymous telemetry collection
ANONYMIZED_TELEMETRY=true
# Browser Use Cloud Configuration
BROWSER_USE_CLOUD_SYNC=
BROWSER_USE_CLOUD_API_URL=https://api.browser-use.com
BROWSER_USE_CLOUD_UI_URL=
# =============================================================================
# Development and Runtime Configuration
# =============================================================================
# Skip LLM API key verification during initialization
SKIP_LLM_API_KEY_VERIFICATION=false
# Runtime environment flags
IN_DOCKER=
IS_IN_EVALS=false
# Path configuration
XDG_CACHE_HOME=~/.cache
XDG_CONFIG_HOME=~/.config
BROWSER_USE_CONFIG_DIR=
# Windows font directory (Windows only)
WIN_FONT_DIR=C:\Windows\Fonts
# =============================================================================
# MCP (Model Context Protocol) Configuration
# =============================================================================
BROWSER_USE_CONFIG_PATH=
BROWSER_USE_HEADLESS=
BROWSER_USE_ALLOWED_DOMAINS=
BROWSER_USE_LLM_MODEL=