Make websites accessible for AI agents
Project description
🤖 LLM Quickstart
- Direct your favorite coding agent (Cursor, ClaudeS, etc) to Agents.md
- Prompt away!
👋 Human Quickstart
1. Create environment with uv (Python>=3.11):
uv init
2. Install Browser-Use package:
# We ship every day - use the latest version!
uv add browser-use
uv sync
3. Get your API key from Browser Use Cloud and add it to your .env file (new signups get $10 free credits):
# .env
BROWSER_USE_API_KEY=your-key
4. Install Chromium browser:
browser-use install
5. Run your first agent:
from browser_use import Agent, Browser, ChatBrowserUse
import asyncio
async def example():
browser = Browser(
# use_cloud=True, # Uncomment to use a stealth browser on Browser Use Cloud
)
llm = ChatBrowserUse()
agent = Agent(
task="Find the number of stars of the browser-use repo",
llm=llm,
browser=browser,
)
history = await agent.run()
return history
if __name__ == "__main__":
history = asyncio.run(example())
Check out the library docs and the cloud docs for more!
Demos
📋 Form-Filling
Task = "Fill in this job application with my resume and information."
🍎 Grocery-Shopping
Task = "Put this list of items into my instacart."
https://github.com/user-attachments/assets/a6813fa7-4a7c-40a6-b4aa-382bf88b1850
💻 Personal-Assistant.
Task = "Help me find parts for a custom PC."
https://github.com/user-attachments/assets/ac34f75c-057a-43ef-ad06-5b2c9d42bf06
💡See more examples here ↗ and give us a star!
Integrations, hosting, custom tools, MCP, and more on our Docs ↗
FAQ
What's the best model to use?
We optimized ChatBrowserUse() specifically for browser automation tasks. On avg it completes tasks 3-5x faster than other models with SOTA accuracy.
For other LLM providers, see our supported models documentation.
Can I use custom tools with the agent?
Yes! You can add custom tools to extend the agent's capabilities:
from browser_use.tools import Tool
@Tool()
def custom_tool(param: str) -> str:
"""Description of what this tool does."""
return f"Result: {param}"
agent = Agent(
task="Your task",
llm=llm,
browser=browser,
use_custom_tools=[custom_tool],
)
See our Custom Tools documentation for more examples.
Can I use this for free?
Yes! Browser-Use is open source and free to use. You only need to choose an LLM provider (like OpenAI, Google, ChatBrowserUse, or run local models with Ollama).
How do I handle authentication?
Check out our authentication examples:
- Using real browser profiles - Reuse your existing Chrome profile with saved logins
- If you want to use temporary accounts with inbox, choose AgentMail
- To sync your auth profile with the remote browser, run
curl -fsSL https://browser-use.com/profile.sh | BROWSER_USE_API_KEY=XXXX sh(replace XXXX with your API key)
These examples show how to maintain sessions and handle authentication seamlessly.
How do I solve CAPTCHAs?
For CAPTCHA handling, you need better browser fingerprinting and proxies. Use Browser Use Cloud which provides stealth browsers designed to avoid detection and CAPTCHA challenges.
How do I go into production?
Chrome can consume a lot of memory, and running many agents in parallel can be tricky to manage.
For production use cases, use our Browser Use Cloud API which handles:
- Scalable browser infrastructure
- Memory management
- Proxy rotation
- Stealth browser fingerprinting
- High-performance parallel execution
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.9.2.tar.gz.
File metadata
- Download URL: browser_use-0.9.2.tar.gz
- Upload date:
- Size: 406.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8900d773ef26c1667b0e3bc7eec84dc23fd783ad552abfef57e14f5b43a8301
|
|
| MD5 |
0e5fc9f7ecc07d2f23a3db8bcee99a0b
|
|
| BLAKE2b-256 |
d8ad8bbac036dd97e0d7eae1db1c4a4ccafcb5ba7c7e2d27be37e7ec12e56639
|
File details
Details for the file browser_use-0.9.2-py3-none-any.whl.
File metadata
- Download URL: browser_use-0.9.2-py3-none-any.whl
- Upload date:
- Size: 489.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e73e5e64121c0800d761cd9193f27e21a743a17f082865e1ba0eefe3759c4adb
|
|
| MD5 |
3c3281e5b4dd76ed9a3204b627ad9e5f
|
|
| BLAKE2b-256 |
8a81c42acc6d12c21f55603fc86f5dfc9c74150d6bb7378ec0ab26d5297101e8
|