Skip to content

ronnyearly-devops/InfraPilot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

InfraPilot Banner

InfraPilot Logo

InfraPilot

Enterprise AI Copilot for Infrastructure Operations

License Version Python React FastAPI OpenAI


Overview

InfraPilot is an AI-powered infrastructure operations platform designed to help Systems Administrators, Infrastructure Engineers, DevOps Engineers, and IT Operations teams troubleshoot incidents, analyze environments, generate remediation steps, and automate operational workflows.

The long-term vision is to provide a unified AI assistant capable of supporting Windows Server, VMware, Linux, Azure, AWS, Kubernetes, networking, scripting, documentation, and enterprise automation from a single interface.


Feature Showcase

AI Incident Analysis

InfraPilot analyzes infrastructure incidents and returns structured operational intelligence instead of generic chatbot responses.

Current AI output includes:

  • Incident classification
  • Severity assessment
  • Confidence score
  • Probable root cause
  • Recommended actions
  • Suggested scripts
  • Executive management summary

Incident Management

Sprint 1 includes a working incident management workflow:

  • AI-powered incident analysis
  • SQLite persistence
  • Incident history table
  • Severity badges
  • Status badges
  • Incident details modal

Screenshots

πŸ“Έ Application Showcase

Enterprise Dashboard

The dashboard provides a centralized operational workspace where engineers can submit incidents, receive AI-generated analysis, and monitor infrastructure operations.

InfraPilot Dashboard


AI Incident Analysis

InfraPilot uses OpenAI to generate structured incident responses including severity assessment, probable root cause, remediation guidance, suggested scripts, and an executive management summary.

AI Incident Analysis


Incident History

Every incident is automatically stored, allowing engineers to review previous investigations through a clean enterprise interface.

Incident History


REST API Documentation

InfraPilot exposes a FastAPI backend with interactive Swagger documentation, making it easy to explore and extend the platform.

Swagger API


Architecture

                 React + Vite Frontend
                          |
                          v
                  Axios API Client
                          |
                          v
                    FastAPI Backend
                          |
        -------------------------------------
        |                                   |
        v                                   v
   AI Service Layer                 Repository Layer
        |                                   |
        v                                   v
    OpenAI API                      SQLite Database

Backend Pattern

InfraPilot follows a layered backend architecture:

API Router
   |
   v
Service Layer
   |
   v
Repository Layer
   |
   v
Database

This keeps AI logic, API routing, and database access separated so the platform can scale cleanly as new modules are added.


Technology Stack

Frontend

  • React
  • Vite
  • Axios
  • CSS

Backend

  • FastAPI
  • SQLAlchemy
  • SQLite
  • OpenAI API
  • Pydantic

Project Practices

  • Git version control
  • Conventional commit messages
  • Environment-based configuration
  • Prompt files separated from code
  • Product documentation
  • Release notes

Project Structure

InfraPilot/
|
β”œβ”€β”€ backend/
β”‚   β”œβ”€β”€ app/
β”‚   β”‚   β”œβ”€β”€ api/
β”‚   β”‚   β”œβ”€β”€ core/
β”‚   β”‚   β”œβ”€β”€ database/
β”‚   β”‚   β”œβ”€β”€ models/
β”‚   β”‚   β”œβ”€β”€ prompts/
β”‚   β”‚   β”œβ”€β”€ services/
β”‚   β”‚   └── utils/
β”‚   β”œβ”€β”€ main.py
β”‚   └── requirements.txt
|
β”œβ”€β”€ frontend/
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ api/
β”‚   β”‚   β”œβ”€β”€ assets/
β”‚   β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ config/
β”‚   β”‚   β”œβ”€β”€ pages/
β”‚   β”‚   └── styles/
β”‚   └── package.json
|
β”œβ”€β”€ docs/
β”œβ”€β”€ portfolio-assets/
β”œβ”€β”€ .env.example
β”œβ”€β”€ .gitignore
β”œβ”€β”€ LICENSE
└── README.md

Getting Started

Prerequisites

Install:

  • Python 3.13+
  • Node.js
  • Git
  • OpenAI API key

Backend Setup

cd C:\InfraPilot\backend
python -m venv venv
.\venv\Scripts\Activate.ps1
pip install -r requirements.txt

Create a .env file in the backend folder:

OPENAI_API_KEY=your_openai_api_key_here

Start the backend:

uvicorn main:app --reload

Backend runs at:

http://127.0.0.1:8000

Swagger documentation:

http://127.0.0.1:8000/docs

Frontend Setup

cd C:\InfraPilot\frontend
npm install
npm run dev

Frontend runs at:

http://localhost:5173

Roadmap

Sprint 1 β€” Foundation

Completed:

  • React frontend
  • FastAPI backend
  • OpenAI integration
  • Structured AI responses
  • SQLite persistence
  • Incident history
  • Incident details modal
  • GitHub project foundation

Sprint 2 β€” AI Operations

Planned:

  • Log upload and analysis
  • Windows Event Log support
  • Linux log analysis
  • VMware log analysis
  • AI-generated remediation guidance

Sprint 3 β€” Knowledge Base

Planned:

  • Document upload
  • Retrieval-Augmented Generation
  • Internal runbook search
  • AI answers with source references

Sprint 4 β€” Automation

Planned:

  • PowerShell generation
  • Bash generation
  • Script explanations
  • Safety checks
  • Runbook automation

Sprint 5 β€” Enterprise Integrations

Planned:

  • VMware
  • Active Directory
  • Azure
  • AWS
  • Kubernetes
  • Microsoft Graph

Why InfraPilot?

Modern infrastructure teams operate across complex environments. Troubleshooting often requires jumping between logs, tickets, scripts, dashboards, documentation, and tribal knowledge.

InfraPilot is being built to centralize that workflow into an AI-native operations console.

The goal is to reduce incident resolution time, improve operational consistency, and give engineers a practical AI copilot for real infrastructure work.


License

This project is licensed under the MIT License.

Releases

Packages

Contributors

Languages