task: The task you want to automate.llm: Your favorite LLM. See Supported Models.
run() method:
max_steps(default:100): Maximum number of steps an agent can take.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Configure the agent — set your LLM, define tasks, add custom tools, and control behavior with Python.
from browser_use import Agent, ChatBrowserUse
agent = Agent(
task="Search for latest news about AI",
llm=ChatBrowserUse(),
)
async def main():
history = await agent.run(max_steps=100)
task: The task you want to automate.llm: Your favorite LLM. See Supported Models.run() method:
max_steps (default: 100): Maximum number of steps an agent can take.Was this page helpful?