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
remove lmnr from examples
Magnus Müllerdc1eb696b3f3
diff --git a/browser_use/llm/tests/test_gemini_image.py b/browser_use/llm/tests/test_gemini_image.pyindex f8cfbd630..75c3e6e73 100644--- a/browser_use/llm/tests/test_gemini_image.py+++ b/browser_use/llm/tests/test_gemini_image.py@@ -3,7 +3,6 @@ import base64import ioimport random-from lmnr import Laminarfrom PIL import Image, ImageDraw, ImageFontfrom browser_use.llm.google.chat import ChatGoogle@@ -17,8 +16,6 @@ from browser_use.llm.messages import (UserMessage,)-Laminar.initialize()-def create_random_text_image(text: str = 'hello world', width: int = 4000, height: int = 4000) -> str:# Create image with random background colordiff --git a/docs/development/monitoring/observability.mdx b/docs/development/monitoring/observability.mdxindex edffde2c3..8c962ae3b 100644--- a/docs/development/monitoring/observability.mdx+++ b/docs/development/monitoring/observability.mdx@@ -31,7 +31,7 @@ import asynciofrom lmnr import Laminar, Instruments# this line auto-instruments Browser Use and any browser you use (local or remote)-Laminar.initialize(project_api_key="...")+Laminar.initialize(project_api_key="...", disabled_instruments={Instruments.BROWSER_USE})async def main():agent = Agent(diff --git a/examples/custom-functions/cua.py b/examples/custom-functions/cua.pyindex 5b07d9bdc..a64635892 100644--- a/examples/custom-functions/cua.py+++ b/examples/custom-functions/cua.py@@ -28,13 +28,6 @@ from browser_use import Agent, ChatOpenAI, Toolsfrom browser_use.agent.views import ActionResultfrom browser_use.browser import BrowserSession-try:- from lmnr import Laminar-- Laminar.initialize(project_api_key=os.getenv('LMNR_PROJECT_API_KEY'))-except ImportError:- pass-class OpenAICUAAction(BaseModel):"""Parameters for OpenAI Computer Use Assistant action."""diff --git a/examples/models/aws.py b/examples/models/aws.pyindex e1fe3ea0f..597c0f26f 100644--- a/examples/models/aws.py+++ b/examples/models/aws.py@@ -14,13 +14,9 @@ Requirements:import asyncio-from lmnr import Laminar-from browser_use import Agentfrom browser_use.llm import ChatAnthropicBedrock, ChatAWSBedrock-Laminar.initialize()-async def example_anthropic_bedrock():"""Example using ChatAnthropicBedrock - convenience class for Claude models."""diff --git a/examples/models/claude-4-sonnet.py b/examples/models/claude-4-sonnet.pyindex 33c5d5b62..71b12a2ed 100644--- a/examples/models/claude-4-sonnet.py+++ b/examples/models/claude-4-sonnet.py@@ -10,10 +10,8 @@ import syssys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))from dotenv import load_dotenv-from lmnr import Laminarload_dotenv()-Laminar.initialize()from browser_use import Agentfrom browser_use.llm import ChatAnthropicdiff --git a/examples/models/gemini.py b/examples/models/gemini.pyindex 3c9c34ccf..c34d09d19 100644--- a/examples/models/gemini.py+++ b/examples/models/gemini.py@@ -5,14 +5,10 @@ import syssys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))from dotenv import load_dotenv-from lmnr import Laminar--load_dotenv()-from browser_use import Agent, ChatGoogle-Laminar.initialize()+load_dotenv()api_key = os.getenv('GOOGLE_API_KEY')if not api_key:diff --git a/examples/models/gpt-4.1.py b/examples/models/gpt-4.1.pyindex 0fb3c3b61..97f1ffa66 100644--- a/examples/models/gpt-4.1.py+++ b/examples/models/gpt-4.1.py@@ -7,15 +7,11 @@ Simple try of the agent.import asynciofrom dotenv import load_dotenv-from lmnr import Laminarfrom browser_use import Agent, ChatOpenAIload_dotenv()--Laminar.initialize()-# All the models are type safe from OpenAI in case you need a list of supported modelsllm = ChatOpenAI(model='gpt-4.1-mini')agent = Agent(diff --git a/examples/models/gpt-5-mini.py b/examples/models/gpt-5-mini.pyindex 079f03442..b18a3d580 100644--- a/examples/models/gpt-5-mini.py+++ b/examples/models/gpt-5-mini.py@@ -7,15 +7,11 @@ Simple try of the agent.import asynciofrom dotenv import load_dotenv-from lmnr import Laminarfrom browser_use import Agent, ChatOpenAIload_dotenv()--Laminar.initialize()-# All the models are type safe from OpenAI in case you need a list of supported modelsllm = ChatOpenAI(model='gpt-5-mini')agent = Agent(diff --git a/examples/models/langchain/example.py b/examples/models/langchain/example.pyindex 9d308f296..dbb089429 100644--- a/examples/models/langchain/example.py+++ b/examples/models/langchain/example.py@@ -12,13 +12,10 @@ This example demonstrates how to:import asynciofrom langchain_openai import ChatOpenAI # pyright: ignore-from lmnr import Laminarfrom browser_use import Agentfrom examples.models.langchain.chat import ChatLangchain-Laminar.initialize()-async def main():"""Basic example using ChatLangchain with OpenAI through LangChain."""diff --git a/examples/models/llama4-groq.py b/examples/models/llama4-groq.pyindex ac6c9bf7e..4d0011d1f 100644--- a/examples/models/llama4-groq.py+++ b/examples/models/llama4-groq.py@@ -5,14 +5,10 @@ import syssys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))from dotenv import load_dotenv-from lmnr import Laminarload_dotenv()-Laminar.initialize()--from browser_use import Agentfrom browser_use.llm import ChatGroqdiff --git a/examples/models/openrouter.py b/examples/models/openrouter.pyindex 0c4e6a828..e60139b04 100644--- a/examples/models/openrouter.py+++ b/examples/models/openrouter.py@@ -8,15 +8,11 @@ import asyncioimport osfrom dotenv import load_dotenv-from lmnr import Laminarfrom browser_use import Agent, ChatOpenAIload_dotenv()--Laminar.initialize()-# All the models are type safe from OpenAI in case you need a list of supported modelsllm = ChatOpenAI(model='x-ai/grok-4',diff --git a/pyproject.toml b/pyproject.tomlindex a31d08cef..c727fcbf0 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -72,7 +72,7 @@ examples = ["langchain-openai>=0.3.26",]eval = [- "lmnr[all]==0.7.6",+ "lmnr[all]==0.7.10","anyio>=4.9.0","psutil>=7.0.0","datamodel-code-generator>=0.26.0",@@ -196,7 +196,7 @@ dev-dependencies = ["pyright>=1.1.403","ty>=0.0.1a1","pytest-xdist>=3.7.0",- "lmnr[all]==0.7.6",+ "lmnr[all]==0.7.10",# "pytest-playwright-asyncio>=0.7.0", # not actually needed I think"pytest-timeout>=2.4.0","pydantic_settings>=2.10.1"