Skip to content

Update BrowserUseAgent to browser-use 0.13.8 - #2489

Open
MagMueller wants to merge 1 commit into
opea-project:mainfrom
MagMueller:update-browser-use-0.13.8
Open

Update BrowserUseAgent to browser-use 0.13.8#2489
MagMueller wants to merge 1 commit into
opea-project:mainfrom
MagMueller:update-browser-use-0.13.8

Conversation

@MagMueller

Copy link
Copy Markdown

Summary

  • migrate BrowserUseAgent from browser-use 0.3.2 to 0.13.8
  • use the native Browser Use ChatOpenAI adapter and remove the retired enable_memory option
  • pin PostHog 7.7.0 for dependency compatibility while keeping the service API unchanged

Verification

  • fresh Python 3.11 install of BrowserUseAgent/requirements.txt plus posthog 7.7.0
  • pip dependency check
  • Python compilation
  • Browser Use Agent construction with ChatOpenAI, headless=true, and chromium_sandbox=false
  • git diff --check

@MagMueller
MagMueller requested a review from joshuayao as a code owner August 28, 2026 09:35
Copilot AI lite review requested due to automatic review settings August 28, 2026 09:35
@github-actions

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues found.

Scanned Files

  • BrowserUseAgent/requirements.txt

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the BrowserUseAgent example to work with browser-use==0.13.8, switching to Browser Use’s native ChatOpenAI adapter and aligning container dependencies for compatibility.

Changes:

  • Bump browser-use dependency from 0.3.2 to 0.13.8.
  • Update the agent to import/use browser_use.llm.ChatOpenAI and remove the retired enable_memory option.
  • Pin posthog==7.7.0 in the Docker image build for dependency compatibility.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
BrowserUseAgent/requirements.txt Updates browser-use version pin to 0.13.8.
BrowserUseAgent/Dockerfile Updates container install to pin posthog==7.7.0.
BrowserUseAgent/browser_use_agent.py Migrates LLM adapter import/initialization and removes deprecated agent option.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines 20 to +24
def initiate_llm_and_browser(llm_endpoint: str, model: str, secret_key: str = "sk-xxxxxx"):
# Initialize global LLM and BrowserProfile if not already initialized
global LLM, BROWSER_PROFILE
if not LLM:
LLM = ChatOpenAI(base_url=f"{llm_endpoint}/v1", model=model, api_key=SecretStr(secret_key), temperature=0.1)
LLM = ChatOpenAI(base_url=f"{llm_endpoint}/v1", model=model, api_key=secret_key, temperature=0.1)
Comment on lines 14 to +18
RUN uv pip install --system --upgrade pip setuptools uv && \
$uvpip pytest-playwright && \
playwright install chromium --with-deps --no-shell && \
$uvpip -r requirements.txt && \
$uvpip posthog==5.4.0
$uvpip posthog==7.7.0
Signed-off-by: MagMueller <mamagnus00@gmail.com>
@MagMueller
MagMueller force-pushed the update-browser-use-0.13.8 branch from d23243d to 2156e76 Compare August 28, 2026 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants