Skip to content

piyush080205/aira

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

31 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€– AIRA - AI-Powered Incident Response Agent

AIRA (AI-Powered Incident Response Agent) is an intelligent system that monitors, analyzes, and responds to incidents in real-time using advanced AI capabilities.

✨ Features

  • πŸ” Real-time Incident Monitoring: Continuous monitoring of logs and system events
  • 🧠 AI-Powered Analysis: Uses Groq LLM for intelligent incident analysis
  • πŸ”„ Automated Response: Suggests and executes remediation actions
  • πŸ“Š Interactive Dashboard: Real-time visualization of incidents and system health
  • πŸ” Secure Authentication: JWT-based authentication system
  • πŸ™ GitHub Integration: Automatic issue creation and tracking
  • πŸ’¬ Slack Notifications: Real-time alerts to your team
  • πŸ”Œ MCP Integration: Model Context Protocol for enhanced AI capabilities

πŸš€ Quick Start

Prerequisites

  • Python 3.11+
  • Node.js 18+
  • Docker (optional, for containerized deployment)
  • Groq API key
  • GitHub Personal Access Token

Local Development

  1. Clone the repository
git clone https://github.com/YOUR_USERNAME/aira.git
cd aira
  1. Setup environment variables
cp .env.example .env
# Edit .env with your credentials
  1. Start with Docker (Recommended)
make build
make up
make health
  1. Or start manually

Backend:

cd backend
pip install -r requirements.txt
uvicorn main:app --reload --host 0.0.0.0 --port 8000

Frontend:

cd frontend
npm install
npm run dev
  1. Access the application

🌐 Deployment

Deploy to Render (Recommended)

AIRA is optimized for deployment on Render.com with one-click setup.

πŸ“– See RENDER_DEPLOYMENT.md for complete deployment guide.

Quick Deploy

  1. Fork this repository
  2. Sign up at render.com
  3. Click "New" β†’ "Blueprint"
  4. Connect your repository
  5. Configure environment variables
  6. Click "Apply"

What gets deployed:

  • βœ… Backend API (Python/FastAPI)
  • βœ… Frontend (React/Vite)
  • βœ… PostgreSQL Database
  • βœ… Redis Cache
  • βœ… MCP Servers (optional)

Pricing:

  • Free tier available
  • Production: ~$31/month

Other Deployment Options

πŸ“š Documentation

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   Frontend      β”‚
β”‚  (React/Vite)   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜
         β”‚
         ↓
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”      β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   Backend API   │◄────►│   Redis      β”‚
β”‚  (FastAPI)      β”‚      β”‚   Cache      β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜      β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
         β”‚
         β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
         ↓              ↓
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   PostgreSQL    β”‚  β”‚  MCP Servers β”‚
β”‚   Database      β”‚  β”‚  (GitHub,    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚   Context)   β”‚
                     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ› οΈ Technology Stack

Backend:

  • FastAPI (Python web framework)
  • SQLAlchemy (ORM)
  • LangGraph (AI agent framework)
  • Groq (LLM provider)
  • Redis (caching)
  • PostgreSQL (database)

Frontend:

  • React 18
  • TypeScript
  • Vite
  • Tailwind CSS
  • WebSocket (real-time updates)

Infrastructure:

  • Docker & Docker Compose
  • Render (recommended hosting)
  • GitHub Actions (CI/CD)

πŸ”‘ Environment Variables

Required environment variables:

# API Keys
GROQ_API_KEY=your_groq_api_key
GITHUB_TOKEN=your_github_token
GITHUB_REPO=owner/repository

# Database (automatically set by Render)
DATABASE_URL=postgresql://...
REDIS_URL=redis://...

# Optional
SLACK_WEBHOOK_URL=https://hooks.slack.com/...
LOG_LEVEL=INFO

See .env.example for complete configuration.

πŸ§ͺ Testing

# Run backend tests
cd backend
pytest

# Run frontend tests
cd frontend
npm test

# Run integration tests
make test

πŸ“Š Monitoring

AIRA includes built-in monitoring endpoints:

  • Health: GET /health
  • Metrics: GET /metrics
  • Ready: GET /ready

🀝 Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request

πŸ“ License

This project is licensed under the MIT License - see LICENSE file for details.

πŸ†˜ Support

πŸ™ Acknowledgments

  • Groq for fast LLM inference
  • Render for excellent hosting platform
  • LangChain for AI framework
  • All our contributors and users

πŸ—ΊοΈ Roadmap

  • Multi-tenant support
  • Advanced analytics dashboard
  • Custom incident rules engine
  • Mobile app
  • Integration with more monitoring tools
  • AI model fine-tuning

Built with ❀️ by the AIRA Team

⭐ Star us on GitHub if you find AIRA useful!

About

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors