--- title: "Human Quickstart" description: "" icon: "rocket" --- ## 1. Fast setup ```bash create environment uv venv --python 3.12 ``` ```bash create environment with python >= 3.11 python3.12 -m venv .venv ``` ```bash activate environment source .venv/bin/activate ``` ```bash activate environment .venv\Scripts\activate ``` ```bash install browser-use & chromium uv pip install browser-use uvx playwright install chromium --with-deps ``` ```bash install browser-use & chromium pip install browser-use pip install playwright && playwright install chromium --with-deps ``` ## 2. Choose your favorite LLM Create a `.env` file and add your API key. Don't have one? Start with a [free Gemini key](https://aistudio.google.com/app/u/1/apikey?pli=1). ```bash create .env file touch .env ``` ```cmd create .env file echo. > .env ``` ```bash add your key to .env file GEMINI_API_KEY= ``` ```bash add your key to .env file OPENAI_API_KEY= ``` ```bash add your key to .env file ANTHROPIC_API_KEY= ``` See [Supported Models](/customize/supported-models) for more. ## 3. Run your first agent ```python agent.py from browser_use import Agent, ChatGoogle from dotenv import load_dotenv import asyncio load_dotenv() async def main(): llm = ChatGoogle(model="gemini-2.5-flash") task = "Find the number 1 post on Show HN" agent = Agent(task=task, llm=llm) await agent.run() if __name__ == "__main__": asyncio.run(main()) ``` ```python agent.py from browser_use import Agent, ChatOpenAI from dotenv import load_dotenv import asyncio load_dotenv() async def main(): llm = ChatOpenAI(model="gpt-4.1-mini") task = "Find the number 1 post on Show HN" agent = Agent(task=task, llm=llm) await agent.run() if __name__ == "__main__": asyncio.run(main()) ``` ```python agent.py from browser_use import Agent, ChatAnthropic from dotenv import load_dotenv import asyncio load_dotenv() async def main(): llm = ChatAnthropic(model='claude-sonnet-4-0', temperature=0.0) task = "Find the number 1 post on Show HN" agent = Agent(task=task, llm=llm) await agent.run() if __name__ == "__main__": asyncio.run(main()) ```