Template collection for the browser-use CLI init command.
.
├── default_template.py # Simplest setup example
├── advanced_template.py # All configuration options shown
├── tools_template.py # Custom tool registration example
├── gitignore.template # Shared .gitignore for complex templates
├── shopping/ # E-commerce automation template
│ ├── main.py
│ ├── launch_chrome_debug.py
│ ├── README.md
│ ├── pyproject.toml.template
│ └── .env.example.template
├── job-application/ # Job application automation template
│ ├── main.py
│ ├── README.md
│ ├── applicant_data.json
│ ├── example_resume.pdf
│ ├── pyproject.toml.template
│ └── .env.example.template
└── agentmail/ # Email inbox automation with 2FA template
├── main.py
├── email_tools.py
├── README.md
├── pyproject.toml.template
└── .env.example.template
This repository is used as a git submodule by the main browser-use repository.
Templates are loaded by the browser-use init CLI command:
uvx browser-use init --template default
uvx browser-use init --template shopping
uvx browser-use init --template job-application
uvx browser-use init --template agentmail- Create a new
.pyfile in the root directory (e.g.,my_template.py) - Add entry to
INIT_TEMPLATESinbrowser-use/browser_use/init_cmd.py:
'my-template': {
'file': 'my_template.py',
'description': 'Description of what this template does',
}- Create a new subdirectory (e.g.,
my-template/) - Add template files:
main.py- Main scriptREADME.md- Documentationpyproject.toml.template- Project config.env.example.template- Environment variables- Any additional assets
- Add entry to
INIT_TEMPLATESand generation logic ininit_cmd.py
Same as browser-use