Skip to content

Repository files navigation

hello-browser-use

trying out browser-use

Setup Environment

This project uses uv for fast Python dependency management.

  1. Install uv (if you haven't already):

    curl -LsSf https://astral.sh/uv/install.sh | sh

    (For other installation methods, refer to the uv documentation.)

  2. Set up your environment variables: Copy from .env.example to create a .env file in the root directory to store your API keys necessary for the browser-use-sdk to operate (such as your BROWSER_USE_API_KEY).

    cp .env.example .env
  3. Install dependencies: Run the following command to automatically create a virtual environment (.venv) and install all required packages listed in pyproject.toml:

    uv sync

Running the Examples

Once the environment is successfully initialized and your .env is configured, you can run the example scripts!

To run the cloud/top_movies.py agent, use:

uv run cloud/top_movies.py

To run the cloud/top_amazon.py agent (which asks for a product and finds its Amazon rating and price), use:

uv run cloud/top_amazon.py

To run the cloud/gmail.py agent (which logs into Gmail with a persistent profile and fetches recent emails with their timestamps), use:

uv run cloud/gmail.py

To run the open-source/hacker_news_top5.py agent (which finds the top 5 stories on Hacker News using a local open-source setup), use:

uv run open-source/hacker_news_top5.py

(Alternatively, you can manually activate the environment with source .venv/bin/activate and run the scripts with python <script_name>.py)

About

trying out browser-use

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages