Start using the Browser Use CLI
browser-use
command-line interface provides multiple modes of operation for browser automation.
uvx
:
-p, --prompt
: The task to execute--headless
: Run browser in headless mode--model
: Specify LLM model (default: gpt-4o)~/.config/browseruse/config.json
BROWSER_USE_CONFIG_PATH
environment variableBROWSER_USE_CONFIG_DIR
environment variable (directory containing config.json
)default: true
.
BROWSER_USE_LOGGING_LEVEL
: Logging level (debug, info, warning, error)BROWSER_USE_CONFIG_PATH
: Full path to config.json fileBROWSER_USE_CONFIG_DIR
: Directory containing config.jsonBROWSER_USE_HEADLESS
: Run browser in headless mode (true/false)BROWSER_USE_ALLOWED_DOMAINS
: Comma-separated list of allowed domainsBROWSER_USE_USER_DATA_DIR
: Chrome user data directory pathOPENAI_API_KEY
: OpenAI API keyANTHROPIC_API_KEY
: Anthropic API keyBROWSER_USE_LLM_MODEL
: LLM model to use (e.g., gpt-4o, claude-3-opus)BROWSER_USE_HEADLESS
: Control browser visibilityOPENAI_API_KEY
: Required for agent-based tools~/.config/browseruse/