The Idea
When getting started with Browser Use, the default template provides a quick setup. But what if you need full control over agent and browser behavior?
The advanced template highlights recommended advanced configuration options for both the Browser and Agent, making it a comprehensive reference guide for users.
Requirements
You'll need one API Key:
- Browser Use
Installation
uvx browser-use init --template advanced
What's Included
Browser Configuration:
headless- Run browser with or without UI (auto-detects based on display)cdp_url- Connect to existing browser instance via Chrome DevTools Protocolallowed_domains/prohibited_domains- Restrict navigation to specific domains using pattern matchingargs- Pass custom command-line arguments to Chromekeep_alive- Keep browser running after agent completesuser_data_dir- Specify browser profile directory (None for incognito mode)proxy- Configure proxy settings for network requestswait_between_actions- Control timing between agent actionshighlight_elements- Highlight interactive elements for AI vision
Agent Configuration:
tools- Registry of custom tools the agent can calloutput_model_schema- Pydantic model for structured output validationuse_vision- Vision mode ('auto', True, False) for screenshot handlingmax_actions_per_step- Maximum actions per step (e.g., form fields)max_failures- Maximum retries for steps with errorssave_conversation_path- Path to save complete conversation historygenerate_gif- Generate GIF of agent actions (True or path string)step_timeout- Timeout in seconds for each stepllm_timeout- Timeout in seconds for LLM callscalculate_cost- Calculate and track API costs
Customization
All parameters are set to their default values and include inline comments. Simply uncomment and modify any option to customize behavior for your specific use case. For detailed documentation on each parameter, visit the Browser Use docs.


