Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

Included windows setup

magmueller412825fbaa03
diff --git a/docs/quickstart.mdx b/docs/quickstart.mdx
index f31a47313..451bbcf63 100644
--- a/docs/quickstart.mdx
+++ b/docs/quickstart.mdx
@@ -19,7 +19,11 @@ uv venv --python 3.11
and activate it with:
```bash
+# For Mac/Linux:
source .venv/bin/activate
+
+# For Windows:
+.venv\Scripts\activate
```
Install the dependencies:
@@ -41,13 +45,16 @@ Then you can use the agent as follows:
```python agent.py
from langchain_openai import ChatOpenAI
from browser_use import Agent
+from dotenv import load_dotenv
+load_dotenv()
+
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.",
+ task="Compare the price of gpt-4o and DeepSeek-V3",
llm=llm,
)
result = await agent.run()
@@ -56,9 +63,10 @@ async def main():
asyncio.run(main())
```
-### Set up your LLM API keys
+## Set up your LLM API keys
+
+`ChatOpenAI` and other Langchain chat models require API keys. You should store these in your `.env` file. For example, for OpenAI and Anthropic, you can set the API keys in your `.env` file, such as:
-`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=