Skip to content

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

bump cli default models to gpt-5-mini

Nick Sweetingfcc38f6f44b4
diff --git a/browser_use/cli.py b/browser_use/cli.py
index 1328f71aa..053ba7d6f 100644
--- a/browser_use/cli.py
+++ b/browser_use/cli.py
@@ -219,11 +219,11 @@ def get_llm(config: dict[str, Any]):
# Auto-detect based on available API keys
if api_key or CONFIG.OPENAI_API_KEY:
- return ChatOpenAI(model='gpt-4o', temperature=temperature, api_key=api_key or CONFIG.OPENAI_API_KEY)
+ return ChatOpenAI(model='gpt-5-mini', temperature=temperature, api_key=api_key or CONFIG.OPENAI_API_KEY)
elif CONFIG.ANTHROPIC_API_KEY:
- return ChatAnthropic(model='claude-3-5-sonnet-20241022', temperature=temperature)
+ return ChatAnthropic(model='claude-4-sonnet', temperature=temperature)
elif CONFIG.GOOGLE_API_KEY:
- return ChatGoogle(model='gemini-2.0-flash-exp', temperature=temperature)
+ return ChatGoogle(model='gemini-2.5-pro', temperature=temperature)
else:
print(
'⚠️ No API keys found. Please update your config or set one of: OPENAI_API_KEY, ANTHROPIC_API_KEY, or GOOGLE_API_KEY.'
@@ -1563,7 +1563,7 @@ async def textual_interface(config: dict[str, Any]):
@click.command()
@click.option('--version', is_flag=True, help='Print version and exit')
[email protected]('--model', type=str, help='Model to use (e.g., gpt-4o, claude-3-opus-20240229, gemini-pro)')
[email protected]('--model', type=str, help='Model to use (e.g., gpt-5-mini, claude-4-sonnet, gemini-2.5-flash)')
@click.option('--debug', is_flag=True, help='Enable verbose startup logging')
@click.option('--headless', is_flag=True, help='Run browser in headless mode', default=None)
@click.option('--window-width', type=int, help='Browser window width')