agent-zero icon indicating copy to clipboard operation
agent-zero copied to clipboard

Add Script to Automate Setup in Windows

Open Thepathakarpit opened this issue 1 year ago • 3 comments

Overview This PR contains a Windows batch script for automating the setup and execution of Agent Zero. The script automates the complete setup of Agent zero in windows by downloading python, docker, dependencies and provides a user-friendly interface for running the application in either CLI or UI mode. The goal of the script to make the project accessible to even very beginners and make it easier for all users to use the project comfortably without much hassle so that they can focus on project itself rather than getting stuck at different steps of setup

Does the following Implement automatic Python installation if not present Add Docker Desktop installation automation Include package dependency installation via pip Add bundle script execution logic Implement CLI/UI mode selection interface

Features

Automated Environment Setup:

  • Python 3.10 installation check and automated install
  • Docker Desktop installation with error handling
  • Required Python packages installation via requirements.txt

Testing Performed

  • Tested on clean Windows environment
  • Verified Python installation flow
  • Verified Docker installation flow
  • Tested package installation
  • Verified both CLI and UI mode execution

How to Test

  1. Clone the repository
  2. Run setup.bat
  3. Verify that all dependencies are installed correctly
  4. Test both CLI and UI mode execution
  5. Verify error handling by intentionally breaking dependencies

Notes

  • The script requires administrative privileges for installations
  • Users should have a stable internet connection for first-time setup
  • The .env file needs to be configured manually by the user

Thank you Btw awesome project, kudos to all the contributors, I really like the idea, there are issues with project but idea is brilliant and has such a huge scalling potential. All the best

Thepathakarpit avatar Oct 22 '24 06:10 Thepathakarpit

Love the idea of making a script to make it more accessible. One thing it's missing is the setup and activation of a python virtual environment.

The guide uses miniconda, but you could also use: python3 -m venv .venv and .venv\Scripts\activate

andrewrkerr avatar Oct 24 '24 14:10 andrewrkerr

Love the idea of making a script to make it more accessible. One thing it's missing is the setup and activation of a python virtual environment.

The guide uses miniconda, but you could also use: python3 -m venv .venv and .venv\Scripts\activate

Done Added it in new commit

Thepathakarpit avatar Oct 24 '24 17:10 Thepathakarpit

Also fixed the docker installation added functionality to install chocolatey if not there and installing docker using chocolatey if docker is not already installed.

Makes it even easier to setup the project dependencies and running it in an virtual environment.

Thepathakarpit avatar Oct 24 '24 18:10 Thepathakarpit