该项目在 browser-use 的基础上做了一层 Gradio 图形界面,让 AI 代理可以读取网页内容并代替人执行点击、填写、跳转等操作,用自然语言描述任务即可。它接入了 Google、OpenAI、Azure OpenAI、Anthropic、DeepSeek、Ollama 等多种大模型,可自行切换。用户还能指定本机 Chrome 的路径和用户数据目录,直接复用已有的登录状态,避免反复认证;同时支持在多个任务之间保持浏览器窗口开启,便于回看完整的交互过程与页面状态。除本地安装外,项目也提供 Docker 部署方案,并附带 VNC 页面可实时观看浏览器动作,适合做网页自动化验证与演示。
docker compose up --build
This project builds upon the foundation of the browser-use, which is designed to make websites accessible for AI agents.
We would like to officially thank WarmShao for his contribution to this project.
WebUI: is built on Gradio and supports most of browser-use functionalities. This UI is designed to be user-friendly and enables easy interaction with the browser agent.
Expanded LLM Support: We've integrated support for various Large Language Models (LLMs), including: Google, OpenAI, Azure OpenAI, Anthropic, DeepSeek, Ollama etc. And we plan to add support for even more models in the future.
Custom Browser Support: You can use your own browser with our tool, eliminating the need to re-login to sites or deal with other authentication challenges. This feature also supports high-definition screen recording.
Persistent Browser Sessions: You can choose to keep the browser window open between AI tasks, allowing you to see the complete history and state of AI interactions.
Your browser does not support playing this video!
Read the quickstart guide or follow the steps below to get started.
git clone https://github.com/browser-use/web-ui.git
cd web-ui
We recommend using uv for managing the Python environment.
Using uv (recommended):
uv venv --python 3.11
Activate the virtual environment:
.venv\Scripts\activate
.\.venv\Scripts\Activate.ps1
source .venv/bin/activate
Install Python packages:
uv pip install -r requirements.txt
Install Browsers in playwright.
playwright install --with-deps
Or you can install specific browsers by running:
playwright install chromium --with-deps
copy .env.example .env
cp .env.example .env
.env in your preferred text editor and add your API keys and other settingspython webui.py --ip 127.0.0.1 --port 7788
http://127.0.0.1:7788.BROWSER_PATH to the executable path of your browser and BROWSER_USER_DATA to the user data directory of your browser. Leave BROWSER_USER_DATA empty if you want to use local user data.
BROWSER_PATH="C:\Program Files\Google\Chrome\Application\chrome.exe"
BROWSER_USER_DATA="C:\Users\YourUsername\AppData\Local\Google\Chrome\User Data"
Note: Replace
YourUsernamewith your actual Windows username for Windows systems.
BROWSER_PATH="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
BROWSER_USER_DATA="/Users/YourUsername/Library/Application Support/Google/Chrome"
git clone https://github.com/browser-use/web-ui.git
cd web-ui
copy .env.example .env
cp .env.example .env
.env in your preferred text editor and add your API keys and other settingsdocker compose up --build
For ARM64 systems (e.g., Apple Silicon Macs), please run follow command:
TARGETPLATFORM=linux/arm64 docker compose up --build
http://localhost:7788 in your browserhttp://localhost:6080/vnc.html
VNC_PASSWORD in your .env file内容由编辑整理,部分信息来自 GitHub 与项目官网,版权归原作者所有。发现错误?报告问题