Setup Browser AI Agent using Python on Windows
Prerequisites:
- Installation of Python.
- Download of Browser-Use Code.
- Knowledge of Windows Command Prompt.
Download Now!
2) After downloading and extracting the Browser-Use AI agent code from the GitHub repository to your designated path, use below command to change into the code root path i.e.
cd D:\BrowseUserAI\web-ui
D:
3) Now, use below command to create the ".env" environment file with the code directory if not already created i.e.
copy .env.example .env
4) Next step is to set your python installation paths, create python virtual environment, activate virtual environment and then upgrade the python pip module. You can looking to step-1 for detail step by step guide for this step.
5) Now, install all the require python packages that this AI agent requires with the help of below commands i.e.
:: Installs call pip install -r requirements.txt call python -m playwright install
6) Next step is to execute this AI agent with the help of below command i.e.
:: Call Python Scripts call python webui.py --ip 127.0.0.1 --port 7788
7) Now, the tool has been setup, copy the URL "http://127.0.0.1:7788
" into chrome browser. Its important that you use chrome browser because by default the tool is setup for chrome browser, if you want to use another browser then you need to do the configuration through either the tool's UI or through ".env" file. You can look into the project GitHub documentation for it. You also need to provide your Learning Language Model (LLM) provider API Key such as openAI or Gemini or any other that is available within this tool.
So here what you see, also as soon as you run the agent the browser automation begins. i.e.
Conclusion
In this article, you will learn to setup this amazing AI agent Browser-Use using python on windows. You also learn to configure LLM provider API keys as according to your choice.