Sign inSign up

smanx/browser-use-web-ui

By smanx

Updated about 1 hour ago

Browser-Use: A Web-UI Based Browser Tool Running on Docker

Image
0

10K+

smanx/browser-use-web-ui repository overview

Browser Use Web UI

GitHub Repo stars

Browser Use Web UI is a Docker-based project that provides browser automation capabilities with tools like Playwright. The project can be accessed remotely via VNC and supports integration with various large language model APIs.

Original Project Address

Installation Steps

Using docker run

You can start the container using the following command:

docker run -d \
  --name=browser-use-web-ui \
  -p "7788:7788" \
  -p "6080:6080" \
  -p "5901:5901" \
  -p "9222:9222" \
  -e "OPENAI_ENDPOINT=${OPENAI_ENDPOINT:-https://api.openai.com/v1}" \
  -e "OPENAI_API_KEY=${OPENAI_API_KEY:-}" \
  -e "ANTHROPIC_ENDPOINT=${ANTHROPIC_ENDPOINT:-https://api.anthropic.com}" \
  -e "ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}" \
  -e "GOOGLE_API_KEY=${GOOGLE_API_KEY:-}" \
  -e "AZURE_OPENAI_ENDPOINT=${AZURE_OPENAI_ENDPOINT:-}" \
  -e "AZURE_OPENAI_API_KEY=${AZURE_OPENAI_API_KEY:-}" \
  -e "AZURE_OPENAI_API_VERSION=${AZURE_OPENAI_API_VERSION:-2025-01-01-preview}" \
  -e "DEEPSEEK_ENDPOINT=${DEEPSEEK_ENDPOINT:-https://api.deepseek.com}" \
  -e "DEEPSEEK_API_KEY=${DEEPSEEK_API_KEY:-}" \
  -e "OLLAMA_ENDPOINT=${OLLAMA_ENDPOINT:-http://localhost:11434}" \
  -e "MISTRAL_ENDPOINT=${MISTRAL_ENDPOINT:-https://api.mistral.ai/v1}" \
  -e "MISTRAL_API_KEY=${MISTRAL_API_KEY:-}" \
  -e "ALIBABA_ENDPOINT=${ALIBABA_ENDPOINT:-https://dashscope.aliyuncs.com/compatible-mode/v1}" \
  -e "ALIBABA_API_KEY=${ALIBABA_API_KEY:-}" \
  -e "MOONSHOT_ENDPOINT=${MOONSHOT_ENDPOINT:-https://api.moonshot.cn/v1}" \
  -e "MOONSHOT_API_KEY=${MOONSHOT_API_KEY:-}" \
  -e "UNBOUND_ENDPOINT=${UNBOUND_ENDPOINT:-https://api.getunbound.ai}" \
  -e "UNBOUND_API_KEY=${UNBOUND_API_KEY:-}" \
  -e "SiliconFLOW_ENDPOINT=${SiliconFLOW_ENDPOINT:-https://api.siliconflow.cn/v1/}" \
  -e "SiliconFLOW_API_KEY=${SiliconFLOW_API_KEY:-}" \
  -e "IBM_ENDPOINT=${IBM_ENDPOINT:-https://us-south.ml.cloud.ibm.com}" \
  -e "IBM_API_KEY=${IBM_API_KEY:-}" \
  -e "IBM_PROJECT_ID=${IBM_PROJECT_ID:-}" \
  -e "ANONYMIZED_TELEMETRY=${ANONYMIZED_TELEMETRY:-false}" \
  -e "BROWSER_USE_LOGGING_LEVEL=${BROWSER_USE_LOGGING_LEVEL:-info}" \
  -e "BROWSER_PATH=" \
  -e "BROWSER_USER_DATA=" \
  -e "BROWSER_DEBUGGING_PORT=${BROWSER_DEBUGGING_PORT:-9222}" \
  -e "BROWSER_DEBUGGING_HOST=localhost" \
  -e "USE_OWN_BROWSER=false" \
  -e "KEEP_BROWSER_OPEN=true" \
  -e "BROWSER_CDP=${BROWSER_CDP:-}" \
  -e "DISPLAY=:99" \
  -e "PLAYWRIGHT_BROWSERS_PATH=/ms-browsers" \
  -e "RESOLUTION=${RESOLUTION:-1920x1080x24}" \
  -e "RESOLUTION_WIDTH=${RESOLUTION_WIDTH:-1920}" \
  -e "RESOLUTION_HEIGHT=${RESOLUTION_HEIGHT:-1080}" \
  -e "VNC_PASSWORD=${VNC_PASSWORD:-youvncpassword}" \
  -v "/tmp/.X11-unix:/tmp/.X11-unix" \
  --restart unless-stopped \
  --shm-size="2gb" \
  --cap-add=SYS_ADMIN \
  --tmpfs /tmp \
  smanx/browser-use-web-ui

