Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
通过这个快速入门指南开始使用 Browser Use
uv venv --python 3.11
# Mac/Linux: source .venv/bin/activate # Windows: .venv\Scripts\activate
uv pip install browser-use
playwright install
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="比较 gpt-4o 和 DeepSeek-V3 的价格", llm=llm, ) result = await agent.run() print(result) asyncio.run(main())
ChatOpenAI
.env
OPENAI_API_KEY= ANTHROPIC_API_KEY=
Was this page helpful?