Use browser-use / browser-use: make websites access for AI agents


Using browser is the easiest way to connect your AI AG Agents with the browser.
💡 Look at what others are built and share your projects with our contention – We want to see what you do!
🌩️ Skip Setup – Try our Hosted version for Instant Browser Automation! Try it now.
With PIP (Python> = 3.11):
Install Playwright:
Set your agent:
from langchain_openai import ChatOpenAI
from browser_use import Agent
import asyncio
from dotenv import load_dotenv
load_dotenv()
async def main():
agent = Agent(
task="Go to Reddit, search for 'browser-use', click on the first post and return the first comment.",
llm=ChatOpenAI(model="gpt-4o"),
)
result = await agent.run()
print(result)
asyncio.run(main())
Add your API keys for the provider you want to use in your .env
files.
For other settings, models, and more, check the documentation 📕.
You can try Using the browser with a UI repository
Or just run the example of Gradio:
python examples/ui/gradio_demo.py
outright: Add grocery items to cart, and checkout.
Prompt: Add my most recent Following LinkedIn to my leads in SalesForce.
prepared: Read my CV jobs and find ML in ML in a file, and then start applying for them to new tabs, if you need help, ask me. ‘
Apply.to.jobs.8x.mp4
prepared: Write a letter to Google Docs to my dad, thankful to him all, and save the document as a PDF.
prepared: View models with a CC-By-SA-SA-SA-SA-SA-SA-SAIN type of preferred to the face, save the top 5 to file.
Hugging_face_high_quality.mp4
For more examples look at Examples folder or join in contention and show your project.
Tell your computer what to do, and it’s done it.
We want contributions! Feel free to open issues for bugs or appearance requests. To contribute to docs, check the /docs
Folder.
To determine more about the library, check the Local setup 📕.
We make a commission to explain the best practices for UI / UX designs for browser agents. Join, we explore how software changes AI agent’s performance and granted these companies to an existing agent age.
Emptany Toby Apply for a committee seat.
If you use the use of your research or project browser, please indicate:
@software{browser_use2024,
author = {Müller, Magnus and Žunič, Gregor},
title = {Browser Use: Enable AI to control your browser},
year = {2024},
publisher = {GitHub},
url = {https://github.com/browser-use/browser-use}
}
Made with ❤️ in zurich and San Francisco
https://opengraph.githubassets.com/143da8337e8c55ed6f1fc3e3e94e79ef88f843e000749c6fe3064c8af9bedabe/browser-use/browser-use
2025-02-25 18:45:00