Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
add gpt5 example
mertunsall08402fdde628
diff --git a/examples/models/gpt-5-mini.py b/examples/models/gpt-5-mini.pynew file mode 100644index 000000000..dd03cf715--- /dev/null+++ b/examples/models/gpt-5-mini.py@@ -0,0 +1,33 @@+"""+Simple try of the agent.++@dev You need to add OPENAI_API_KEY to your environment variables.+"""++import asyncio++from dotenv import load_dotenv+from lmnr import Laminar++from browser_use import Agent+from browser_use.llm import ChatOpenAI++load_dotenv()+++Laminar.initialize()++# All the models are type safe from OpenAI in case you need a list of supported models+llm = ChatOpenAI(model='gpt-5-mini')+agent = Agent(+ task='Find out which one is cooler: the monkey park or a dolphin tour in Tenerife?',+ llm=llm,+)+++async def main():+ await agent.run(max_steps=20)+ input('Press Enter to continue...')+++asyncio.run(main())