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
Gemini example
Magnus Müller971b11a6bfca
diff --git a/examples/models/gemini.py b/examples/models/gemini.pyindex b43486060..21f1d58aa 100644--- a/examples/models/gemini.py+++ b/examples/models/gemini.py@@ -14,16 +14,16 @@ api_key = os.getenv('GOOGLE_API_KEY')if not api_key:raise ValueError('GOOGLE_API_KEY is not set')-llm = ChatGoogle(model='gemini-2.0', api_key=api_key, thinking_budget=-1)+llm = ChatGoogle(model='gemini-2.5-flash', api_key=api_key, thinking_budget=-1)async def run_search():agent = Agent(- task='Go to google.com/travel/flights and find the cheapest flight from New York to Paris on 2025-07-15',+ task='How many stars does the browser-use repo have?',llm=llm,)- await agent.run(max_steps=25)+ await agent.run()if __name__ == '__main__':