Skip to content

Commit 0cdcfd2

Browse files
authored
Merge pull request #227 from marginal23326/docs/improve-install-guide
Improve `README.md` installation guide clarity and structure
2 parents c4b0da5 + 403a4b3 commit 0cdcfd2

File tree

1 file changed

+75
-38
lines changed

1 file changed

+75
-38
lines changed

README.md

+75-38
Original file line numberDiff line numberDiff line change
@@ -21,80 +21,117 @@ We would like to officially thank [WarmShao](https://github.com/warmshao) for hi
2121

2222
<video src="https://github.com/user-attachments/assets/56bc7080-f2e3-4367-af22-6bf2245ff6cb" controls="controls">Your browser does not support playing this video!</video>
2323

24-
## Installation Options
24+
## Installation Guide
25+
26+
### Prerequisites
27+
- Python 3.11 or higher
28+
- Git (for cloning the repository)
2529

2630
### Option 1: Local Installation
2731

2832
Read the [quickstart guide](https://docs.browser-use.com/quickstart#prepare-the-environment) or follow the steps below to get started.
2933

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+
```
3139

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.
3342

43+
Using uv (recommended):
3444
```bash
3545
uv venv --python 3.11
3646
```
3747

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:
4058
```bash
4159
source .venv/bin/activate
4260
```
4361

44-
Install the dependencies:
45-
62+
#### Step 3: Install Dependencies
63+
Install Python packages:
4664
```bash
4765
uv pip install -r requirements.txt
4866
```
4967

50-
Then install playwright:
51-
68+
Install Playwright:
5269
```bash
5370
playwright install
5471
```
5572

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
6184

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
6786

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)
7291

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+
```
7798

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
81109

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+
```
87119

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
88125

89126
## Usage
90127

91128
### 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:
94131
```bash
95132
python webui.py --ip 127.0.0.1 --port 7788
96133
```
97-
4. WebUI options:
134+
2. WebUI options:
98135
- `--ip`: The IP address to bind the WebUI to. Default is `127.0.0.1`.
99136
- `--port`: The port to bind the WebUI to. Default is `7788`.
100137
- `--theme`: The theme for the user interface. Default is `Ocean`.

0 commit comments

Comments
 (0)