AI-powered DevOps automation CLI โ scan, deploy, diagnose, and document any project.
Project description
๐ค AutoDevOps AI
A production-ready, AI-powered DevOps automation CLI tool โ distributed as a global Python package via PyPI.
๐ Table of Contents
- Overview
- Features
- Architecture
- Tech Stack
- Installation
- CLI Commands
- Phase-wise Roadmap
- Project Structure
- Contributing
- License
๐ Overview
AutoDevOps AI is an intelligent, multi-agent DevOps automation platform built as a global Python CLI tool. It scans your project, understands your stack, and autonomously:
- ๐ Scans your repository to detect languages, frameworks, databases, and infrastructure
- ๐ง Plans deployment strategies using AI
- ๐ Integrates with GitHub (auth, repos, secrets, Actions)
- ๐ Deploys to local environments, AWS, Azure, and GCP
- ๐ง Diagnoses and fixes CI/CD and deployment failures
- ๐ Generates full documentation, runbooks, and API docs
- ๐ก๏ธ Secures pipelines with secret detection and dependency scanning
- ๐ฐ Optimizes cloud costs with actionable recommendations
โจ Features
| Feature | Description |
|---|---|
| ๐ Project Scanner | Detects languages, frameworks, Docker, K8s, Terraform, DBs, and cloud SDKs |
| ๐งฉ Chunking Engine | Splits large repos into LLM-processable chunks with summaries |
| ๐ง Context Engine | Builds rich AI context from scan + user request + chunks |
| ๐ GitHub Integration | Full GitHub automation: auth, repos, branches, PRs, secrets, Actions |
| ๐ค AI Developer Assistant | Ask, explain, generate, refactor, and review code via CLI |
| ๐ Smart Commit Generator | AI-generated commit messages, PR titles/descriptions, release notes |
| โ๏ธ CI/CD Generator | Generate pipelines for GitHub Actions, GitLab CI, Jenkins, Azure DevOps |
| ๐ฅ๏ธ Local Deployment | Deploy to Windows/Linux/macOS, Docker Desktop, Minikube |
| โ๏ธ Cloud Deployment | Deploy to AWS (Lambda/ECS/EKS), Azure (App Service/AKS), GCP (Cloud Run/GKE) |
| ๐ง Troubleshooting Agent | Diagnose failures from build, Docker, K8s, GitHub Actions, and cloud logs |
| ๐ Documentation Agent | Generate README, architecture docs, API docs, runbooks |
| ๐ก๏ธ Security Agent | Secret detection, dependency scanning, pipeline security checks |
| ๐ฐ Cost Optimizer | Analyze and reduce AWS, Azure, and GCP resource costs |
๐๏ธ Architecture
AutoDevOps AI follows a Multi-Agent Architecture where each agent has a clear responsibility and a well-defined communication interface:
+-------------------------------------------------------------+
| AutoDevOps CLI |
| (Typer-based, global `autodevops` command) |
+------------------------------+------------------------------+
|
+---------------v---------------+
| Planner Agent |
| (Orchestrates all agents) |
+---------------+---------------+
|
+-----------------------+-----------------------+
| | | |
+------v-----+ +------v-----+ +------v-----+ +-----v------+
|Scanner Agt | |Context Agt | |Developer | | Git Agent |
|(rule-based)| | | | Agent | | (PyGithub) |
+------------+ +------------+ +------------+ +------------+
| | | |
+------v-----+ +------v-----+ +------v-----+ +-----v------+
| CI/CD Agt | |Deploy Agt | |Troubleshoot| | Doc Agt |
| | |local+cloud | | Agent | | |
+------------+ +------------+ +------------+ +------------+
|
+---------------v---------------+
| Security + Cost Agents |
+-------------------------------+
Agent Responsibilities
| Agent | Responsibility |
|---|---|
| Planner Agent | Orchestrates task decomposition and agent delegation |
| Scanner Agent | Rule-based project scanning (no AI) |
| Context Agent | Builds and optimizes AI context from multiple sources |
| Developer Agent | Code generation, explanation, refactoring, review |
| Git Agent | Full GitHub API operations |
| CI/CD Agent | Pipeline generation for all major platforms |
| Deployment Agent | Local and cloud deployment automation |
| Documentation Agent | Generates all project documentation |
| Troubleshooting Agent | Root-cause analysis and fix generation |
| Security Agent | Secret detection and security scanning |
| Cost Optimization Agent | Cloud cost analysis and recommendations |
๐ ๏ธ Tech Stack
| Category | Libraries |
|---|---|
| CLI Framework | typer, rich |
| Data Validation | pydantic |
| AI / LLM | openai, anthropic, google-generativeai, ollama, langchain (optional) |
| Vector Store | faiss-cpu or chromadb |
| Git / GitHub | gitpython, pygithub |
| Containers | docker (Docker SDK) |
| Kubernetes | kubernetes |
| AWS | boto3 |
| Azure | azure-mgmt-*, azure-identity |
| GCP | google-cloud-* |
| Database | sqlite3 (built-in) |
| Templating | jinja2 |
| Testing | pytest, pytest-cov |
| Packaging | hatch, setuptools, twine |
๐ฆ Installation
# Install globally from PyPI (once published)
pip install autodevops-ai
# Verify installation
autodevops --version
# Initialize in your project
autodevops init
โ๏ธ Initial Configuration
After installing, configure your AI provider and optional integrations:
1. Set AI Provider API Key
# OpenAI (Default)
autodevops config set openai.api_key sk-xxxxxxxxxxxxxxxxxxxx
# Anthropic Claude
autodevops config set anthropic.api_key sk-ant-xxxxxxxxxxxx
autodevops config set default_provider anthropic
# Google Gemini
autodevops config set google.api_key AIzaSy-xxxxxxxxxxxxxxxx
autodevops config set default_provider google
2. Connect Local Offline Model (Ollama Network Scan)
If you prefer running local models (e.g., Llama3) offline:
- Ensure Ollama is running on your machine or any host on your local network (defaults to port
11434). - When you set Ollama as the provider, AutoDevOps scans your host/network, pings active Ollama endpoints to discover available models, and locks in the configuration:
autodevops config set default_provider ollama autodevops config set ollama.model llama3
3. Connect GitHub
Authorize the CLI to interact with your repositories (pull, commit, branch, create PRs, manage secrets):
autodevops github connect
Prompts for your GitHub Personal Access Token (PAT) with repo, workflow, and admin:repo_hook scopes, automatically verifying authentication.
๐ป CLI Commands
autodevops init # Initialize AutoDevOps in current project
autodevops scan # Scan project and detect stack
autodevops ask "question" # Ask AI about your project
autodevops explain # Explain project architecture
autodevops generate # Generate code, configs, or pipelines
autodevops github connect # Connect to GitHub
autodevops deploy # Deploy project (local or cloud)
autodevops deploy local # Deploy locally
autodevops diagnose # Diagnose and fix failures
autodevops docs # Generate documentation
autodevops config # Manage configuration
autodevops status # Check deployment/service status
๐บ๏ธ Phase-wise Roadmap
Phase 0 โ Project Bootstrap and PyPI Packaging Setup
Goal: Create a proper Python package skeleton ready for PyPI submission.
Tasks:
- Initialize project with
hatchorsetuptools - Create
pyproject.tomlwith proper metadata - Define package name:
autodevops-ai - Set up
src/autodevops/package layout - Create entry point:
autodevopscommand - Add
README.md,LICENSE(MIT),CHANGELOG.md - Set up
.gitignore,.editorconfig - Set up
pytestwithtests/directory - Configure GitHub Actions for CI (lint + test + publish)
- Create
CONTRIBUTING.mdandCODE_OF_CONDUCT.md
Deliverables:
- Working
pip install -e .local install autodevops --helpoutputs usage- Publish to TestPyPI first, then PyPI
Phase 1 โ Project Scanner (Rule-Based, No AI)
Goal: Build a deterministic scanner that deeply understands any repository.
Tasks:
- Implement
ScannerAgentclass - Detect Programming Languages (by file extensions)
- Detect Frameworks (Django, Flask, FastAPI, React, Next.js, Spring, etc.)
- Detect Package Managers (requirements.txt, package.json, pom.xml, etc.)
- Detect Databases (Postgres, MySQL, MongoDB, Redis via config/env files)
- Detect Docker (Dockerfile, docker-compose.yml)
- Detect Kubernetes (*.yaml with kind: Deployment/Service/etc.)
- Detect Terraform (*.tf, terraform.tfvars)
- Detect CI/CD (.github/workflows/, .gitlab-ci.yml, Jenkinsfile)
- Detect Cloud SDKs (boto3, azure-sdk, google-cloud imports)
- Detect Testing Frameworks (pytest, jest, junit, etc.)
- Analyze repository structure (depth, main dirs, entry points)
- Output structured project_scan.txt / JSON
CLI:
autodevops scan
autodevops scan --output json
Phase 2 โ Project Chunking and Context Engine
Goal: Handle large repositories efficiently without hitting LLM token limits.
Tasks:
- Implement ChunkingEngine
- Split files by size/complexity
- Generate per-chunk summaries
- Store in project_chunks.txt
- Implement ContextEngine
- Load user_request.txt
- Load project_scan.txt
- Load project_chunks.txt
- Merge and optimize into deployment_plan.txt
- Context token budget management
- Implement Vector Store (FAISS or ChromaDB)
- Embed and store file summaries
- Semantic search for relevant context
Phase 3 โ AI Provider Abstraction and Developer Assistant
Goal: Unified AI interface supporting multiple LLM providers + ask/explain/generate commands.
Tasks:
- Create AIProvider abstract base class
- Implement providers:
- OpenAIProvider (GPT-4o, GPT-4 Turbo)
- AnthropicProvider (Claude 3.5 Sonnet/Haiku)
- GoogleProvider (Gemini 1.5 Pro/Flash)
- OllamaProvider (local Llama3, Mistral, etc.)
- Implement DeveloperAgent
- autodevops ask "question" โ general Q&A
- autodevops explain โ architecture explanation
- autodevops generate โ code/config generation
- Code refactoring
- Code review with suggestions
- Implementation plan generation
- Implement autodevops config for managing API keys and provider selection
Phase 4 โ GitHub Integration
Goal: Full GitHub automation from the CLI.
Tasks:
- Implement GitAgent using PyGithub + gitpython
- autodevops github connect โ OAuth / PAT authentication
- Repository operations:
- Create repository
- Clone repository
- Branch creation
- Commit creation
- Push / Pull
- Pull Request creation
- GitHub Secrets management
- GitHub Actions workflow integration
- Repository analysis (stars, issues, PRs, contributors)
- Smart Commit Generator:
- Analyze changed files with AI
- Generate commit message
- Generate PR title and description
- Generate release notes
- Impact and risk analysis
Phase 5 โ CI/CD Pipeline Generator
Goal: Auto-generate CI/CD pipelines for all major platforms.
Tasks:
- Implement CICDAgent with Jinja2 templating
- Generate pipelines for:
- GitHub Actions (.github/workflows/)
- GitLab CI (.gitlab-ci.yml)
- Jenkins (Jenkinsfile)
- Azure DevOps (azure-pipelines.yml)
- CircleCI (.circleci/config.yml)
- Bitbucket Pipelines (bitbucket-pipelines.yml)
- Pipeline stages: Build, Test, Package, Deploy, Rollback, Notifications
Phase 6 โ Local Deployment Agent
Goal: Fully automated local development environment setup and deployment.
Tasks:
- Implement LocalDeploymentAgent
- Detect local environment (Windows/Linux/macOS/WSL)
- Auto-install dependencies (with user approval)
- Create virtual environments / containers
- Configure databases (Postgres, MySQL, MongoDB, Redis)
- Start services (Docker Compose, native)
- Verify health checks
- Support: Native, Docker Desktop, Minikube / Local Kubernetes
Phase 7 โ Cloud Deployment Agent
Goal: Deploy to AWS, Azure, and GCP from a single CLI command.
Tasks:
- Implement CloudDeploymentAgent
- AWS: Lambda, ECS, EKS, EC2, Elastic Beanstalk, S3+CloudFront
- Azure: App Service, Azure Functions, AKS
- GCP: Cloud Run, Cloud Functions, GKE, Compute Engine
- On-premises deployment support
- Environment validation, automated rollback, post-deploy verification
Phase 8 โ Troubleshooting Agent
Goal: AI-powered root-cause analysis and automated fix generation.
Tasks:
- Implement TroubleshootingAgent
- Collect: build logs, GitHub Actions, Docker, app logs, K8s, cloud logs
- AI: root cause, fix suggestions, remediation plans, auto-apply
Phase 9 โ Documentation Agent
Goal: Auto-generate complete project documentation.
Tasks:
- Generate: README, architecture docs, developer guides, API docs, runbooks
- Output formats: Markdown, HTML, PDF
Phase 10 โ Security Agent
Goal: Proactive security scanning and recommendations.
Tasks:
- Secret detection (API keys, tokens in code, .env, git history)
- Dependency vulnerability scanning (Python, Node.js, Java)
- Pipeline security checks and cloud security recommendations
Phase 11 โ Cost Optimization Agent
Goal: Analyze and reduce cloud spending.
Tasks:
- AWS Cost Explorer, Azure Cost Management, GCP Billing API integration
- Idle resource detection, right-sizing, reserved capacity recommendations
Phase 12 โ PyPI Publication and Community Launch
Goal: Publish to PyPI and prepare for open-source community adoption.
Tasks:
- Final QA and integration testing
- Complete documentation (MkDocs or Sphinx)
- Configure hatch / twine for automated publishing
- GitHub Actions: CI on push + PyPI release on tag
- Publish to TestPyPI -> validate -> PyPI
- GitHub Releases with CHANGELOG, community files
๐ Project Structure
autodevops-ai/
โโโ src/
โ โโโ autodevops/
โ โโโ __init__.py
โ โโโ cli.py # Main Typer CLI entry point
โ โโโ config.py # Configuration management
โ โโโ agents/
โ โ โโโ planner.py # Orchestrator Agent
โ โ โโโ scanner.py # Scanner Agent (rule-based)
โ โ โโโ context.py # Context Engine
โ โ โโโ developer.py # Developer Assistant
โ โ โโโ git.py # Git/GitHub Agent
โ โ โโโ cicd.py # CI/CD Generator
โ โ โโโ deployment.py # Deployment Agent
โ โ โโโ troubleshoot.py # Troubleshooting Agent
โ โ โโโ documentation.py # Documentation Agent
โ โ โโโ security.py # Security Agent
โ โ โโโ cost.py # Cost Optimization Agent
โ โโโ providers/
โ โ โโโ base.py # Abstract AI Provider
โ โ โโโ openai_provider.py
โ โ โโโ anthropic_provider.py
โ โ โโโ google_provider.py
โ โ โโโ ollama_provider.py
โ โโโ core/
โ โ โโโ chunker.py # Chunking Engine
โ โ โโโ vector_store.py # FAISS / ChromaDB
โ โ โโโ models.py # Pydantic models
โ โโโ integrations/
โ โ โโโ github.py
โ โ โโโ docker.py
โ โ โโโ kubernetes.py
โ โ โโโ aws.py
โ โ โโโ azure.py
โ โ โโโ gcp.py
โ โโโ templates/
โ โโโ github_actions/
โ โโโ gitlab_ci/
โ โโโ jenkins/
โ โโโ azure_devops/
โ โโโ docs/
โโโ tests/
โ โโโ unit/
โ โโโ integration/
โ โโโ conftest.py
โโโ docs/
โ โโโ architecture.md
โ โโโ getting-started.md
โ โโโ api-reference.md
โโโ pyproject.toml # Package metadata + build config
โโโ README.md
โโโ CHANGELOG.md
โโโ CONTRIBUTING.md
โโโ CODE_OF_CONDUCT.md
โโโ LICENSE
โโโ .github/
โโโ workflows/
โโโ ci.yml # Test on every PR
โโโ publish.yml # Publish to PyPI on tag
๐ค Contributing
Contributions are welcome! Please read CONTRIBUTING.md for guidelines.
git clone https://github.com/yourusername/autodevops-ai.git
pip install -e ".[dev]"
pytest tests/
ruff check src/
๐ License
This project is licensed under the MIT License โ see LICENSE for details.
Built with love to make DevOps intelligent, automated, and accessible to every developer.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file autodevops_ai-0.1.0.tar.gz.
File metadata
- Download URL: autodevops_ai-0.1.0.tar.gz
- Upload date:
- Size: 107.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7d5fdaefa3e359c67b1248e1007b415ee8a8a873e633cad409222fa574d15c4
|
|
| MD5 |
c5142504743660608e0fcda13386f680
|
|
| BLAKE2b-256 |
a4c8d479661018a650a0747e1c0e2e7fd29c8b96cf3d289f0e673c4b24184c55
|
File details
Details for the file autodevops_ai-0.1.0-py3-none-any.whl.
File metadata
- Download URL: autodevops_ai-0.1.0-py3-none-any.whl
- Upload date:
- Size: 116.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
440caed4c37239b34d53ce805ef4821d3b6d29faf72abcc1f23112d5ecdead15
|
|
| MD5 |
71ee71d56ef6679d27a5e44412ed985d
|
|
| BLAKE2b-256 |
142a6b94f049e125a938ab01113331cb3919333b4d4000e0e7023016ec8a17bb
|