Using docker compose

To start the container using docker compose, use the following command:

services:
  ``debug: docker compose run --rm -it browser-use-webui bash
  browser-use-webui:services:
    imagewssmanx/browser-use-web-ui
    ports:
      - "7788:7788"
      - "6080:6080"
      - "5901:5901"
      - "9222:9222"
    environment:
      # LLM API Keys & Endpoints
      - OPENAI_ENDPOINT=${OPENAI_ENDPOINT:-https://api.openai.com/v1}
      - OPENAI_API_KEY=${OPENAI_API_KEY:-}
      - ANTHROPIC_ENDPOINT=${ANTHROPIC_ENDPOINT:-https://api.anthropic.com}
      - ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
      - GOOGLE_API_KEY=${GOOGLE_API_KEY:-}
      - AZURE_OPENAI_ENDPOINT=${AZURE_OPENAI_ENDPOINT:-}
      - AZURE_OPENAI_API_KEY=${AZURE_OPENAI_API_KEY:-}
      - AZURE_OPENAI_API_VERSION=${AZURE_OPENAI_API_VERSION:-2025-01-01-preview}
      - DEEPSEEK_ENDPOINT=${DEEPSEEK_ENDPOINT:-https://api.deepseek.com}
      - DEEPSEEK_API_KEY=${DEEPSEEK_API_KEY:-}
      - OLLAMA_ENDPOINT=${OLLAMA_ENDPOINT:-http://localhost:11434}
      - MISTRAL_ENDPOINT=${MISTRAL_ENDPOINT:-https://api.mistral.ai/v1}
      - MISTRAL_API_KEY=${MISTRAL_API_KEY:-}
      - ALIBABA_ENDPOINT=${ALIBABA_ENDPOINT:-https://dashscope.aliyuncs.com/compatible-mode/v1}
      - ALIBABA_API_KEY=${ALIBABA_API_KEY:-}
      - MOONSHOT_ENDPOINT=${MOONSHOT_ENDPOINT:-https://api.moonshot.cn/v1}
      - MOONSHOT_API_KEY=${MOONSHOT_API_KEY:-}
      - UNBOUND_ENDPOINT=${UNBOUND_ENDPOINT:-https://api.getunbound.ai}
      - UNBOUND_API_KEY=${UNBOUND_API_KEY:-}
      - SiliconFLOW_ENDPOINT=${SiliconFLOW_ENDPOINT:-https://api.siliconflow.cn/v1/}
      - SiliconFLOW_API_KEY=${SiliconFLOW_API_KEY:-}
      - IBM_ENDPOINT=${IBM_ENDPOINT:-https://us-south.ml.cloud.ibm.com}
      - IBM_API_KEY=${IBM_API_KEY:-}
      - IBM_PROJECT_ID=${IBM_PROJECT_ID:-}

      # Application Settings
      - ANONYMIZED_TELEMETRY=${ANONYMIZED_TELEMETRY:-false}
      - BROWSER_USE_LOGGING_LEVEL=${BROWSER_USE_LOGGING_LEVEL:-info}

      # Browser Settings
      - BROWSER_PATH=
      - BROWSER_USER_DATA=
      - BROWSER_DEBUGGING_PORT=${BROWSER_DEBUGGING_PORT:-9222}
      - BROWSER_DEBUGGING_HOST=localhost
      - USE_OWN_BROWSER=false
      - KEEP_BROWSER_OPEN=true
      - BROWSER_CDP=${BROWSER_CDP:-} # e.g., http://localhost:9222

      # Display Settings
      - DISPLAY=:99
      # This ENV is used by the Dockerfile during build time if playwright respects it.
      # It's not strictly needed at runtime by docker-compose unless your app or scripts also read it.
      - PLAYWRIGHT_BROWSERS_PATH=/ms-browsers # Matches Dockerfile ENV
      - RESOLUTION=${RESOLUTION:-1920x1080x24}
      - RESOLUTION_WIDTH=${RESOLUTION_WIDTH:-1920}
      - RESOLUTION_HEIGHT=${RESOLUTION_HEIGHT:-1080}

      # VNC Settings
      - VNC_PASSWORD=${VNC_PASSWORD:-youvncpassword}

    volumes:
      - /tmp/.X11-unix:/tmp/.X11-unix
      # - ./my_chrome_data:/app/data/chrome_data # Optional: persist browser data
    restart: unless-stopped
    shm_size: '2gb'
    cap_add:
      - SYS_ADMIN
    tmpfs:
      - /tmp
    healthcheck:
      test: ["CMD", "nc", "-z", "localhost", "5901"] # VNC port
      interval: 10s
      timeout: 5s
      retries: 3
docker compose up -d

Port Explanation

  • 7788: Web UI access port.
  • 6080: VNC Web client access port.
  • 5901: VNC service port, can be directly connected through the VNC client.
  • 9222: Browser debugging port.

VNC Password

The default VNC password is youvncpassword. You can modify the password by setting the VNC_PASSWORD environment variable.

LLM API Configuration

This project supports various large language model APIs. You can configure the API key and endpoint by setting the corresponding environment variables.

  • OpenAI:
    • Set the OPENAI_API_KEY environment variable. You can obtain the API key from the OpenAI official website.
    • Optionally, set the OPENAI_ENDPOINT environment variable. The default is https://api.openai.com/v1.
  • Anthropic:
    • Set the ANTHROPIC_API_KEY environment variable. You need to apply for an API key from Anthropic.
    • Optionally, set the ANTHROPIC_ENDPOINT environment variable. The default is https://api.anthropic.com.
  • Google:
    • Set the GOOGLE_API_KEY environment variable. You need to create an API key on the Google Cloud Platform.
  • Azure OpenAI:
    • Set the AZURE_OPENAI_ENDPOINT environment variable. For example: https://your-azure-openai-resource.openai.azure.com.
    • Set the AZURE_OPENAI_API_KEY environment variable.
    • Optionally, set the AZURE_OPENAI_API_VERSION environment variable. The default is 2025-01-01-preview.
  • DeepSeek:
    • Set the DEEPSEEK_API_KEY environment variable. You need to apply for an API key from DeepSeek.
    • Optionally, set the DEEPSEEK_ENDPOINT environment variable. The default is https://api.deepseek.com.
  • Ollama:
    • Set the optional OLLAMA_ENDPOINT environment variable. The default is http://localhost:11434. You need to install and run Ollama first.
  • Mistral:
    • Set the MISTRAL_API_KEY environment variable. You need to apply for an API key from Mistral.
    • Optionally, set the MISTRAL_ENDPOINT environment variable. The default is https://api.mistral.ai/v1.
  • Alibaba (通义千问):
    • Set the ALIBABA_API_KEY environment variable. You need to obtain the API key from the Alibaba Cloud console.
    • Optionally, set the ALIBABA_ENDPOINT environment variable. The default is https://dashscope.aliyuncs.com/compatible-mode/v1.
  • Moonshot (月之暗面):
    • Set the MOONSHOT_API_KEY environment variable. You need to apply for an API key from Moonshot.
    • Optionally, set the MOONSHOT_ENDPOINT environment variable. The default is https://api.moonshot.cn/v1.
  • Unbound:
    • Set the UNBOUND_API_KEY environment variable. You need to apply for an API key from Unbound.
    • Optionally, set the UNBOUND_ENDPOINT environment variable. The default is https://api.getunbound.ai.
  • SiliconFLOW:
    • Set the SiliconFLOW_API_KEY environment variable. You need to apply for an API key from SiliconFLOW.
    • Optionally, set the SiliconFLOW_ENDPOINT environment variable. The default is https://api.siliconflow.cn/v1/.
  • IBM:
    • Set the IBM_API_KEY environment variable. You need to obtain the API key from IBM Cloud.
    • Set the IBM_PROJECT_ID environment variable.
    • Optionally, set the IBM_ENDPOINT environment variable. The default is https://us-south.ml.cloud.ibm.com.

Web UI Usage Instructions

The Web UI provides a graphical interface to configure and use browser automation features.

  1. Access the Web UI: In your browser, visit http://localhost:7788 (if using the default port).
  2. Configuration: In the Web UI, you can configure various parameters, such as LLM API keys, browser settings, etc.
  3. Usage: After configuration, you can use the various functions provided by the Web UI, such as automatically browsing web pages, executing JavaScript code, etc.

Browser Settings

You can configure browser-related behavior through the following environment variables:

  • BROWSER_PATH: Specifies the path to the browser executable. If left blank, the browser pre-installed in the container will be used.
  • BROWSER_USER_DATA: Specifies the path to the browser user data directory. If left blank, the default directory in the container will be used.
  • BROWSER_DEBUGGING_PORT: Specifies the browser debugging port. The default is 9222.
  • BROWSER_DEBUGGING_HOST: Specifies the browser debugging host. The default is localhost.
  • USE_OWN_BROWSER: If set to true, your own browser will be used.
  • KEEP_BROWSER_OPEN: If set to true, the browser will remain open after the task is completed.
  • BROWSER_CDP: Specifies the address of the Chrome DevTools Protocol (CDP).

Logging Level and Anonymous Telemetry

  • BROWSER_USE_LOGGING_LEVEL: Specifies the logging level. The default is info. Optional values include debug, info, warn, error.
  • ANONYMIZED_TELEMETRY: If set to true, anonymous telemetry will be enabled. The default is false.

Browser Use Web UI 中文文档

GitHub Repo stars

Browser Use Web UI 是一个基于 Docker 的项目,借助 Playwright 等工具,提供浏览器自动化相关功能。该项目可通过 VNC 远程访问,支持多种大语言模型 API 集成。

原项目地址

安装步骤

使用 docker run

你可以使用以下命令启动容器:

docker run -d \
  --name=browser-use-web-ui \
  -p "7788:7788" \
  -p "6080:6080" \
  -p "5901:5901" \
  -p "9222:9222" \
  -e "OPENAI_ENDPOINT=${OPENAI_ENDPOINT:-https://api.openai.com/v1}" \
  -e "OPENAI_API_KEY=${OPENAI_API_KEY:-}" \
  -e "ANTHROPIC_ENDPOINT=${ANTHROPIC_ENDPOINT:-https://api.anthropic.com}" \
  -e "ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}" \
  -e "GOOGLE_API_KEY=${GOOGLE_API_KEY:-}" \
  -e "AZURE_OPENAI_ENDPOINT=${AZURE_OPENAI_ENDPOINT:-}" \
  -e "AZURE_OPENAI_API_KEY=${AZURE_OPENAI_API_KEY:-}" \
  -e "AZURE_OPENAI_API_VERSION=${AZURE_OPENAI_API_VERSION:-2025-01-01-preview}" \
  -e "DEEPSEEK_ENDPOINT=${DEEPSEEK_ENDPOINT:-https://api.deepseek.com}" \
  -e "DEEPSEEK_API_KEY=${DEEPSEEK_API_KEY:-}" \
  -e "OLLAMA_ENDPOINT=${OLLAMA_ENDPOINT:-http://localhost:11434}" \
  -e "MISTRAL_ENDPOINT=${MISTRAL_ENDPOINT:-https://api.mistral.ai/v1}" \
  -e "MISTRAL_API_KEY=${MISTRAL_API_KEY:-}" \
  -e "ALIBABA_ENDPOINT=${ALIBABA_ENDPOINT:-https://dashscope.aliyuncs.com/compatible-mode/v1}" \
  -e "ALIBABA_API_KEY=${ALIBABA_API_KEY:-}" \
  -e "MOONSHOT_ENDPOINT=${MOONSHOT_ENDPOINT:-https://api.moonshot.cn/v1}" \
  -e "MOONSHOT_API_KEY=${MOONSHOT_API_KEY:-}" \
  -e "UNBOUND_ENDPOINT=${UNBOUND_ENDPOINT:-https://api.getunbound.ai}" \
  -e "UNBOUND_API_KEY=${UNBOUND_API_KEY:-}" \
  -e "SiliconFLOW_ENDPOINT=${SiliconFLOW_ENDPOINT:-https://api.siliconflow.cn/v1/}" \
  -e "SiliconFLOW_API_KEY=${SiliconFLOW_API_KEY:-}" \
  -e "IBM_ENDPOINT=${IBM_ENDPOINT:-https://us-south.ml.cloud.ibm.com}" \
  -e "IBM_API_KEY=${IBM_API_KEY:-}" \
  -e "IBM_PROJECT_ID=${IBM_PROJECT_ID:-}" \
  -e "ANONYMIZED_TELEMETRY=${ANONYMIZED_TELEMETRY:-false}" \
  -e "BROWSER_USE_LOGGING_LEVEL=${BROWSER_USE_LOGGING_LEVEL:-info}" \
  -e "BROWSER_PATH=" \
  -e "BROWSER_USER_DATA=" \
  -e "BROWSER_DEBUGGING_PORT=${BROWSER_DEBUGGING_PORT:-9222}" \
  -e "BROWSER_DEBUGGING_HOST=localhost" \
  -e "USE_OWN_BROWSER=false" \
  -e "KEEP_BROWSER_OPEN=true" \
  -e "BROWSER_CDP=${BROWSER_CDP:-}" \
  -e "DISPLAY=:99" \
  -e "PLAYWRIGHT_BROWSERS_PATH=/ms-browsers" \
  -e "RESOLUTION=${RESOLUTION:-1920x1080x24}" \
  -e "RESOLUTION_WIDTH=${RESOLUTION_WIDTH:-1920}" \
  -e "RESOLUTION_HEIGHT=${RESOLUTION_HEIGHT:-1080}" \
  -e "VNC_PASSWORD=${VNC_PASSWORD:-youvncpassword}" \
  -v "/tmp/.X11-unix:/tmp/.X11-unix" \
  --restart unless-stopped \
  --shm-size="2gb" \
  --cap-add=SYS_ADMIN \
  --tmpfs /tmp \
  smanx/browser-use-web-ui

使用 docker compose 启动容器
services:
  ``debug: docker compose run --rm -it browser-use-webui bash
  browser-use-webui:services:
    imagewssmanx/browser-use-web-ui
    ports:
      - "7788:7788"
      - "6080:6080"
      - "5901:5901"
      - "9222:9222"
    environment:
      # LLM API Keys & Endpoints
      - OPENAI_ENDPOINT=${OPENAI_ENDPOINT:-https://api.openai.com/v1}
      - OPENAI_API_KEY=${OPENAI_API_KEY:-}
      - ANTHROPIC_ENDPOINT=${ANTHROPIC_ENDPOINT:-https://api.anthropic.com}
      - ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
      - GOOGLE_API_KEY=${GOOGLE_API_KEY:-}
      - AZURE_OPENAI_ENDPOINT=${AZURE_OPENAI_ENDPOINT:-}
      - AZURE_OPENAI_API_KEY=${AZURE_OPENAI_API_KEY:-}
      - AZURE_OPENAI_API_VERSION=${AZURE_OPENAI_API_VERSION:-2025-01-01-preview}
      - DEEPSEEK_ENDPOINT=${DEEPSEEK_ENDPOINT:-https://api.deepseek.com}
      - DEEPSEEK_API_KEY=${DEEPSEEK_API_KEY:-}
      - OLLAMA_ENDPOINT=${OLLAMA_ENDPOINT:-http://localhost:11434}
      - MISTRAL_ENDPOINT=${MISTRAL_ENDPOINT:-https://api.mistral.ai/v1}
      - MISTRAL_API_KEY=${MISTRAL_API_KEY:-}
      - ALIBABA_ENDPOINT=${ALIBABA_ENDPOINT:-https://dashscope.aliyuncs.com/compatible-mode/v1}
      - ALIBABA_API_KEY=${ALIBABA_API_KEY:-}
      - MOONSHOT_ENDPOINT=${MOONSHOT_ENDPOINT:-https://api.moonshot.cn/v1}
      - MOONSHOT_API_KEY=${MOONSHOT_API_KEY:-}
      - UNBOUND_ENDPOINT=${UNBOUND_ENDPOINT:-https://api.getunbound.ai}
      - UNBOUND_API_KEY=${UNBOUND_API_KEY:-}
      - SiliconFLOW_ENDPOINT=${SiliconFLOW_ENDPOINT:-https://api.siliconflow.cn/v1/}
      - SiliconFLOW_API_KEY=${SiliconFLOW_API_KEY:-}
      - IBM_ENDPOINT=${IBM_ENDPOINT:-https://us-south.ml.cloud.ibm.com}
      - IBM_API_KEY=${IBM_API_KEY:-}
      - IBM_PROJECT_ID=${IBM_PROJECT_ID:-}

      # Application Settings
      - ANONYMIZED_TELEMETRY=${ANONYMIZED_TELEMETRY:-false}
      - BROWSER_USE_LOGGING_LEVEL=${BROWSER_USE_LOGGING_LEVEL:-info}

      # Browser Settings
      - BROWSER_PATH=
      - BROWSER_USER_DATA=
      - BROWSER_DEBUGGING_PORT=${BROWSER_DEBUGGING_PORT:-9222}
      - BROWSER_DEBUGGING_HOST=localhost
      - USE_OWN_BROWSER=false
      - KEEP_BROWSER_OPEN=true
      - BROWSER_CDP=${BROWSER_CDP:-} # e.g., http://localhost:9222

      # Display Settings
      - DISPLAY=:99
      # This ENV is used by the Dockerfile during build time if playwright respects it.
      # It's not strictly needed at runtime by docker-compose unless your app or scripts also read it.
      - PLAYWRIGHT_BROWSERS_PATH=/ms-browsers # Matches Dockerfile ENV
      - RESOLUTION=${RESOLUTION:-1920x1080x24}
      - RESOLUTION_WIDTH=${RESOLUTION_WIDTH:-1920}
      - RESOLUTION_HEIGHT=${RESOLUTION_HEIGHT:-1080}

      # VNC Settings
      - VNC_PASSWORD=${VNC_PASSWORD:-youvncpassword}

    volumes:
      - /tmp/.X11-unix:/tmp/.X11-unix
      # - ./my_chrome_data:/app/data/chrome_data # Optional: persist browser data
    restart: unless-stopped
    shm_size: '2gb'
    cap_add:
      - SYS_ADMIN
    tmpfs:
      - /tmp
    healthcheck:
      test: ["CMD", "nc", "-z", "localhost", "5901"] # VNC port
      interval: 10s
      timeout: 5s
      retries: 3
docker compose up -d

端口说明

  • 7788: Web UI 访问端口。
  • 6080: VNC Web 客户端访问端口。
  • 5901: VNC 服务端口,可通过 VNC 客户端直接连接。
  • 9222: 浏览器调试端口。

VNC 密码

默认的 VNC 密码是 youvncpassword。你可以通过设置 VNC_PASSWORD 环境变量来修改密码。

LLM API 配置

本项目支持多种大语言模型 API。你可以通过设置相应的环境变量来配置 API 密钥和端点。

  • OpenAI:
    • 设置 OPENAI_API_KEY 环境变量。你可以在 OpenAI 官网 获取 API 密钥。
    • 可选地,设置 OPENAI_ENDPOINT 环境变量。默认为 https://api.openai.com/v1
  • Anthropic:
    • 设置 ANTHROPIC_API_KEY 环境变量。你需要在 Anthropic 申请 API 密钥。
    • 可选地,设置 ANTHROPIC_ENDPOINT 环境变量。默认为 https://api.anthropic.com
  • Google:
    • 设置 GOOGLE_API_KEY 环境变量。你需要在 Google Cloud Platform 上创建 API 密钥。
  • Azure OpenAI:
    • 设置 AZURE_OPENAI_ENDPOINT 环境变量。例如:https://your-azure-openai-resource.openai.azure.com
    • 设置 AZURE_OPENAI_API_KEY 环境变量。
    • 可选地,设置 AZURE_OPENAI_API_VERSION 环境变量。默认为 2025-01-01-preview
  • DeepSeek:
    • 设置 DEEPSEEK_API_KEY 环境变量。你需要在 DeepSeek 申请 API 密钥。
    • 可选地,设置 DEEPSEEK_ENDPOINT 环境变量。默认为 https://api.deepseek.com
  • Ollama:
    • 设置可选的 OLLAMA_ENDPOINT 环境变量。默认为 http://localhost:11434。你需要先安装 Ollama 并运行。
  • Mistral:
    • 设置 MISTRAL_API_KEY 环境变量。你需要在 Mistral 申请 API 密钥。
    • 可选地,设置 MISTRAL_ENDPOINT 环境变量。默认为 https://api.mistral.ai/v1
  • Alibaba (通义千问):
    • 设置 ALIBABA_API_KEY 环境变量。你需要在阿里云控制台获取 API 密钥。
    • 可选地,设置 ALIBABA_ENDPOINT 环境变量。默认为 https://dashscope.aliyuncs.com/compatible-mode/v1
  • Moonshot (月之暗面):
    • 设置 MOONSHOT_API_KEY 环境变量。你需要在月之暗面申请 API 密钥。
    • 可选地,设置 MOONSHOT_ENDPOINT 环境变量。默认为 https://api.moonshot.cn/v1
  • Unbound:
    • 设置 UNBOUND_API_KEY 环境变量。你需要在 Unbound 申请 API 密钥。
    • 可选地,设置 UNBOUND_ENDPOINT 环境变量。默认为 https://api.getunbound.ai
  • SiliconFLOW:
    • 设置 SiliconFLOW_API_KEY 环境变量。你需要在 SiliconFLOW 申请 API 密钥。
    • 可选地,设置 SiliconFLOW_ENDPOINT 环境变量。默认为 https://api.siliconflow.cn/v1/
  • IBM:
    • 设置 IBM_API_KEY 环境变量。你需要在 IBM Cloud 获取 API 密钥。
    • 设置 IBM_PROJECT_ID 环境变量。
    • 可选地,设置 IBM_ENDPOINT 环境变量。默认为 https://us-south.ml.cloud.ibm.com

Web UI 使用说明

Web UI 提供了图形化界面来配置和使用浏览器自动化功能。

  1. 访问 Web UI: 在浏览器中访问 http://localhost:7788(如果使用默认端口)。
  2. 配置: 在 Web UI 中,你可以配置各种参数,例如 LLM API 密钥、浏览器设置等。
  3. 使用: 配置完成后,你可以使用 Web UI 提供的各种功能,例如自动浏览网页、执行 JavaScript 代码等。

浏览器设置

你可以通过以下环境变量来配置浏览器相关的行为:

  • BROWSER_PATH: 指定浏览器可执行文件的路径。如果留空,将使用容器中预装的浏览器。
  • BROWSER_USER_DATA: 指定浏览器用户数据目录的路径。如果留空,将使用容器中的默认目录。
  • BROWSER_DEBUGGING_PORT: 指定浏览器调试端口。默认为 9222。
  • BROWSER_DEBUGGING_HOST: 指定浏览器调试主机。默认为 localhost。
  • USE_OWN_BROWSER: 如果设置为 true,将使用你自己的浏览器。
  • KEEP_BROWSER_OPEN: 如果设置为 true,浏览器将在任务完成后保持打开状态。
  • BROWSER_CDP: 指定 Chrome DevTools Protocol (CDP) 的地址。

日志级别和匿名遥测

  • BROWSER_USE_LOGGING_LEVEL: 指定日志级别。默认为 info。可选值包括 debug, info, warn, error
  • ANONYMIZED_TELEMETRY: 如果设置为 true,将启用匿名遥测。默认为 false

Tag summary

Content type

Image

Digest

sha256:d71ab98b9

Size

939 MB

Last updated

about 1 hour ago

docker pull smanx/browser-use-web-ui