Skip to main content

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.

Python License PyPI Status


๐Ÿ“– Table of Contents


๐ŸŒŸ 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:

  1. Ensure Ollama is running on your machine or any host on your local network (defaults to port 11434).
  2. 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 hatch or setuptools
  • Create pyproject.toml with proper metadata
  • Define package name: autodevops-ai
  • Set up src/autodevops/ package layout
  • Create entry point: autodevops command
  • Add README.md, LICENSE (MIT), CHANGELOG.md
  • Set up .gitignore, .editorconfig
  • Set up pytest with tests/ directory
  • Configure GitHub Actions for CI (lint + test + publish)
  • Create CONTRIBUTING.md and CODE_OF_CONDUCT.md

Deliverables:

  • Working pip install -e . local install
  • autodevops --help outputs 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 ScannerAgent class
  • 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

autodevops_ai-0.1.0.tar.gz (107.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

autodevops_ai-0.1.0-py3-none-any.whl (116.5 kB view details)

Uploaded Python 3

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

Hashes for autodevops_ai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a7d5fdaefa3e359c67b1248e1007b415ee8a8a873e633cad409222fa574d15c4
MD5 c5142504743660608e0fcda13386f680
BLAKE2b-256 a4c8d479661018a650a0747e1c0e2e7fd29c8b96cf3d289f0e673c4b24184c55

See more details on using hashes here.

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

Hashes for autodevops_ai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 440caed4c37239b34d53ce805ef4821d3b6d29faf72abcc1f23112d5ecdead15
MD5 71ee71d56ef6679d27a5e44412ed985d
BLAKE2b-256 142a6b94f049e125a938ab01113331cb3919333b4d4000e0e7023016ec8a17bb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page