Skip to content

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

Include exmaple

Magnus Müllera51bc0ab5460
diff --git a/examples/features/rerun_history.py b/examples/features/rerun_history.py
index 0cd8a9f8f..81f170f1f 100644
--- a/examples/features/rerun_history.py
+++ b/examples/features/rerun_history.py
@@ -28,11 +28,11 @@ async def main():
task = 'Go to GitHub and find the browser-use repository'
llm = ChatOpenAI(model='gpt-4.1-mini')
- # agent = Agent(task=task, llm=llm)
+ agent = Agent(task=task, llm=llm)
- # await agent.run(max_steps=5)
+ await agent.run(max_steps=5)
- # agent.save_history(history_file)
+ agent.save_history(history_file)
rerun_agent = Agent(task='', llm=llm)