Skip to content

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

add init to make things library

mertunsallf901a6931f8e
diff --git a/browser_use/agent/__init__.py b/browser_use/agent/__init__.py
new file mode 100644
index 000000000..294f8d115
--- /dev/null
+++ b/browser_use/agent/__init__.py
@@ -0,0 +1,4 @@
+"""Browser automation agent module."""
+
+# Main agent components are imported lazily via browser_use.__init__.py
+# This file just makes the directory a proper Python package
diff --git a/browser_use/agent/message_manager/__init__.py b/browser_use/agent/message_manager/__init__.py
new file mode 100644
index 000000000..31056ea56
--- /dev/null
+++ b/browser_use/agent/message_manager/__init__.py
@@ -0,0 +1,3 @@
+"""Message manager for browser automation agent."""
+
+# Message manager components
diff --git a/browser_use/controller/registry/__init__.py b/browser_use/controller/registry/__init__.py
new file mode 100644
index 000000000..d7bc0ca68
--- /dev/null
+++ b/browser_use/controller/registry/__init__.py
@@ -0,0 +1 @@
+"""Action registry for browser automation controller."""
diff --git a/browser_use/dom/clickable_element_processor/__init__.py b/browser_use/dom/clickable_element_processor/__init__.py
new file mode 100644
index 000000000..36758da78
--- /dev/null
+++ b/browser_use/dom/clickable_element_processor/__init__.py
@@ -0,0 +1 @@
+"""Clickable element processor for DOM manipulation."""
diff --git a/browser_use/dom/history_tree_processor/__init__.py b/browser_use/dom/history_tree_processor/__init__.py
new file mode 100644
index 000000000..63d6f0752
--- /dev/null
+++ b/browser_use/dom/history_tree_processor/__init__.py
@@ -0,0 +1,3 @@
+"""History tree processor for DOM manipulation."""
+
+# History tree processor components
diff --git a/browser_use/llm/anthropic/__init__.py b/browser_use/llm/anthropic/__init__.py
new file mode 100644
index 000000000..d3d680c40
--- /dev/null
+++ b/browser_use/llm/anthropic/__init__.py
@@ -0,0 +1,5 @@
+"""Anthropic LLM integration for browser-use."""
+
+from browser_use.llm.anthropic.chat import ChatAnthropic
+
+__all__ = ['ChatAnthropic']
diff --git a/browser_use/llm/azure/__init__.py b/browser_use/llm/azure/__init__.py
new file mode 100644
index 000000000..91bcb8e01
--- /dev/null
+++ b/browser_use/llm/azure/__init__.py
@@ -0,0 +1,5 @@
+"""Azure OpenAI LLM integration for browser-use."""
+
+from browser_use.llm.azure.chat import ChatAzureOpenAI
+
+__all__ = ['ChatAzureOpenAI']
diff --git a/browser_use/llm/deepseek/__init__.py b/browser_use/llm/deepseek/__init__.py
new file mode 100644
index 000000000..cb61b710a
--- /dev/null
+++ b/browser_use/llm/deepseek/__init__.py
@@ -0,0 +1,5 @@
+"""DeepSeek LLM integration for browser-use."""
+
+from browser_use.llm.deepseek.chat import ChatDeepSeek
+
+__all__ = ['ChatDeepSeek']
diff --git a/browser_use/llm/groq/__init__.py b/browser_use/llm/groq/__init__.py
new file mode 100644
index 000000000..7ac86b72a
--- /dev/null
+++ b/browser_use/llm/groq/__init__.py
@@ -0,0 +1,5 @@
+"""Groq LLM integration for browser-use."""
+
+from browser_use.llm.groq.chat import ChatGroq
+
+__all__ = ['ChatGroq']
diff --git a/browser_use/llm/ollama/__init__.py b/browser_use/llm/ollama/__init__.py
new file mode 100644
index 000000000..3ff9cbe59
--- /dev/null
+++ b/browser_use/llm/ollama/__init__.py
@@ -0,0 +1,5 @@
+"""Ollama LLM integration for browser-use."""
+
+from browser_use.llm.ollama.chat import ChatOllama
+
+__all__ = ['ChatOllama']
diff --git a/browser_use/llm/openai/__init__.py b/browser_use/llm/openai/__init__.py
new file mode 100644
index 000000000..df5c72585
--- /dev/null
+++ b/browser_use/llm/openai/__init__.py
@@ -0,0 +1,5 @@
+"""OpenAI LLM integration for browser-use."""
+
+from browser_use.llm.openai.chat import ChatOpenAI
+
+__all__ = ['ChatOpenAI']
diff --git a/browser_use/llm/openrouter/__init__.py b/browser_use/llm/openrouter/__init__.py
new file mode 100644
index 000000000..717b75925
--- /dev/null
+++ b/browser_use/llm/openrouter/__init__.py
@@ -0,0 +1,5 @@
+"""OpenRouter LLM integration for browser-use."""
+
+from browser_use.llm.openrouter.chat import ChatOpenRouter
+
+__all__ = ['ChatOpenRouter']