Make websites accessible for AI agents
Project description
Make websites accessible for AI agents 🤖.
Browser use is the easiest way to connect your AI agents with the browser. If you have used Browser Use for your project feel free to show it off in our Discord.
To learn more about the library, check out the documentation 📕.
Quick start
With pip:
pip install browser-use
(optional) install playwright:
playwright install
Spin up your agent:
from langchain_openai import ChatOpenAI
from browser_use import Agent
import asyncio
async def main():
agent = Agent(
task="Find a one-way flight from Bali to Oman on 12 January 2025 on Google Flights. Return me the cheapest option.",
llm=ChatOpenAI(model="gpt-4o"),
)
result = await agent.run()
print(result)
asyncio.run(main())
And don't forget to add your API keys to your .env file.
OPENAI_API_KEY=
For other settings, models, and more, check out the documentation 📕.
Test with UI
You can test browser-use with a UI repository
Or simply run the gradio example:
uv pip install gradio
python examples/gradio.py
Demos
Prompt: Write a letter in Google Docs to my Papa, thanking him for everything, and save the document as a PDF.
Prompt: Read my CV & find ML jobs, save them to a file, and then start applying for them in new tabs, if you need help, ask me.'
https://github.com/user-attachments/assets/171fb4d6-0355-46f2-863e-edb04a828d04
Prompt: Find flights on kayak.com from Zurich to Beijing from 25.12.2024 to 02.02.2025.
Prompt: Look up models with a license of cc-by-sa-4.0 and sort by most likes on Hugging face, save top 5 to file.
https://github.com/user-attachments/assets/de73ee39-432c-4b97-b4e8-939fd7f323b3
More examples
For more examples see the examples folder or join the Discord and show off your project.
Contributing
Contributions are welcome! Feel free to open issues for bugs or feature requests.
Local Setup
To learn more about the library, check out the local setup 📕.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file browser_use-0.1.19.tar.gz.
File metadata
- Download URL: browser_use-0.1.19.tar.gz
- Upload date:
- Size: 261.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99e835786f6012efa13712a01df0c34b25166f0c0deab63604c115b437fb8162
|
|
| MD5 |
770004e0bf2f2224f435c37e87d118fa
|
|
| BLAKE2b-256 |
8daabffe3dbad75c2c4c376429abd5d0c4df24d1aa1b77b227138a0cc1216ebc
|
File details
Details for the file browser_use-0.1.19-py3-none-any.whl.
File metadata
- Download URL: browser_use-0.1.19-py3-none-any.whl
- Upload date:
- Size: 64.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83ad5b13518ef72777a396aebfb0cf8da733f45b2afafe51650b42889bfc185b
|
|
| MD5 |
198be610008f7a00c58454b09ef91304
|
|
| BLAKE2b-256 |
664707c3859adbc96b7a18f5f5e3b26d902b0e3f560826a9607cc373a7bca3d6
|