Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Script to Automate Setup in Windows #209

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Thepathakarpit
Copy link

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

Batch file to automate setup for Agent-zero on Windows
@andrewrkerr
Copy link

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

@Thepathakarpit
Copy link
Author

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants