git clone https://github.com/cywf/InfraWiz.git
cd InfraWiz
pip install -r requirements.txt
Option A - Environment Variable (temporary):
export OPENAI_API_KEY='sk-...'
Option B - .env file (recommended):
cp .env.example .env
# Edit .env and replace 'your-api-key-here' with your actual API key
Simply run:
python infra_wiz.py
Hi! I'm InfraWiz, your Infrastructure Management Wizard.
What can I help you with today?
Enter your request: I need to set up a web server with nginx and SSL
Analyzing your request with InfraWiz AI...
InfraWiz Analysis:
[AI provides recommendations for nginx installation, SSL certificate setup, etc.]
Enter your request: Install and configure PostgreSQL database server
Analyzing your request with InfraWiz AI...
InfraWiz Analysis:
[AI provides PostgreSQL installation and configuration steps]
Enter your request: Set up a Python development environment with Docker
Analyzing your request with InfraWiz AI...
InfraWiz Analysis:
[AI provides Docker and Python environment setup instructions]
Make sure you’ve set your API key either as an environment variable or in a .env file.
Install dependencies: pip install -r requirements.txt
If you hit OpenAI API rate limits, wait a few moments and try again.
Contributions are welcome! Please fork the repository and submit a pull request.