This PowerShell script provides a fully automated, multi-threaded solution for a clean installation and setup of a local AI conversational assistant environment. It streamlines the complex process of installing Python (via pyenv-win), downloading SillyTavern (a web-based chat frontend for AI), and setting up XTTS-WebUI (for Text-to-Speech capabilities). The script leverages PowerShell jobs to perform these tasks concurrently, significantly reducing setup time for users.
Built by: Zachary Whiteman & Google Gemini AI
This application is a single PowerShell script designed for a clean installation of an AI conversational assistant environment.
To run this script, you will need:
- Windows Operating System: (Windows 7 or later).
- PowerShell 5.1 or newer: (PowerShell Core is supported).
- Administrator Privileges: The script must be run as Administrator to configure the environment (e.g., PATH variables).
- Git Installed: Git must be installed and accessible in your system's PATH: Download Git.
- Download: Download the
AISetup_CleanInstall.ps1script file. - Unblock: Right-click the file, go to Properties, and click
Unblockif the file was downloaded from the internet. - Run as Administrator: Open a PowerShell console as Administrator and execute the script:
The script will guide you through the automated setup process, including Python installation, and downloading/setting up
.\AISetup_CleanInstall.ps1
SillyTavernandXTTS-WebUI.
The core project directory will be created at E:\LOCAL_TTS_CONVERSATION_AI.
Once the script completes its execution, your local AI conversational assistant environment will be largely set up. Follow these crucial post-installation steps:
- NVIDIA CUDA Toolkit (Manual Step): If you plan to use GPU acceleration, manually install the NVIDIA CUDA Toolkit (the LOCAL version) if you haven't already.
- Launch LM Studio (or Jan): Start your preferred local LLM server (e.g., LM Studio or Jan) and ensure its API server is running.
- Launch XTTS-WebUI: Navigate to the
E:\LOCAL_TTS_CONVERSATION_AI\XTTS-WebUIfolder and run itsstart.batfile to launch the Text-to-Speech server. - Launch SillyTavern: Navigate to the
E:\LOCAL_TTS_CONVERSATION_AI\SillyTavernfolder and run itsStart.batfile to launch the chat frontend. - Configure SillyTavern: Within the SillyTavern UI, connect to your running LLM and TTS servers.
You are now ready to enjoy your local conversational AI!
- Fully Automated Setup: Automates the complex process of setting up a local AI conversational assistant environment.
- Multi-threaded Execution: Leverages PowerShell jobs for parallel downloading and installation of components, saving time.
- Python Version Management: Integrates
pyenv-winfor isolated and managed Python installations. - SillyTavern & XTTS-WebUI Integration: Automatically downloads and sets up popular AI chat frontend (SillyTavern) and Text-to-Speech (XTTS-WebUI) tools.
- Clean Installation Focus: Designed to provide a fresh and conflict-free setup.
- Dependency Management: Automatically installs Python dependencies using
pipforXTTS-WebUI. - Error Handling: Includes basic error handling and informative messages throughout the setup process.
The entire setup process is orchestrated by a PowerShell script, utilizing:
- Scripting Language: PowerShell
- Python Ecosystem:
pyenv-win(Python version manager),pip(package installer),python - Version Control:
Gitfor cloning repositories - AI Frontends/Backends: SillyTavern, XTTS-WebUI
- Core Windows Components:
.NET Framework(for PowerShell functions).
The AISetup_CleanInstall.ps1 script is designed for a one-time setup of a local AI environment.
- Administrator Privileges: Requires elevation to Administrator to manage system-wide PATH environment variables and install software.
- External Downloads: Downloads software and dependencies from trusted public repositories (GitHub, pip). Users should ensure network security.
- Local Installation: All components are installed locally on your system, typically within
E:\LOCAL_TTS_CONVERSATION_AI. No data is sent externally by this setup script. - Dependency on Git: Relies on Git being pre-installed and accessible in the system PATH.
- Multi-threading (Jobs): Uses PowerShell's
Start-Jobfor concurrency, improving efficiency without blocking the main script flow.
Distributed under the MIT License. See LICENSE.txt for more information.
Zach Whiteman - elitesoftwarecolimited@gmail.com
HuggingFace - https://huggingface.co/EliteSoftware
HuggingFace (Personal) - https://huggingface.co/TheShadyRainbow
LinkTree - https://linktr.ee/zachrainbow