A powerful web interface for browser automation using AI agents with real-time visualization.
Browser-Use Web UI provides an intuitive interface for controlling and monitoring AI-powered browser automation. This application allows users to create automation tasks using natural language prompts, observe the automation in real time through screenshot updates, and retrieve results once tasks are completed.
- Natural Language Task Creation: Define browser automation tasks using simple text prompts
- Real-time Visualization: Watch the browser automation execute with live screenshot updates
- Task Management: Create, monitor, and stop tasks from a unified interface
- Task History: View past automation runs and their results
- Responsive Design: Works across desktop and mobile devices
- React
- TypeScript
- Material UI
- Vite
- Axios for API communication
- WebSocket for real-time updates
- Python
- FastAPI
- Uvicorn
- Websockets
- Pillow for image processing
- Optional: Browser-Use package for real browser automation
- Node.js 18+
- Python 3.9+
- pip
- npm or yarn
-
Clone the repository:
git clone https://github.com/Ridamdli/UIwebFORbrwseruse.git cd UIwebFORbrwseruse -
Create and activate a Python virtual environment:
cd backend python -m venv venv # On Windows .\venv\Scripts\activate # On macOS/Linux source venv/bin/activate
-
Install dependencies:
pip install -r requirements.txt
-
Run the development server:
python simple_api.py
The backend server will be available at http://127.0.0.1:8000
-
Navigate to the frontend directory:
cd frontend -
Install dependencies:
npm install # or yarn -
Start the development server:
npm run dev # or yarn devThe frontend will be available at http://localhost:5173
Create a .env file in the backend directory with these variables:
# Server Configuration
PORT=8000
HOST=127.0.0.1
# Browser Configuration
HEADLESS_MODE=false
# Optional: Browser-Use Configuration
BROWSER_USE_API_KEY=your_api_key_if_needed
Create a .env file in the frontend directory with these variables:
# API Configuration
VITE_API_URL=http://127.0.0.1:8000
VITE_WS_URL=ws://127.0.0.1:8000
-
Set up the following environment variables in Vercel:
VITE_API_URL: URL of your deployed backend APIVITE_WS_URL: WebSocket URL of your deployed backend
-
Configure the build settings:
- Build Command:
npm run buildoryarn build - Output Directory:
dist - Install Command:
npm installoryarn install
- Build Command:
The backend can be deployed to any service that supports Python applications:
-
Install production dependencies:
pip install -r requirements.txt gunicorn
-
Start the server:
gunicorn -w 4 -k uvicorn.workers.UvicornWorker simple_api:app
When the backend is running, access the API documentation at:
- Swagger UI: http://127.0.0.1:8000/docs
- ReDoc: http://127.0.0.1:8000/redoc
This project is licensed under the MIT License - see the LICENSE file for details.