中文文档 | English
A Playwright-based browser automation tool with seamless integration for OpenAI and Anthropic AI models.
- Python 3.11 or higher
- Install via pip:
pip install browser-use
- Install dependencies:
pip install -r requirements.txt
- Install Playwright (optional):
playwright install
- Copy the environment variables template:
cp .env.example .env
- Configure the following environment variables in your
.env
file:
OPENAI_API_KEY
: Your OpenAI API keyANTHROPIC_API_KEY
: Your Anthropic API key (optional)OPENAI_BASE_URL
: OpenAI API endpoint (defaults to official URL)ANONYMIZED_TELEMETRY
: Enable/disable anonymous telemetry (defaults to true)BROWSER_USE_LOGGING_LEVEL
: Set logging level (options: result | debug | info)
Execute the main program:
python main.py
Explore the examples
directory for various use cases:
- Multi-tab handling
- CAPTCHA processing
- File upload operations
- Custom system prompts
- Parallel agents
- And more...
- Browser automation with AI integration
- Support for multiple AI models
- Efficient tab management
- Customizable logging levels
- Anonymous telemetry for improvements
- Extensive example collection
- Securely manage your API keys and never commit them to version control
- Add
.env
to your.gitignore
file - Ensure all required environment variables are properly configured before use
Contributions are welcome! Please feel free to submit pull requests or open issues for bugs and feature requests.
[License Information]
Star ⭐ this repo if you find it useful!
thx Browser-Use team
thx Browser-Use team
thx browser-use, an excellent browser automation framework.
Browser-use interface showing Baidu Translate with multimodal translation capabilities
If you find this project helpful, please consider giving it a ⭐!
❤️
❤️