Skip to content

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

change GOOGLE_API_KEY to GEMINI_API_KEY. If using GOOGLE_API_KEY, this error will return: ValueError: LLM API Key environment variables not set up for ChatGoogleGenerativeAI, missing: ['GEMINI_API_KEY']

EnzoFanAccountc415cdd25bf9
diff --git a/docs/customize/supported-models.mdx b/docs/customize/supported-models.mdx
index 73c561f2d..f2b429581 100644
--- a/docs/customize/supported-models.mdx
+++ b/docs/customize/supported-models.mdx
@@ -115,7 +115,7 @@ from langchain_google_genai import ChatGoogleGenerativeAI
from browser_use import Agent
from dotenv import load_dotenv
-# Read GOOGLE_API_KEY into env
+# Read GEMINI_API_KEY into env
load_dotenv()
# Initialize the model
@@ -131,7 +131,7 @@ agent = Agent(
Required environment variables:
```bash .env
-GOOGLE_API_KEY=
+GEMINI_API_KEY=
```