Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
added docs to monorepo
Gregor Žunič182a43942d85
diff --git a/README.md b/README.mdindex f9656c161..e51245d28 100644--- a/README.md+++ b/README.md@@ -107,7 +107,8 @@ For more examples see the [examples](examples) folder or join the [Discord](httpTell your computer what to do, and it gets it done.## Roadmap-- [ ] Improve memory management++- [ ] Improve memory management- [ ] Enhance planning capabilities- [ ] Improve self-correction- [ ] Fine-tune the model for better performance@@ -128,20 +129,20 @@ Tell your computer what to do, and it gets it done.- [ ] Improve the generated GIF quality- [ ] Create various demos for tutorial execution, job application, QA testing, social media, etc.-## Contributing-We love contributions! Feel free to open issues for bugs or feature requests.+We love contributions! Feel free to open issues for bugs or feature requests. To contribute to the docs, check out the `/docs` folder.## Local SetupTo learn more about the library, check out the [local setup 📕](https://docs.browser-use.com/development/local-setup).## Cooperations-We are forming a commission to define best practices for UI/UX design for browser agents.-Together, we're exploring how software redesign improves the performance of AI agents and gives these companies a competitive advantage by designing their existing software to be at the forefront of the agent age.-Email [Toby](mailto:[email protected]?subject=I%20want%20to%20join%20the%20UI/UX%20commission%20for%20AI%20agents&body=Hi%20Toby%2C%0A%0AI%20found%20you%20in%20the%20browser-use%20GitHub%20README.%0A%0A) to apply for a seat on the committee.+We are forming a commission to define best practices for UI/UX design for browser agents.+Together, we're exploring how software redesign improves the performance of AI agents and gives these companies a competitive advantage by designing their existing software to be at the forefront of the agent age.++Email [Toby](mailto:[email protected]?subject=I%20want%20to%20join%20the%20UI/UX%20commission%20for%20AI%20agents&body=Hi%20Toby%2C%0A%0AI%20found%20you%20in%20the%20browser-use%20GitHub%20README.%0A%0A) to apply for a seat on the committee.## Citationdiff --git a/docs/README.md b/docs/README.mdnew file mode 100644index 000000000..10f09abff--- /dev/null+++ b/docs/README.md@@ -0,0 +1,17 @@+# Docs++The official documentation for Browser Use. The docs are published to [Browser Use Docs](https://docs.browser-use.com).++### Development++Install the [Mintlify CLI](https://www.npmjs.com/package/mintlify) to preview the documentation changes locally. To install, use the following command++```+npm i -g mintlify+```++Run the following command at the root of your documentation (where mint.json is)++```+mintlify dev+```diff --git a/docs/customize/agent-settings.mdx b/docs/customize/agent-settings.mdxnew file mode 100644index 000000000..87f93ed80--- /dev/null+++ b/docs/customize/agent-settings.mdx@@ -0,0 +1,163 @@+---+title: "Agent Settings"+description: "Learn how to configure the agent"+icon: "gear"+---++## Overview++The `Agent` class is the core component of Browser Use that handles browser automation. Here are the main configuration options you can use when initializing an agent.++## Basic Settings++```python+from browser_use import Agent+from langchain_openai import ChatOpenAI++agent = Agent(+ task="Search for latest news about AI",+ llm=ChatOpenAI(model="gpt-4"),+)+```++### Required Parameters++- `task`: The instruction for the agent to execute+- `llm`: A LangChain chat model instance. See <a href="/customize/langchain-models">LangChain Models</a> for supported models.++## Agent Behavior++Control how the agent operates:++```python+agent = Agent(+ task="your task",+ llm=llm,+ controller=custom_controller, # Custom function registry+ use_vision=True, # Enable vision capabilities+ save_conversation_path="logs/conversation.json" # Save chat logs+)+```++### Behavior Parameters++- `controller`: Registry of functions the agent can call. Defaults to base Controller. See <a href="/customize/custom-functions">Custom Functions</a> for details.+- `use_vision`: Enable/disable vision capabilities. Defaults to `True`.+ - When enabled, the model processes visual information from web pages+ - Disable to reduce costs or use models without vision support+ - For GPT-4o, image processing costs approximately 800-1000 tokens (~$0.002 USD) per image (but this depends on the defined screen size)+- `save_conversation_path`: Path to save the complete conversation history. Useful for debugging.+- `system_prompt_class`: Custom system prompt class. See <a href="/customize/system-prompt">System Prompt</a> for customization options.++<Note>+ Vision capabilities are recommended for better web interaction understanding,+ but can be disabled to reduce costs or when using models without vision+ support.+</Note>++## (Reuse) Browser Configuration++You can configure how the agent interacts with the browser. To see more `Browser` options refer to the <a href="/customize/browser-settings">Browser Settings</a> documentation.++### Reuse Existing Browser++`browser`: A Browser Use Browser instance. When provided, the agent will reuse this browser instance and automatically create new contexts for each `run()`.++```python+from browser_use import Agent, Browser+from playwright.async_api import BrowserContext++# Reuse existing browser+browser = Browser()+agent = Agent(+ task=task1,+ llm=llm,+ browser=browser # Browser instance will be reused+)++await agent.run()++# Manually close the browser+await browser.close()+```++<Note>+ Remember: in this scenario the `Browser` will not be closed automatically.+</Note>++### Reuse Existing Browser Context++`browser_context`: A Playwright browser context. Useful for maintaining persistent sessions. See <a href="/customize/persistent-browser">Persistent Browser</a> for more details.++```python+from browser_use import Agent, Browser+from playwright.async_api import BrowserContext++# Use specific browser context (preferred method)+async with await browser.new_context() as context:+ agent = Agent(+ task=task2,+ llm=llm,+ browser_context=context # Use persistent context+ )++ # Run the agent+ await agent.run()++ # Pass the context to the next agent+ next_agent = Agent(+ task=task2,+ llm=llm,+ browser_context=context+ )++ ...++await browser.close()+```++For more information about how browser context works, refer to the [Playwright+documentation](https://playwright.dev/docs/api/class-browsercontext).++<Note>+ You can reuse the same context for multiple agents. If you do nothing, the+ browser will be automatically created and closed on `run()` completion.+</Note>++## Running the Agent++The agent is executed using the async `run()` method:++- `max_steps` (default: `100`)+ Maximum number of steps the agent can take during execution. This prevents infinite loops and helps control execution time.++### Agent History++The method returns an `AgentHistoryList` object containing the complete execution history. This history is invaluable for debugging, analysis, and creating reproducible scripts.++```python+# Example of accessing history+history = await agent.run()++# Access (some) useful information+history.urls() # List of visited URLs+history.screenshots() # List of screenshot paths+history.action_names() # Names of executed actions+history.extracted_content() # Content extracted during execution+history.errors() # Any errors that occurred+history.model_actions() # All actions with their parameters+```++The `AgentHistoryList` provides many helper methods to analyze the execution:++- `final_result()`: Get the final extracted content+- `is_done()`: Check if the agent completed successfully+- `has_errors()`: Check if any errors occurred+- `model_thoughts()`: Get the agent's reasoning process+- `action_results()`: Get results of all actions++<Note>+ For a complete list of helper methods and detailed history analysis+ capabilities, refer to the [AgentHistoryList source+ code](https://github.com/browser-use/browser-use/blob/main/browser_use/agent/views.py#L111).+</Note>diff --git a/docs/customize/browser-settings.mdx b/docs/customize/browser-settings.mdxnew file mode 100644index 000000000..95f8741d8--- /dev/null+++ b/docs/customize/browser-settings.mdx@@ -0,0 +1,141 @@+---+title: "Browser Settings"+description: "Configure browser behavior and context settings"+icon: "globe"+---++Browser Use allows you to customize how the browser behaves through two main configuration classes: `BrowserConfig` and `BrowserContextConfig`. These settings control everything from headless mode to proxy settings and page load behavior.++<Note>+ We are currently working on improving how browser contexts are managed. The+ system will soon transition to a "1 agent, 1 browser, 1 context" model for+ better stability and developer experience.+</Note>++# Browser Configuration++The `BrowserConfig` class controls the core browser behavior and connection settings.++```python+from browser_use import BrowserConfig++# Basic configuration+config = BrowserConfig(+ headless=False,+ disable_security=True+)+```++## Core Settings++- **headless** (default: `False`)+ Runs the browser without a visible UI. Note that some websites may detect headless mode.++- **disable_security** (default: `True`)+ Disables browser security features. While this can fix certain functionality issues (like cross-site iFrames), it should be used cautiously, especially when visiting untrusted websites.++### Additional Settings++- **extra_chromium_args** (default: `[]`)+ Additional arguments passed to the browser at launch. See the [full list of available arguments](https://github.com/browser-use/browser-use/blob/main/browser_use/browser/browser.py#L154).++- **proxy** (default: `None`)+ Standard Playwright proxy settings for using external proxy services.++- **new_context_config** (default: `BrowserContextConfig()`)+ Default settings for new browser contexts. See Context Configuration below.++<Note>+ For web scraping tasks on sites that restrict automated access, we recommend+ using external browser or proxy providers for better reliability.+</Note>++## Alternative Initialization++These settings allow you to connect to external browser providers or use a local Chrome instance.++### External Browser Provider (wss)++Connect to cloud-based browser services for enhanced reliability and proxy capabilities.++```python+config = BrowserConfig(+ wss_url="wss://your-browser-provider.com/ws"+)+```++- **wss_url** (default: `None`)+ WebSocket URL for connecting to external browser providers (e.g., anchorbrowser.com, steel.dev, browserbase.com, browserless.io).++<Note>+ This overrides local browser settings and uses the provider's configuration.+ Refer to their documentation for settings.+</Note>++### External Browser Provider (cdp)++Connect to cloud or local Chrome instances using Chrome DevTools Protocol (CDP) for use with tools like `headless-shell` or `browserless`.++```python+config = BrowserConfig(+ cdp_url="http://localhost:9222"+)+```++- **cdp_url** (default: `None`)+ URL for connecting to a Chrome instance via CDP. Commonly used for debugging or connecting to locally running Chrome instances.++### Local Chrome Instance (binary)++Connect to your existing Chrome installation to access saved states and cookies.++```python+config = BrowserConfig(+ chrome_instance_path="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"+)+```++- **chrome_instance_path** (default: `None`)+ Path to connect to an existing Chrome installation. Particularly useful for workflows requiring existing login states or browser preferences.++<Note>This will overwrite other browser settings.</Note>++# Context Configuration++The `BrowserContextConfig` class controls settings for individual browser contexts.++```python+from browser_use.browser.context import BrowserContextConfig++config = BrowserContextConfig(+ cookies_file="path/to/cookies.json",+ wait_for_network_idle_page_load_time=3.0,+ browser_window_size={'width': 1280, 'height': 1100}+)+```++## Configuration Options++### Page Load Settings++- **minimum_wait_page_load_time** (default: `0.5`)+ Minimum time to wait before capturing page state for LLM input.++- **wait_for_network_idle_page_load_time** (default: `1.0`)+ Time to wait for network activity to cease. Increase to 3-5s for slower websites. This tracks essential content loading, not dynamic elements like videos.++- **maximum_wait_page_load_time** (default: `5.0`)+ Maximum time to wait for page load before proceeding.++### Display Settings++- **browser_window_size** (default: `{'width': 1280, 'height': 1100}`)+ Browser window dimensions. The default size is optimized for general use cases and interaction with common UI elements like cookie banners.++### Debug and Recording++- **save_recording_path** (default: `None`)+ Directory path for saving video recordings.++- **trace_path** (default: `None`)+ Directory path for saving trace files. Files are automatically named as `{trace_path}/{context_id}.zip`.diff --git a/docs/customize/custom-functions.mdx b/docs/customize/custom-functions.mdxnew file mode 100644index 000000000..c5e1b54a2--- /dev/null+++ b/docs/customize/custom-functions.mdx@@ -0,0 +1,112 @@+---+title: "Custom Functions"+description: "Extend default agent and write custom function calls"+icon: "code"+---++## Basic Function Registration++Functions can be either `sync` or `async`. Keep them focused and single-purpose.++```python+from browser_use.controller.service import Controller++# Initialize the controller+controller = Controller()+[email protected]('Ask user for information')+def ask_human(question: str, display_question: bool) -> str:+ return input(f'\n{question}\nInput: ')+```++<Note>+ Basic `Controller` has all basic functionality you might need to interact with+ the browser already implemented.+</Note>++```python+# ... then pass controller to the agent+agent = Agent(+ task=task,+ llm=llm,+ controller=controller+)+```++<Note>+ Keep the function name and description short and concise. The Agent use the+ function solely based on the name and description. The stringified output of+ the action is passed to the Agent.+</Note>++## Browser-Aware Functions++For actions that need browser access, use the `requires_browser=True` parameter:++```python+from browser_use.browser.service import Browser+[email protected]('Open website', requires_browser=True)+async def open_website(url: str, browser: Browser):+ page = browser.get_current_page()+ await page.goto(url)+```++## Structured Parameters with Pydantic++For complex actions, you can define parameter schemas using Pydantic models:++```python+from pydantic import BaseModel+from typing import Optional++class JobDetails(BaseModel):+ title: str+ company: str+ job_link: str+ salary: Optional[str] = None++ 'Save job details which you found on page',+ param_model=JobDetails,+ requires_browser=True+)+async def save_job(params: JobDetails, browser: Browser):+ print(f"Saving job: {params.title} at {params.company}")++ # Access browser if needed+ page = browser.get_current_page()+ await page.goto(params.job_link)+```++## Using Custom Actions with multiple agents++You can use the same controller for multiple agents.++```python+controller = Controller()++# ... register actions to the controller++agent = Agent(+ task="Go to website X and find the latest news",+ llm=llm,+ controller=controller+)++# Run the agent+await agent.run()++agent2 = Agent(+ task="Go to website Y and find the latest news",+ llm=llm,+ controller=controller+)++await agent2.run()+```++<Note>+ The controller is stateless and can be used to register multiple actions and+ multiple agents.+</Note>diff --git a/docs/customize/langchain-models.mdx b/docs/customize/langchain-models.mdxnew file mode 100644index 000000000..c45fa9821--- /dev/null+++ b/docs/customize/langchain-models.mdx@@ -0,0 +1,120 @@+---+title: "LangChain Chat Models"+description: "Guide to using different LangChain chat models with Browser Use"+icon: "robot"+---++## Overview++Browser Use supports various LangChain chat models. Here's how to configure and use the most popular ones. The full list is available in the [LangChain documentation](https://python.langchain.com/docs/integrations/chat/).++## Model Recommendations++We have yet to test performance across all models. Currently, we recommend using GPT-4o. It achieves 89% accuracy on [WebVoyager Dataset](https://browser-use.com/posts/sota-technical-report).++<Note>+ All models require their respective API keys. Make sure to set them in your+ environment variables before running the agent.+</Note>++## Supported Models++All LangChain chat models are supported. We will document the most popular ones here.++### OpenAI++OpenAI's GPT-4o models are recommended for best performance.++```python+from langchain_openai import ChatOpenAI+from browser_use import Agent++# Initialize the model+llm = ChatOpenAI(+ model="gpt-4o",+ temperature=0.0,+)++# Create agent with the model+agent = Agent(+ task="Your task here",+ llm=llm+)+```++Required environment variables:++```bash .env+OPENAI_API_KEY=+```++### Anthropic++Claude models provide excellent performance and can handle complex tasks well.++```python+from langchain_anthropic import ChatAnthropic+from browser_use import Agent++# Initialize the model+llm = ChatAnthropic(+ model_name="claude-3-sonnet-20240229",+ temperature=0.0,+ timeout=100, # Increase for complex tasks+)++# Create agent with the model+agent = Agent(+ task="Your task here",+ llm=llm+)+```++And add the variable:++```bash .env+ANTHROPIC_API_KEY=+```++### Azure OpenAI++If you're using Azure OpenAI services, you can configure the model like this:++```python+from langchain_openai import AzureChatOpenAI+from browser_use import Agent+from pydantic import SecretStr+import os++# Initialize the model+llm = AzureChatOpenAI(+ model="gpt-4o",+ api_version='2024-10-21',+ azure_endpoint=os.getenv('AZURE_OPENAI_ENDPOINT', ''),+ api_key=SecretStr(os.getenv('AZURE_OPENAI_KEY', '')),+)++# Create agent with the model+agent = Agent(+ task="Your task here",+ llm=llm+)+```++Required environment variables:++```bash .env+AZURE_OPENAI_ENDPOINT=https://your-endpoint.openai.azure.com/+AZURE_OPENAI_KEY=+```++## Coming soon++(Sorry, we are working on it)++- Gemini+- Groq+- DeepSeek+- Github+- Ollama+- QWendiff --git a/docs/customize/system-prompt.mdx b/docs/customize/system-prompt.mdxnew file mode 100644index 000000000..a3aa20c31--- /dev/null+++ b/docs/customize/system-prompt.mdx@@ -0,0 +1,66 @@+---+title: "System Prompt"+description: "Customize the system prompt to control agent behavior and capabilities"+icon: "message"+---++## Overview++You can customize the system prompt by extending the `SystemPrompt` class. Internally, this adds extra instructions to the default system prompt (which is general and quite optimized at this point).++<Note>+ Custom system prompts allow you to modify the agent's behavior at a+ fundamental level. Use this feature carefully as it can significantly impact+ the agent's performance and reliability.+</Note>++## Basic Customization++Create a custom system prompt by inheriting from the base class.++```python+from browser_use import Agent, SystemPrompt++class MySystemPrompt(SystemPrompt):+ def important_rules(self) -> str:+ # Get existing rules from parent class+ existing_rules = super().important_rules()++ # Add your custom rules+ new_rules = """+9. MOST IMPORTANT RULE:+- ALWAYS open first a new tab and go to wikipedia.com no matter the task!!!+"""++ # Make sure to use this pattern otherwise the exiting rules will be lost+ return f'{existing_rules}\n{new_rules}'+```++The `important_rules()` are written in format like this. Keeping the format+consistent helps with redundancy and readability.++```text+8. ACTION SEQUENCING:+ - Actions are executed in the order they appear in the list+ - ...+```++<Note>Try not to override other methods unless you have a specific need.</Note>++## Using Custom System Prompt++Apply your custom system prompt when creating an agent:++```python+from langchain_openai import ChatOpenAI++# Initialize the model+model = ChatOpenAI(model='gpt-4')++# Create agent with custom system prompt+agent = Agent(+ task="Your task here",+ llm=model,+ system_prompt_class=MySystemPrompt+)+```diff --git a/docs/development.mdx b/docs/development.mdxnew file mode 100644index 000000000..c2f2ccdae--- /dev/null+++ b/docs/development.mdx@@ -0,0 +1,106 @@+---+title: 'Development'+description: 'Preview changes locally to update your docs'+---++<Info>+ **Prerequisite**: Please install Node.js (version 19 or higher) before proceeding.+</Info>++Follow these steps to install and run Mintlify on your operating system:++**Step 1**: Install Mintlify:++<CodeGroup>++ ```bash npm+ npm i -g mintlify+ ```++```bash yarn+yarn global add mintlify+```++</CodeGroup>++**Step 2**: Navigate to the docs directory (where the `mint.json` file is located) and execute the following command:++```bash+mintlify dev+```++A local preview of your documentation will be available at `http://localhost:3000`.++### Custom Ports++By default, Mintlify uses port 3000. You can customize the port Mintlify runs on by using the `--port` flag. To run Mintlify on port 3333, for instance, use this command:++```bash+mintlify dev --port 3333+```++If you attempt to run Mintlify on a port that's already in use, it will use the next available port:++```md+Port 3000 is already in use. Trying 3001 instead.+```++## Mintlify Versions++Please note that each CLI release is associated with a specific version of Mintlify. If your local website doesn't align with the production version, please update the CLI:++<CodeGroup>++```bash npm+npm i -g mintlify@latest+```++```bash yarn+yarn global upgrade mintlify+```++</CodeGroup>++## Validating Links++The CLI can assist with validating reference links made in your documentation. To identify any broken links, use the following command:++```bash+mintlify broken-links+```++## Deployment++<Tip>+ Unlimited editors available under the [Pro+ Plan](https://mintlify.com/pricing) and above.+</Tip>++If the deployment is successful, you should see the following:++<Frame>+ <img src="/images/checks-passed.png" style={{ borderRadius: '0.5rem' }} />+</Frame>++## Code Formatting++We suggest using extensions on your IDE to recognize and format MDX. If you're a VSCode user, consider the [MDX VSCode extension](https://marketplace.visualstudio.com/items?itemName=unifiedjs.vscode-mdx) for syntax highlighting, and [Prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) for code formatting.++## Troubleshooting++<AccordionGroup>+ <Accordion title='Error: Could not load the "sharp" module using the darwin-arm64 runtime'>++ This may be due to an outdated version of node. Try the following:+ 1. Remove the currently-installed version of mintlify: `npm remove -g mintlify`+ 2. Upgrade to Node v19 or higher.+ 3. Reinstall mintlify: `npm install -g mintlify`+ </Accordion>++ <Accordion title="Issue: Encountering an unknown error">++ Solution: Go to the root of your device and delete the \~/.mintlify folder. Afterwards, run `mintlify dev` again.+ </Accordion>+</AccordionGroup>++Curious about what changed in the CLI version? [Check out the CLI changelog.](https://www.npmjs.com/package/mintlify?activeTab=versions)diff --git a/docs/development/contribution-guide.mdx b/docs/development/contribution-guide.mdxnew file mode 100644index 000000000..37b551953--- /dev/null+++ b/docs/development/contribution-guide.mdx@@ -0,0 +1,7 @@+---+title: "Contribution Guide"+description: "Learn how to contribute to Browser Use"+icon: "code-pull-request"+---++Working on it!diff --git a/docs/development/local-setup.mdx b/docs/development/local-setup.mdxnew file mode 100644index 000000000..a4af63569--- /dev/null+++ b/docs/development/local-setup.mdx@@ -0,0 +1,76 @@+---+title: "Local Setup"+description: "Set up Browser Use development environment locally"+icon: "laptop-code"+---++## Prerequisites++Browser Use requires Python 3.11 or higher. We recommend using [uv](https://docs.astral.sh/uv/) for Python environment management.++## Clone the Repository++First, clone the Browser Use repository:++```bash+git clone https://github.com/browser-use/browser-use+cd browser-use+```++## Environment Setup++1. Create a virtual environment:++```bash+uv venv --python 3.11+```++2. Install dependencies:++```bash+# Install all dependencies including dev packages+uv pip install . ."[dev]"+```++## Configuration++Set up your environment variables:++```bash+# Copy the example environment file+cp .env.example .env+```++Or manually create a `.env` file with your API keys:++```bash .env+OPENAI_API_KEY=+ANTHROPIC_API_KEY=+```++<Note>+ You can use any LLM model supported by LangChain. See [LangChain+ Models](/customize/langchain-models) for available options and their specific+ API key requirements.+</Note>++## Development++After setup, you can:++- Run tests with `pytest`+- Build the package with `hatch build`+- Try the examples in the `examples/` directory++## Getting Help++If you run into any issues:++1. Check our [GitHub Issues](https://github.com/browser-use/browser-use/issues)+2. Join our [Discord community](https://link.browser-use.com/discord) for support++<Note>+ We welcome contributions! See our [Contribution+ Guide](/development/contribution-guide) for guidelines on how to help improve+ Browser Use.+</Note>diff --git a/docs/development/roadmap.mdx b/docs/development/roadmap.mdxnew file mode 100644index 000000000..34f05f5a4--- /dev/null+++ b/docs/development/roadmap.mdx@@ -0,0 +1,7 @@+---+title: "Roadmap"+description: "Future plans and upcoming features for Browser Use"+icon: "road"+---++Big things coming soon!diff --git a/docs/development/telemetry.mdx b/docs/development/telemetry.mdxnew file mode 100644index 000000000..fe4f7cb54--- /dev/null+++ b/docs/development/telemetry.mdx@@ -0,0 +1,39 @@+---+title: "Telemetry"+description: "Understanding Browser Use's telemetry and privacy settings"+icon: "chart-mixed"+---++## Overview++Browser Use collects anonymous usage data to help us understand how the library is being used and to improve the user experience. It also helps us fix bugs faster and prioritize feature development.++## Data Collection++We use [PostHog](https://posthog.com) for telemetry collection. The data is completely anonymized and contains no personally identifiable information.++<Note>+ We never collect personal information, credentials, or specific content from+ your browser automation tasks.+</Note>++## Opting Out++You can disable telemetry by setting an environment variable:++```bash .env+ANONYMIZED_TELEMETRY=false+```++Or in your Python code:++```python+import os+os.environ["ANONYMIZED_TELEMETRY"] = "false"+```++<Note>+ Even when enabled, telemetry has zero impact on the library's performance or+ functionality. Code is available in [Telemetry+ Service](https://github.com/browser-use/browser-use/tree/main/browser_use/telemetry).+</Note>diff --git a/docs/favicon.svg b/docs/favicon.svgnew file mode 100644index 000000000..59f98742e--- /dev/null+++ b/docs/favicon.svg@@ -0,0 +1,13 @@+<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">+<g clip-path="url(#clip0_7_13)">+<path d="M97.8916 39.0448C82.6177 33.1997 95.2199 10.8169 74.212 11.3849C48.5413 12.0793 8.31528 52.4518 12.4236 78.6851C14.4652 91.6755 24.6096 86.2218 29.3732 88.1154C32.5364 89.3652 36.2792 95.0083 40.3245 95.9047C22.4293 106.193 -0.556809 96.397 0.0102912 74.3423C0.829435 41.86 47.7474 -5.25386 81.1937 0.477571C99.8702 3.68414 102.189 23.5422 97.8916 39.0448Z" fill="white"/>+<path d="M24.8115 57.7541L39.6068 71.7166C49.0332 80.1875 74.061 94.9706 85.403 84.9469C98.774 73.1306 70.495 32.3162 57.4769 25.802L68.9069 20.6639C86.7138 33.6796 113.783 75.9836 91.7294 94.4025C77.5014 106.282 54.5655 96.2204 41.0811 87.3707C30.8103 80.6294 15.9647 70.9591 24.8115 57.7415V57.7541Z" fill="white"/>+<path d="M40.3373 4.75723C35.5485 4.88347 31.8055 11.1199 28.2895 12.2182C25.1642 13.1903 20.8414 10.5266 16.1408 14.0487C11.0495 17.8613 12.7891 36.0655 3.02233 40.5976C-2.98893 22.9362 0.75354 1.8789 22.4672 0.0736228C24.1433 -0.0652445 42.7822 1.17195 40.3373 4.74463V4.75723Z" fill="white"/>+<path d="M76.1025 57.754C84.1175 71.0348 69.5871 86.2092 57.489 74.1025L76.1025 57.754Z" fill="white"/>+</g>+<defs>+<clipPath id="clip0_7_13">+<rect width="100" height="100" fill="white"/>+</clipPath>+</defs>+</svg>diff --git a/docs/images/browser-use.png b/docs/images/browser-use.pngnew file mode 100644index 000000000..54685c4f4Binary files /dev/null and b/docs/images/browser-use.png differdiff --git a/docs/images/checks-passed.png b/docs/images/checks-passed.pngnew file mode 100644index 000000000..3303c7736Binary files /dev/null and b/docs/images/checks-passed.png differdiff --git a/docs/introduction.mdx b/docs/introduction.mdxnew file mode 100644index 000000000..42dc24106--- /dev/null+++ b/docs/introduction.mdx@@ -0,0 +1,101 @@+---+title: "Introduction"+description: "Welcome to Browser Use - AI-powered browser automation"+icon: "book-open"+---++<img className="block" src="/images/browser-use.png" alt="Browser Use" />++## Overview++Browser Use is the easiest way to connect your AI agents with the browser. It makes websites accessible for AI agents by providing a powerful, yet simple interface for browser automation.++<Note>+ If you have used Browser Use for your project, feel free to show it off in our+ [Discord community](https://link.browser-use.com/discord)!+</Note>++## Getting Started++<CardGroup cols={2}>+ <Card title="Quick Start" icon="rocket" href="/quickstart">+ Get up and running with Browser Use in minutes+ </Card>+ <Card title="Agent Settings" icon="gear" href="/customize/agent-settings">+ Learn how to configure and customize your agents+ </Card>+ <Card title="Custom Functions" icon="code" href="/customize/custom-functions">+ Extend functionality with custom actions+ </Card>+ <Card+ title="LangChain Models"+ icon="robot"+ href="/customize/langchain-models"+ >+ Configure different LLMs for your agents+ </Card>+</CardGroup>++## Fancy Demos++### Writing in Google Docs++Task: Write a letter in Google Docs to my Papa, thanking him for everything, and save the document as a PDF.++<Frame>+ <img src="https://github.com/user-attachments/assets/242ade3e-15bc-41c2-988f-cbc5415a66aa" />+</Frame>++### Job Applications++Task: Read my CV & find ML jobs, save them to a file, and then start applying for them in new tabs.++<Frame>+ <video+ controls+ src="https://github.com/user-attachments/assets/171fb4d6-0355-46f2-863e-edb04a828d04"+ />+</Frame>++### Flight Search++Task: Find flights on kayak.com from Zurich to Beijing.++<Frame>+ <img src="https://github.com/user-attachments/assets/ea605d4a-90e6-481e-a569-f0e0db7e6390" />+</Frame>++### Data Collection++Task: 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.++<Frame>+ <video+ controls+ src="https://github.com/user-attachments/assets/de73ee39-432c-4b97-b4e8-939fd7f323b3"+ />+</Frame>++## Community & Support++<CardGroup cols={2}>+ <Card+ title="Join Discord"+ icon="discord"+ href="https://link.browser-use.com/discord"+ >+ Join our community for support and showcases+ </Card>+ <Card+ title="GitHub"+ icon="github"+ href="https://github.com/browser-use/browser-use"+ >+ Star us on GitHub and contribute to development+ </Card>+</CardGroup>++<Note>+ Browser Use is MIT licensed and actively maintained. We welcome contributions+ and feedback from the community!+</Note>diff --git a/docs/logo/dark.svg b/docs/logo/dark.svgnew file mode 100644index 000000000..02e2e4fcb--- /dev/null+++ b/docs/logo/dark.svg@@ -0,0 +1,7 @@+<svg width="1867" height="292" viewBox="0 0 1867 292" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M266.265 106.202C224.72 90.3033 258.998 29.4218 201.857 30.9671C132.032 32.8557 22.6176 142.669 33.7922 214.023C39.3453 249.357 66.9381 234.523 79.8952 239.674C88.499 243.073 98.6794 258.423 109.683 260.861C61.0078 288.846 -1.51452 262.2 0.0279922 202.211C2.25607 113.859 129.873 -14.2905 220.847 1.29899C271.647 10.0209 277.954 64.0347 266.265 106.202Z" fill="white"/>+<path d="M67.4872 157.091L107.73 195.069C133.37 218.11 201.446 258.32 232.296 231.056C268.665 198.915 191.746 87.9001 156.337 70.1817L187.427 56.2061C235.862 91.6086 309.49 206.676 249.504 256.775C210.804 289.087 148.418 261.72 111.741 237.649C83.8041 219.312 43.4241 193.009 67.4872 157.057V157.091Z" fill="white"/>+<path d="M109.717 12.9395C96.6917 13.2829 86.511 30.246 76.9474 33.2334C68.4465 35.8774 56.6886 28.6321 43.9029 38.2125C30.0546 48.5826 34.7861 98.0981 8.22063 110.426C-8.12999 62.3865 2.04951 5.11049 61.1106 0.200137C65.6695 -0.177582 116.367 3.1876 109.717 12.9053V12.9395Z" fill="white"/>+<path d="M206.999 157.091C228.8 193.214 189.277 234.489 156.37 201.559L206.999 157.091Z" fill="white"/>+<path d="M504.359 178.759C504.359 195.08 498.53 206.701 486.872 213.621C475.289 220.54 460.397 224 442.195 224H393.795V67.9692H439.374C456.523 67.9692 470.513 71.053 481.344 77.2205C492.174 83.388 497.59 93.5419 497.59 107.682C497.59 116.708 494.882 124.079 489.467 129.795C484.051 135.511 477.169 139.385 468.821 141.415C478.899 142.995 487.323 146.718 494.092 152.585C500.937 158.451 504.359 167.176 504.359 178.759ZM466.338 110.39C466.338 103.47 464.157 98.4308 459.795 95.2718C455.508 92.1128 449.002 90.5333 440.277 90.5333H424.708V131.713H441.631C450.13 131.713 456.373 130.021 460.359 126.636C464.345 123.251 466.338 117.836 466.338 110.39ZM472.318 177.969C472.318 169.019 469.836 162.701 464.872 159.015C459.908 155.33 452.913 153.487 443.887 153.487H424.708V200.872H442.533C451.409 200.872 458.591 199.255 464.082 196.021C469.573 192.711 472.318 186.694 472.318 177.969ZM619.064 101.251C622.675 101.251 625.946 101.552 628.88 102.154C631.888 102.68 634.859 103.47 637.793 104.523L632.49 151.118H612.634V127.764C605.037 128.366 598.381 131.788 592.664 138.031C587.023 144.274 582.548 152.735 579.239 163.415V203.354H603.044V224H532.644V203.354H549.454V125.056H532.644V104.523H572.131L577.659 131.938C582.097 121.634 587.625 113.962 594.244 108.923C600.938 103.809 609.211 101.251 619.064 101.251ZM716.508 101.138C728.242 101.138 738.283 103.733 746.631 108.923C754.98 114.038 761.298 121.333 765.585 130.81C769.948 140.212 772.129 151.268 772.129 163.979C772.129 176.916 769.948 188.161 765.585 197.713C761.223 207.19 754.83 214.523 746.406 219.713C738.057 224.827 728.054 227.385 716.395 227.385C704.662 227.385 694.621 224.865 686.272 219.826C677.924 214.786 671.568 207.528 667.206 198.051C662.843 188.574 660.662 177.292 660.662 164.205C660.662 151.72 662.843 140.738 667.206 131.262C671.643 121.709 678.036 114.301 686.385 109.036C694.809 103.771 704.85 101.138 716.508 101.138ZM716.508 123.59C708.084 123.59 701.842 126.899 697.78 133.518C693.719 140.062 691.688 150.291 691.688 164.205C691.688 178.27 693.719 188.574 697.78 195.118C701.842 201.662 708.047 204.933 716.395 204.933C724.744 204.933 730.949 201.662 735.011 195.118C739.072 188.499 741.103 178.12 741.103 163.979C741.103 150.215 739.072 140.062 735.011 133.518C730.949 126.899 724.782 123.59 716.508 123.59ZM917.521 104.523L899.244 224H864.27L852.198 141.077L839.337 224H805.039L785.973 104.523H813.952L824.332 205.497L839.111 119.641H866.526L880.065 205.497L890.67 104.523H917.521ZM983.037 205.385C990.182 205.385 995.823 204.181 999.96 201.774C1004.17 199.292 1006.28 195.832 1006.28 191.395C1006.28 188.311 1005.56 185.791 1004.13 183.836C1002.71 181.88 999.96 180.038 995.899 178.308C991.912 176.503 985.858 174.509 977.734 172.328C969.461 170.222 962.541 167.74 956.975 164.882C951.41 161.949 947.085 158.188 944.001 153.6C940.917 148.937 939.375 143.221 939.375 136.451C939.375 129.532 941.331 123.402 945.242 118.062C949.228 112.721 954.945 108.585 962.391 105.651C969.912 102.643 978.787 101.138 989.017 101.138C1007.22 101.138 1022.75 105.802 1035.61 115.128L1023.43 133.292C1012.52 126.373 1001.28 122.913 989.693 122.913C976.305 122.913 969.611 126.749 969.611 134.421C969.611 137.053 970.401 139.234 971.981 140.964C973.635 142.694 976.456 144.349 980.442 145.928C984.504 147.508 990.709 149.463 999.058 151.795C1007.63 154.202 1014.63 156.834 1020.04 159.692C1025.53 162.55 1029.78 166.349 1032.79 171.087C1035.87 175.826 1037.42 181.88 1037.42 189.251C1037.42 197.525 1034.93 204.557 1029.97 210.349C1025.08 216.065 1018.54 220.352 1010.34 223.21C1002.14 225.993 993.078 227.385 983.15 227.385C972.319 227.385 962.654 225.843 954.155 222.759C945.656 219.675 938.322 215.426 932.155 210.01L947.611 192.636C952.5 196.547 957.953 199.668 963.97 202C969.987 204.256 976.343 205.385 983.037 205.385ZM1098.31 173.344C1099.13 184.099 1102.29 192.072 1107.78 197.262C1113.35 202.451 1120.46 205.046 1129.11 205.046C1134.6 205.046 1139.86 204.181 1144.9 202.451C1149.94 200.721 1155.02 198.164 1160.13 194.779L1172.54 211.815C1166.75 216.704 1159.98 220.54 1152.23 223.323C1144.49 226.031 1136.14 227.385 1127.19 227.385C1114.48 227.385 1103.65 224.752 1094.7 219.487C1085.82 214.222 1079.09 206.851 1074.5 197.374C1069.99 187.897 1067.73 176.916 1067.73 164.431C1067.73 152.472 1069.95 141.716 1074.39 132.164C1078.9 122.537 1085.37 114.978 1093.79 109.487C1102.29 103.921 1112.3 101.138 1123.8 101.138C1134.63 101.138 1144.07 103.545 1152.12 108.359C1160.17 113.173 1166.37 120.13 1170.74 129.231C1175.1 138.256 1177.28 149.012 1177.28 161.497C1177.28 165.785 1177.09 169.733 1176.72 173.344H1098.31ZM1123.92 122.123C1116.47 122.123 1110.45 124.793 1105.87 130.133C1101.35 135.398 1098.72 143.446 1097.97 154.277H1148.29C1148.14 143.973 1145.99 136.038 1141.86 130.472C1137.79 124.906 1131.81 122.123 1123.92 122.123ZM1295.82 101.251C1299.43 101.251 1302.7 101.552 1305.64 102.154C1308.65 102.68 1311.62 103.47 1314.55 104.523L1309.25 151.118H1289.39V127.764C1281.79 128.366 1275.14 131.788 1269.42 138.031C1263.78 144.274 1259.31 152.735 1256 163.415V203.354H1279.8V224H1209.4V203.354H1226.21V125.056H1209.4V104.523H1248.89L1254.42 131.938C1258.85 121.634 1264.38 113.962 1271 108.923C1277.7 103.809 1285.97 101.251 1295.82 101.251ZM1584.35 172.328C1584.35 183.084 1582.17 192.636 1577.81 200.985C1573.52 209.258 1567.16 215.726 1558.74 220.39C1550.32 225.053 1540.2 227.385 1528.39 227.385C1516.43 227.385 1506.28 225.091 1497.93 220.503C1489.58 215.915 1483.26 209.484 1478.98 201.21C1474.76 192.937 1472.66 183.309 1472.66 172.328V67.9692H1503.57V163.641C1503.57 172.817 1504.36 180.301 1505.94 186.092C1507.52 191.884 1510.12 196.246 1513.73 199.179C1517.34 202.113 1522.22 203.579 1528.39 203.579C1534.56 203.579 1539.45 202.113 1543.06 199.179C1546.74 196.246 1549.38 191.884 1550.96 186.092C1552.54 180.301 1553.33 172.817 1553.33 163.641V67.9692H1584.35V172.328ZM1659.79 205.385C1666.94 205.385 1672.58 204.181 1676.72 201.774C1680.93 199.292 1683.04 195.832 1683.04 191.395C1683.04 188.311 1682.32 185.791 1680.89 183.836C1679.46 181.88 1676.72 180.038 1672.66 178.308C1668.67 176.503 1662.62 174.509 1654.49 172.328C1646.22 170.222 1639.3 167.74 1633.73 164.882C1628.17 161.949 1623.84 158.188 1620.76 153.6C1617.68 148.937 1616.13 143.221 1616.13 136.451C1616.13 129.532 1618.09 123.402 1622 118.062C1625.99 112.721 1631.7 108.585 1639.15 105.651C1646.67 102.643 1655.55 101.138 1665.77 101.138C1683.98 101.138 1699.51 105.802 1712.37 115.128L1700.18 133.292C1689.28 126.373 1678.03 122.913 1666.45 122.913C1653.06 122.913 1646.37 126.749 1646.37 134.421C1646.37 137.053 1647.16 139.234 1648.74 140.964C1650.39 142.694 1653.21 144.349 1657.2 145.928C1661.26 147.508 1667.47 149.463 1675.82 151.795C1684.39 154.202 1691.38 156.834 1696.8 159.692C1702.29 162.55 1706.54 166.349 1709.55 171.087C1712.63 175.826 1714.17 181.88 1714.17 189.251C1714.17 197.525 1711.69 204.557 1706.73 210.349C1701.84 216.065 1695.3 220.352 1687.1 223.21C1678.9 225.993 1669.84 227.385 1659.91 227.385C1649.08 227.385 1639.41 225.843 1630.91 222.759C1622.41 219.675 1615.08 215.426 1608.91 210.01L1624.37 192.636C1629.26 196.547 1634.71 199.668 1640.73 202C1646.75 204.256 1653.1 205.385 1659.79 205.385ZM1775.06 173.344C1775.89 184.099 1779.05 192.072 1784.54 197.262C1790.11 202.451 1797.21 205.046 1805.86 205.046C1811.35 205.046 1816.62 204.181 1821.66 202.451C1826.7 200.721 1831.78 198.164 1836.89 194.779L1849.3 211.815C1843.51 216.704 1836.74 220.54 1828.99 223.323C1821.25 226.031 1812.9 227.385 1803.95 227.385C1791.24 227.385 1780.4 224.752 1771.45 219.487C1762.58 214.222 1755.85 206.851 1751.26 197.374C1746.75 187.897 1744.49 176.916 1744.49 164.431C1744.49 152.472 1746.71 141.716 1751.15 132.164C1755.66 122.537 1762.13 114.978 1770.55 109.487C1779.05 103.921 1789.05 101.138 1800.56 101.138C1811.39 101.138 1820.83 103.545 1828.88 108.359C1836.93 113.173 1843.13 120.13 1847.5 129.231C1851.86 138.256 1854.04 149.012 1854.04 161.497C1854.04 165.785 1853.85 169.733 1853.47 173.344H1775.06ZM1800.67 122.123C1793.23 122.123 1787.21 124.793 1782.62 130.133C1778.11 135.398 1775.48 143.446 1774.73 154.277H1825.04C1824.89 143.973 1822.75 136.038 1818.61 130.472C1814.55 124.906 1808.57 122.123 1800.67 122.123Z" fill="white"/>+</svg>diff --git a/docs/logo/light.svg b/docs/logo/light.svgnew file mode 100644index 000000000..f01b2e250--- /dev/null+++ b/docs/logo/light.svg@@ -0,0 +1,7 @@+<svg width="1867" height="292" viewBox="0 0 1867 292" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M266.265 106.202C224.72 90.3033 258.998 29.4218 201.857 30.9671C132.032 32.8557 22.6176 142.669 33.7922 214.023C39.3453 249.357 66.9381 234.523 79.8952 239.674C88.499 243.073 98.6794 258.423 109.683 260.861C61.0078 288.846 -1.51452 262.2 0.0279922 202.211C2.25607 113.859 129.873 -14.2905 220.847 1.29899C271.647 10.0209 277.954 64.0347 266.265 106.202Z" fill="black"/>+<path d="M67.4872 157.091L107.73 195.069C133.37 218.11 201.446 258.32 232.296 231.056C268.665 198.915 191.746 87.9001 156.337 70.1817L187.427 56.2061C235.862 91.6086 309.49 206.676 249.504 256.775C210.804 289.087 148.418 261.72 111.741 237.649C83.8041 219.312 43.4241 193.009 67.4872 157.057V157.091Z" fill="black"/>+<path d="M109.717 12.9395C96.6917 13.2829 86.511 30.246 76.9474 33.2334C68.4465 35.8774 56.6886 28.6321 43.9029 38.2125C30.0546 48.5826 34.7861 98.0981 8.22063 110.426C-8.12999 62.3865 2.04951 5.11049 61.1106 0.200137C65.6695 -0.177582 116.367 3.1876 109.717 12.9053V12.9395Z" fill="black"/>+<path d="M206.999 157.091C228.8 193.214 189.277 234.489 156.37 201.559L206.999 157.091Z" fill="black"/>+<path d="M504.359 178.759C504.359 195.08 498.53 206.701 486.872 213.621C475.289 220.54 460.397 224 442.195 224H393.795V67.9692H439.374C456.523 67.9692 470.513 71.053 481.344 77.2205C492.174 83.388 497.59 93.5419 497.59 107.682C497.59 116.708 494.882 124.079 489.467 129.795C484.051 135.511 477.169 139.385 468.821 141.415C478.899 142.995 487.323 146.718 494.092 152.585C500.937 158.451 504.359 167.176 504.359 178.759ZM466.338 110.39C466.338 103.47 464.157 98.4308 459.795 95.2718C455.508 92.1128 449.002 90.5333 440.277 90.5333H424.708V131.713H441.631C450.13 131.713 456.373 130.021 460.359 126.636C464.345 123.251 466.338 117.836 466.338 110.39ZM472.318 177.969C472.318 169.019 469.836 162.701 464.872 159.015C459.908 155.33 452.913 153.487 443.887 153.487H424.708V200.872H442.533C451.409 200.872 458.591 199.255 464.082 196.021C469.573 192.711 472.318 186.694 472.318 177.969ZM619.064 101.251C622.675 101.251 625.946 101.552 628.88 102.154C631.888 102.68 634.859 103.47 637.793 104.523L632.49 151.118H612.634V127.764C605.037 128.366 598.381 131.788 592.664 138.031C587.023 144.274 582.548 152.735 579.239 163.415V203.354H603.044V224H532.644V203.354H549.454V125.056H532.644V104.523H572.131L577.659 131.938C582.097 121.634 587.625 113.962 594.244 108.923C600.938 103.809 609.211 101.251 619.064 101.251ZM716.508 101.138C728.242 101.138 738.283 103.733 746.631 108.923C754.98 114.038 761.298 121.333 765.585 130.81C769.948 140.212 772.129 151.268 772.129 163.979C772.129 176.916 769.948 188.161 765.585 197.713C761.223 207.19 754.83 214.523 746.406 219.713C738.057 224.827 728.054 227.385 716.395 227.385C704.662 227.385 694.621 224.865 686.272 219.826C677.924 214.786 671.568 207.528 667.206 198.051C662.843 188.574 660.662 177.292 660.662 164.205C660.662 151.72 662.843 140.738 667.206 131.262C671.643 121.709 678.036 114.301 686.385 109.036C694.809 103.771 704.85 101.138 716.508 101.138ZM716.508 123.59C708.084 123.59 701.842 126.899 697.78 133.518C693.719 140.062 691.688 150.291 691.688 164.205C691.688 178.27 693.719 188.574 697.78 195.118C701.842 201.662 708.047 204.933 716.395 204.933C724.744 204.933 730.949 201.662 735.011 195.118C739.072 188.499 741.103 178.12 741.103 163.979C741.103 150.215 739.072 140.062 735.011 133.518C730.949 126.899 724.782 123.59 716.508 123.59ZM917.521 104.523L899.244 224H864.27L852.198 141.077L839.337 224H805.039L785.973 104.523H813.952L824.332 205.497L839.111 119.641H866.526L880.065 205.497L890.67 104.523H917.521ZM983.037 205.385C990.182 205.385 995.823 204.181 999.96 201.774C1004.17 199.292 1006.28 195.832 1006.28 191.395C1006.28 188.311 1005.56 185.791 1004.13 183.836C1002.71 181.88 999.96 180.038 995.899 178.308C991.912 176.503 985.858 174.509 977.734 172.328C969.461 170.222 962.541 167.74 956.975 164.882C951.41 161.949 947.085 158.188 944.001 153.6C940.917 148.937 939.375 143.221 939.375 136.451C939.375 129.532 941.331 123.402 945.242 118.062C949.228 112.721 954.945 108.585 962.391 105.651C969.912 102.643 978.787 101.138 989.017 101.138C1007.22 101.138 1022.75 105.802 1035.61 115.128L1023.43 133.292C1012.52 126.373 1001.28 122.913 989.693 122.913C976.305 122.913 969.611 126.749 969.611 134.421C969.611 137.053 970.401 139.234 971.981 140.964C973.635 142.694 976.456 144.349 980.442 145.928C984.504 147.508 990.709 149.463 999.058 151.795C1007.63 154.202 1014.63 156.834 1020.04 159.692C1025.53 162.55 1029.78 166.349 1032.79 171.087C1035.87 175.826 1037.42 181.88 1037.42 189.251C1037.42 197.525 1034.93 204.557 1029.97 210.349C1025.08 216.065 1018.54 220.352 1010.34 223.21C1002.14 225.993 993.078 227.385 983.15 227.385C972.319 227.385 962.654 225.843 954.155 222.759C945.656 219.675 938.322 215.426 932.155 210.01L947.611 192.636C952.5 196.547 957.953 199.668 963.97 202C969.987 204.256 976.343 205.385 983.037 205.385ZM1098.31 173.344C1099.13 184.099 1102.29 192.072 1107.78 197.262C1113.35 202.451 1120.46 205.046 1129.11 205.046C1134.6 205.046 1139.86 204.181 1144.9 202.451C1149.94 200.721 1155.02 198.164 1160.13 194.779L1172.54 211.815C1166.75 216.704 1159.98 220.54 1152.23 223.323C1144.49 226.031 1136.14 227.385 1127.19 227.385C1114.48 227.385 1103.65 224.752 1094.7 219.487C1085.82 214.222 1079.09 206.851 1074.5 197.374C1069.99 187.897 1067.73 176.916 1067.73 164.431C1067.73 152.472 1069.95 141.716 1074.39 132.164C1078.9 122.537 1085.37 114.978 1093.79 109.487C1102.29 103.921 1112.3 101.138 1123.8 101.138C1134.63 101.138 1144.07 103.545 1152.12 108.359C1160.17 113.173 1166.37 120.13 1170.74 129.231C1175.1 138.256 1177.28 149.012 1177.28 161.497C1177.28 165.785 1177.09 169.733 1176.72 173.344H1098.31ZM1123.92 122.123C1116.47 122.123 1110.45 124.793 1105.87 130.133C1101.35 135.398 1098.72 143.446 1097.97 154.277H1148.29C1148.14 143.973 1145.99 136.038 1141.86 130.472C1137.79 124.906 1131.81 122.123 1123.92 122.123ZM1295.82 101.251C1299.43 101.251 1302.7 101.552 1305.64 102.154C1308.65 102.68 1311.62 103.47 1314.55 104.523L1309.25 151.118H1289.39V127.764C1281.79 128.366 1275.14 131.788 1269.42 138.031C1263.78 144.274 1259.31 152.735 1256 163.415V203.354H1279.8V224H1209.4V203.354H1226.21V125.056H1209.4V104.523H1248.89L1254.42 131.938C1258.85 121.634 1264.38 113.962 1271 108.923C1277.7 103.809 1285.97 101.251 1295.82 101.251ZM1584.35 172.328C1584.35 183.084 1582.17 192.636 1577.81 200.985C1573.52 209.258 1567.16 215.726 1558.74 220.39C1550.32 225.053 1540.2 227.385 1528.39 227.385C1516.43 227.385 1506.28 225.091 1497.93 220.503C1489.58 215.915 1483.26 209.484 1478.98 201.21C1474.76 192.937 1472.66 183.309 1472.66 172.328V67.9692H1503.57V163.641C1503.57 172.817 1504.36 180.301 1505.94 186.092C1507.52 191.884 1510.12 196.246 1513.73 199.179C1517.34 202.113 1522.22 203.579 1528.39 203.579C1534.56 203.579 1539.45 202.113 1543.06 199.179C1546.74 196.246 1549.38 191.884 1550.96 186.092C1552.54 180.301 1553.33 172.817 1553.33 163.641V67.9692H1584.35V172.328ZM1659.79 205.385C1666.94 205.385 1672.58 204.181 1676.72 201.774C1680.93 199.292 1683.04 195.832 1683.04 191.395C1683.04 188.311 1682.32 185.791 1680.89 183.836C1679.46 181.88 1676.72 180.038 1672.66 178.308C1668.67 176.503 1662.62 174.509 1654.49 172.328C1646.22 170.222 1639.3 167.74 1633.73 164.882C1628.17 161.949 1623.84 158.188 1620.76 153.6C1617.68 148.937 1616.13 143.221 1616.13 136.451C1616.13 129.532 1618.09 123.402 1622 118.062C1625.99 112.721 1631.7 108.585 1639.15 105.651C1646.67 102.643 1655.55 101.138 1665.77 101.138C1683.98 101.138 1699.51 105.802 1712.37 115.128L1700.18 133.292C1689.28 126.373 1678.03 122.913 1666.45 122.913C1653.06 122.913 1646.37 126.749 1646.37 134.421C1646.37 137.053 1647.16 139.234 1648.74 140.964C1650.39 142.694 1653.21 144.349 1657.2 145.928C1661.26 147.508 1667.47 149.463 1675.82 151.795C1684.39 154.202 1691.38 156.834 1696.8 159.692C1702.29 162.55 1706.54 166.349 1709.55 171.087C1712.63 175.826 1714.17 181.88 1714.17 189.251C1714.17 197.525 1711.69 204.557 1706.73 210.349C1701.84 216.065 1695.3 220.352 1687.1 223.21C1678.9 225.993 1669.84 227.385 1659.91 227.385C1649.08 227.385 1639.41 225.843 1630.91 222.759C1622.41 219.675 1615.08 215.426 1608.91 210.01L1624.37 192.636C1629.26 196.547 1634.71 199.668 1640.73 202C1646.75 204.256 1653.1 205.385 1659.79 205.385ZM1775.06 173.344C1775.89 184.099 1779.05 192.072 1784.54 197.262C1790.11 202.451 1797.21 205.046 1805.86 205.046C1811.35 205.046 1816.62 204.181 1821.66 202.451C1826.7 200.721 1831.78 198.164 1836.89 194.779L1849.3 211.815C1843.51 216.704 1836.74 220.54 1828.99 223.323C1821.25 226.031 1812.9 227.385 1803.95 227.385C1791.24 227.385 1780.4 224.752 1771.45 219.487C1762.58 214.222 1755.85 206.851 1751.26 197.374C1746.75 187.897 1744.49 176.916 1744.49 164.431C1744.49 152.472 1746.71 141.716 1751.15 132.164C1755.66 122.537 1762.13 114.978 1770.55 109.487C1779.05 103.921 1789.05 101.138 1800.56 101.138C1811.39 101.138 1820.83 103.545 1828.88 108.359C1836.93 113.173 1843.13 120.13 1847.5 129.231C1851.86 138.256 1854.04 149.012 1854.04 161.497C1854.04 165.785 1853.85 169.733 1853.47 173.344H1775.06ZM1800.67 122.123C1793.23 122.123 1787.21 124.793 1782.62 130.133C1778.11 135.398 1775.48 143.446 1774.73 154.277H1825.04C1824.89 143.973 1822.75 136.038 1818.61 130.472C1814.55 124.906 1808.57 122.123 1800.67 122.123Z" fill="black"/>+</svg>diff --git a/docs/mint.json b/docs/mint.jsonnew file mode 100644index 000000000..effbf319c--- /dev/null+++ b/docs/mint.json@@ -0,0 +1,68 @@+{+ "$schema": "https://mintlify.com/schema.json",+ "name": "Browser Use",+ "logo": {+ "dark": "/logo/dark.svg",+ "light": "/logo/light.svg",+ "href": "https://browser-use.com"+ },+ "favicon": "/favicon.svg",+ "colors": {+ "primary": "#F97316",+ "light": "#FFF7ED",+ "dark": "#C2410C",+ "anchors": {+ "from": "#F97316",+ "to": "#FB923C"+ }+ },+ "feedback": {+ "thumbsRating": true,+ "raiseIssue": true,+ "suggestEdit": true+ },+ "topbarLinks": [+ {+ "name": "Github",+ "url": "https://github.com/browser-use/browser-use"+ },+ {+ "name": "Twitter",+ "url": "https://x.com/gregpr07"+ }+ ],+ "topbarCtaButton": {+ "name": "Join Discord",+ "url": "https://link.browser-use.com/discord"+ },++ "navigation": [+ {+ "group": "Get Started",+ "pages": ["introduction", "quickstart"]+ },+ {+ "group": "Customize",+ "pages": [+ "customize/agent-settings",+ "customize/browser-settings",+ "customize/custom-functions",+ "customize/langchain-models",+ "customize/system-prompt"+ ]+ },+ {+ "group": "Development",+ "pages": [+ "development/local-setup",+ "development/telemetry",+ "development/roadmap"+ ]+ }+ ],+ "footerSocials": {+ "x": "https://x.com/gregpr07",+ "github": "https://github.com/browser-use/browser-use",+ "linkedin": "https://linkedin.com/company/browser-use"+ }+}diff --git a/docs/quickstart.mdx b/docs/quickstart.mdxnew file mode 100644index 000000000..f31a47313--- /dev/null+++ b/docs/quickstart.mdx@@ -0,0 +1,68 @@+---+title: "Quickstart"+description: "Start using Browser Use with this quickstart guide"+icon: "rocket"+---++{/* You can install Browser Use from PyPI or clone it from Github. */}++## Prepare the environment++Browser Use requires Python 3.11 or higher.++First, we recommend using [uv](https://docs.astral.sh/uv/) to setup the Python environment.++```bash+uv venv --python 3.11+```++and activate it with:++```bash+source .venv/bin/activate+```++Install the dependencies:++```bash+uv pip install browser-use+```++Then install playwright:++```bash+playwright install+```++## Create an agent++Then you can use the agent as follows:++```python agent.py+from langchain_openai import ChatOpenAI+from browser_use import Agent+import asyncio++llm = ChatOpenAI(model="gpt-4o")++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=llm,+ )+ result = await agent.run()+ print(result)++asyncio.run(main())+```++### Set up your LLM API keys++`ChatOpenAI` and other Langchain chat models require specific API keys. For example, for OpenAI and Anthropic, you can set the API keys in your `.env` file, such as.++```bash .env+OPENAI_API_KEY=+ANTHROPIC_API_KEY=+```++For other LLM models you can refer to the [Langchain documentation](https://python.langchain.com/docs/integrations/chat/) to find how to set them up with their specific API keys.