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 3
Magnus Müller45532c454ea7
diff --git a/examples/models/gemini-3.py b/examples/models/gemini-3.pynew file mode 100644index 000000000..dfc1a06a7--- /dev/null+++ b/examples/models/gemini-3.py@@ -0,0 +1,31 @@+import asyncio+import os+import sys++sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))++from dotenv import load_dotenv++from browser_use import Agent, ChatGoogle++load_dotenv()++api_key = os.getenv('GOOGLE_API_KEY')+if not api_key:+ raise ValueError('GOOGLE_API_KEY is not set')+++async def run_search():+ llm = ChatGoogle(model='gemini-3-pro-preview', api_key=api_key)++ agent = Agent(+ llm=llm,+ task='How many stars does the browser-use repo have?',+ flash_mode=True,+ )++ await agent.run()+++if __name__ == '__main__':+ asyncio.run(run_search())