@@ -21,80 +21,117 @@ We would like to officially thank [WarmShao](https://github.com/warmshao) for hi
21
21
22
22
<video src =" https://github.com/user-attachments/assets/56bc7080-f2e3-4367-af22-6bf2245ff6cb " controls =" controls " >Your browser does not support playing this video!</video >
23
23
24
- ## Installation Options
24
+ ## Installation Guide
25
+
26
+ ### Prerequisites
27
+ - Python 3.11 or higher
28
+ - Git (for cloning the repository)
25
29
26
30
### Option 1: Local Installation
27
31
28
32
Read the [ quickstart guide] ( https://docs.browser-use.com/quickstart#prepare-the-environment ) or follow the steps below to get started.
29
33
30
- > Python 3.11 or higher is required.
34
+ #### Step 1: Clone the Repository
35
+ ``` bash
36
+ git clone https://github.com/browser-use/web-ui.git
37
+ cd web-ui
38
+ ```
31
39
32
- First, we recommend using [ uv] ( https://docs.astral.sh/uv/ ) to setup the Python environment.
40
+ #### Step 2: Set Up Python Environment
41
+ We recommend using [ uv] ( https://docs.astral.sh/uv/ ) for managing the Python environment.
33
42
43
+ Using uv (recommended):
34
44
``` bash
35
45
uv venv --python 3.11
36
46
```
37
47
38
- and activate it with:
39
-
48
+ Activate the virtual environment:
49
+ - Windows (Command Prompt):
50
+ ``` cmd
51
+ .venv\Scripts\activate
52
+ ```
53
+ - Windows (PowerShell):
54
+ ``` powershell
55
+ .\.venv\Scripts\Activate.ps1
56
+ ```
57
+ - macOS/Linux:
40
58
``` bash
41
59
source .venv/bin/activate
42
60
```
43
61
44
- Install the dependencies:
45
-
62
+ #### Step 3: Install Dependencies
63
+ Install Python packages:
46
64
``` bash
47
65
uv pip install -r requirements.txt
48
66
```
49
67
50
- Then install playwright:
51
-
68
+ Install Playwright:
52
69
``` bash
53
70
playwright install
54
71
```
55
72
56
- ### Option 2: Docker Installation
57
-
58
- 1 . ** Prerequisites:**
59
- - Docker and Docker Compose installed on your system
60
- - Git to clone the repository
73
+ #### Step 4: Configure Environment
74
+ 1 . Create a copy of the example environment file:
75
+ - Windows (Command Prompt):
76
+ ``` bash
77
+ copy .env.example .env
78
+ ```
79
+ - macOS/Linux/Windows (PowerShell):
80
+ ``` bash
81
+ cp .env.example .env
82
+ ```
83
+ 2 . Open ` .env ` in your preferred text editor and add your API keys and other settings
61
84
62
- 2 . ** Setup:**
63
- ``` bash
64
- # Clone the repository
65
- git clone https://github.com/browser-use/web-ui.git
66
- cd web-ui
85
+ ### Option 2: Docker Installation
67
86
68
- # Copy and configure environment variables
69
- cp .env.example .env
70
- # Edit .env with your preferred text editor and add your API keys
71
- ```
87
+ #### Prerequisites
88
+ - Docker and Docker Compose installed
89
+ - [ Docker Desktop ] ( https://www.docker.com/products/docker-desktop/ ) (For Windows/macOS)
90
+ - [ Docker Engine ] ( https://docs.docker.com/engine/install/ ) and [ Docker Compose ] ( https://docs.docker.com/compose/install/ ) (For Linux)
72
91
73
- 3 . ** Run with Docker:**
74
- ``` bash
75
- # Build and start the container with default settings (browser closes after AI tasks)
76
- docker compose up --build
92
+ #### Installation Steps
93
+ 1 . Clone the repository:
94
+ ``` bash
95
+ git clone https://github.com/browser-use/web-ui.git
96
+ cd web-ui
97
+ ```
77
98
78
- # Or run with persistent browser (browser stays open between AI tasks)
79
- CHROME_PERSISTENT_SESSION=true docker compose up --build
80
- ```
99
+ 2 . Create and configure environment file:
100
+ - Windows (Command Prompt):
101
+ ``` bash
102
+ copy .env.example .env
103
+ ```
104
+ - macOS/Linux/Windows (PowerShell):
105
+ ``` bash
106
+ cp .env.example .env
107
+ ```
108
+ Edit ` .env ` with your preferred text editor and add your API keys
81
109
82
- 4 . ** Access the Application:**
83
- - WebUI: ` http://localhost:7788 `
84
- - VNC Viewer (to see browser interactions): ` http://localhost:6080/vnc.html `
85
-
86
- Default VNC password is "youvncpassword". You can change it by setting the ` VNC_PASSWORD ` environment variable in your ` .env ` file.
110
+ 3 . Run with Docker:
111
+ ``` bash
112
+ # Build and start the container with default settings (browser closes after AI tasks)
113
+ docker compose up --build
114
+ ```
115
+ ``` bash
116
+ # Or run with persistent browser (browser stays open between AI tasks)
117
+ CHROME_PERSISTENT_SESSION=true docker compose up --build
118
+ ```
87
119
120
+ 4 . Access the Application:
121
+ - Web Interface: Open ` http://localhost:7788 ` in your browser
122
+ - VNC Viewer (for watching browser interactions): Open ` http://localhost:6080/vnc.html `
123
+ - Default VNC password: "youvncpassword"
124
+ - Can be changed by setting ` VNC_PASSWORD ` in your ` .env ` file
88
125
89
126
## Usage
90
127
91
128
### Local Setup
92
- 1 . Copy ` .env.example ` to ` .env ` and set your environment variables, including API keys for the LLM. ` cp .env.example .env `
93
- 2 . ** Run the WebUI: **
129
+ 1 . ** Run the WebUI: **
130
+ After completing the installation steps above, start the application:
94
131
``` bash
95
132
python webui.py --ip 127.0.0.1 --port 7788
96
133
```
97
- 4 . WebUI options:
134
+ 2 . WebUI options:
98
135
- ` --ip` : The IP address to bind the WebUI to. Default is ` 127.0.0.1` .
99
136
- ` --port` : The port to bind the WebUI to. Default is ` 7788` .
100
137
- ` --theme` : The theme for the user interface. Default is ` Ocean` .
0 commit comments