Guide to using different chat models with Browser Use
from langchain_openai import ChatOpenAI
with from browser_use.llm import ChatOpenAI
etc. The methods should be compatible(ish).
We also made and example here to help you stay with Langchain in case your workflow requires it.
gemini-2.0-flash-exp
(currently also the most popular model, costs ~$0.001 per step).
[!IMPORTANT]GEMINI_API_KEY
was the old environment var name, it should be calledGOOGLE_API_KEY
as of 2025-05.
AWS_ACCESS_KEY_ID
, AWS_SECRET_ACCESS_KEY
, AWS_DEFAULT_REGION
)aws_sso_auth=True
)