Files
browser-use/examples/simple.py
2025-10-09 17:33:38 +00:00

19 lines
438 B
Python

"""
Setup:
1. Get your API key from https://cloud.browser-use.com/dashboard/api
2. Set environment variable: export BROWSER_USE_API_KEY="your-key"
"""
from dotenv import load_dotenv
from browser_use import Agent
from browser_use.llm import ChatBrowserUse
load_dotenv()
agent = Agent(
task='Find the number of stars of the following repos: browser-use, playwright, stagehand, react, nextjs',
llm=ChatBrowserUse(),
)
agent.run_sync()