Skip to content

Make websites accessible for AI agents

License

Notifications You must be signed in to change notification settings

golelsq/browser-use

 
 

Repository files navigation

Browser-Use

中文文档 | English

A Playwright-based browser automation tool with seamless integration for OpenAI and Anthropic AI models.

Requirements

  • Python 3.11 or higher

Quick Start

Installation

  1. Install via pip:
pip install browser-use
  1. Install dependencies:
pip install -r requirements.txt
  1. Install Playwright (optional):
playwright install

Environment Setup

  1. Copy the environment variables template:
cp .env.example .env
  1. Configure the following environment variables in your .env file:
  • OPENAI_API_KEY: Your OpenAI API key
  • ANTHROPIC_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)

Running

Execute the main program:

python main.py

Examples

Explore the examples directory for various use cases:

  • Multi-tab handling
  • CAPTCHA processing
  • File upload operations
  • Custom system prompts
  • Parallel agents
  • And more...

Key Features

  • Browser automation with AI integration
  • Support for multiple AI models
  • Efficient tab management
  • Customizable logging levels
  • Anonymous telemetry for improvements
  • Extensive example collection

Important Notes

  1. Securely manage your API keys and never commit them to version control
  2. Add .env to your .gitignore file
  3. Ensure all required environment variables are properly configured before use

Contributing

Contributions are welcome! Please feel free to submit pull requests or open issues for bugs and feature requests.

License

[License Information]


Star ⭐ this repo if you find it useful!
thx Browser-Use team

Acknowledgments

thx browser-use, an excellent browser automation framework.

Screenshots

Baidu Translate Interface Browser-use interface showing Baidu Translate with multimodal translation capabilities


If you find this project helpful, please consider giving it a ⭐!
❤️

About

Make websites accessible for AI agents

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 92.1%
  • JavaScript 7.9%