Tutorial browser use ui , without docker
Here is a step-by-step tutorial to set up the Python environment web-ui2 in /media/backup_006_3/workspace.01.main/ and run the webui.py script locally (Option 1):
1. Create the Python Environment
Navigate to the Target Directory:
cd /media/backup_006_3/workspace.01.main/Create a Virtual Environment Named
web-ui2:python3 -m venv web-ui2Activate the Virtual Environment:
source web-ui2/bin/activate
2. Install Dependencies
Navigate to the
web-uiDirectory:cd /media/backup_006_3/workspace.01.main/web-ui/Install Required Packages:
pip install -r requirements.txtInstall Playwright:
playwright install
3. Set Up the Environment Variables
Copy the
.env.exampleFile:cp .env.example .envEdit the
.envFile: Use a text editor to update the.envfile with your API keys:nano .envExample content for
.env:OPENAI_API_KEY=your_openai_api_key ANTHROPIC_API_KEY=your_anthropic_api_key GOOGLE_API_KEY=your_google_api_key
4. Clone and Run the WebUI
git clone https://github.com/browser-use/web-ui.git cd web-uiRun the Script with the Desired IP and Port:
python webui.py --ip 127.0.0.1 --port 7788Access the WebUI: Open your browser and navigate to:
http://127.0.0.1:7788
Additional Options
Dark Mode: Add the
--dark-modeflag to enable dark mode:python webui.py --ip 127.0.0.1 --port 7788 --dark-modeCustomize Theme: Specify a theme using
--theme. Available themes includeOcean,Soft,Monochrome,Glass,Origin,Citrus:python webui.py --ip 127.0.0.1 --port 7788 --theme Glass
Troubleshooting
Python Not Found:
Ensure Python 3.11+ is installed:sudo apt update sudo apt install python3 python3-venv python3-pipPermission Issues:
Ensure proper permissions for thewebui.pyfile:chmod +x webui.pyDependencies Not Found:
Re-run:pip install -r requirements.txt
This should successfully set up and run the WebUI locally.