AI-powered DevOps automation CLI โ scan, deploy, diagnose, and document any project.
Project description
๐ค AutoDevOps AI
An AI-powered DevOps automation CLI โ scan, deploy, diagnose, and document any project. Now live on PyPI.
๐ Table of Contents
- Overview
- What's New in v0.1.0
- Features
- Architecture
- Tech Stack
- Installation
- Initial Configuration
- CLI Commands
- Interactive Shell (REPL)
- Project Structure
- Phase-wise Roadmap
- Contributing
- License
๐ Overview
AutoDevOps AI is an intelligent, multi-agent DevOps automation platform distributed as a global Python CLI. It scans your project, understands your tech stack, and autonomously:
- ๐ Scans your repository to detect languages, frameworks, databases, and infrastructure
- ๐ง Plans deployment strategies using AI (multi-agent Planner)
- ๐ Integrates deeply with GitHub (auth, repos, commits, PRs, secrets, releases)
- ๐ Deploys to local environments, AWS, Azure, and GCP
- ๐ง Diagnoses CI/CD and deployment failures with root-cause AI analysis
- ๐ Generates full documentation, runbooks, and API docs
- ๐ก๏ธ Secures pipelines with secret detection and dependency scanning
- ๐ฐ Optimizes cloud costs with actionable recommendations
- ๐ฉบ Doctor mode scores your project across 5 health dimensions
- ๐บ๏ธ Roadmap mode generates a prioritized improvement plan
๐ What's New in v0.1.1
- โ
Published to PyPI โ
pip install autodevops-aiworks globally - โ Interactive REPL Shell โ Claude/Gemini-style shell with slash commands, tab-completion, and persistent history
- โ
autodevops doctorโ project health scoring across Code, Security, Tests, Docs, and Deployment Readiness - โ
autodevops roadmapโ AI-generated step-by-step improvement roadmap with time estimates - โ
autodevops undoโ restore files from the last backup session - โ
autodevops runโ multi-agent planner for high-level natural-language goals - โ
autodevops securityโ full secret detection, dependency scanning,.envauditing - โ
autodevops costโ cloud cost analysis and optimization recommendations - โ
GitHub sub-commands โ
commit,push,pull,pr,branch,release,review-pr,git-status,secrets - โ
Generate sub-commands โ
pipeline,dockerfile,code - โ AI Providers โ OpenAI, Anthropic, Google Gemini, Ollama (local) with exponential-backoff retry
- โ Core Engine โ Chunker, Context, Memory, Streaming, Audit, Backup, Next-Actions
โจ Features
| Feature | Description |
|---|---|
| ๐ Project Scanner | Detects languages, frameworks, Docker, K8s, Terraform, DBs, CI/CD, 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 |
| ๐ฌ AI Memory | Maintains conversational context across shell session turns |
| ๐ GitHub Integration | Full GitHub automation: auth, repos, branches, commits, PRs, secrets, releases, reviews |
| ๐ค AI Developer Assistant | Ask, explain, generate, refactor, and review code via CLI |
| ๐ Smart Commit Generator | AI-generated commit messages, PR titles/descriptions, branch names, release notes |
| โ๏ธ CI/CD Generator | Generate pipelines for GitHub Actions, GitLab CI, Jenkins, Azure DevOps, CircleCI, Bitbucket |
| ๐ฅ๏ธ 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 and .env file checks |
| ๐ฐ Cost Optimizer | Analyze and reduce AWS, Azure, and GCP resource costs |
| ๐ฉบ Doctor | Health score report across Code Quality, Security, Testing, Docs, Deployment Readiness |
| ๐บ๏ธ Roadmap | Prioritized, actionable improvement roadmap with commands and time estimates |
| โฉ๏ธ Undo | Rollback any AutoDevOps-generated file change via backup sessions |
| ๐ฅ๏ธ Interactive REPL Shell | Persistent shell with slash commands, tab-completion, and AI chat |
๐๏ธ Architecture
AutoDevOps AI follows a Multi-Agent Architecture where each agent has a clear responsibility:
+โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ+
โ AutoDevOps CLI โ
โ (Typer-based, global `autodevops` command) โ
โ + Interactive REPL Shell (slash commands) โ
+โโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ+
โ
โโโโโโโโโโโโโผโโโโโโโโโโโโ
โ Planner Agent โ
โ (Multi-agent router) โ
โโโโโโโโโโโโโฌโโโโโโโโโโโโ
โ
โโโโโโโโโโโโฌโโโโโโโโโโโโผโโโโโโโโโโโโฌโโโโโโโโโโโ
โ โ โ โ โ
โโโโโผโโโโ โโโโโผโโโโ โโโโโโโผโโโโโ โโโโโผโโโโ โโโโโผโโโโโ
โScannerโ โContextโ โDeveloper โ โ Git โ โCI/CD โ
โ Agent โ โEngine โ โ Agent โ โ Agent โ โ Agent โ
โโโโโโโโโ โโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโ โโโโโโโโโโ
โ โ โ โ โ
โโโโโผโโโโ โโโโโผโโโโ โโโโโโโผโโโโโ โโโโโผโโโโ โโโโโผโโโโโ
โDeploy โ โTroubleโ โ Doc โ โSecuritโ โ Cost โ
โ Agent โ โ-shoot โ โ Agent โ โ y โ โ Agent โ
โโโโโโโโโ โโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโ โโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโ
โ Core Engine โ
โ Chunker ยท Context ยท Memory โ
โ Streaming ยท Audit ยท Backup โ
โ NextActions ยท Models โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Agent Responsibilities
| Agent | Responsibility |
|---|---|
| Planner Agent | Orchestrates task decomposition, intent classification, and agent delegation |
| Scanner Agent | Rule-based project scanning โ detects stack, infra, CI/CD, cloud SDKs (no AI) |
| Context Engine | Builds and optimizes AI context from scan results + chunked files |
| Developer Agent | Code generation, explanation, refactoring, review |
| Git Agent | Full GitHub API operations via PyGithub + gitpython |
| CI/CD Agent | Jinja2-based pipeline generation for 6 platforms |
| Deployment Agent | Local (native/Docker/Minikube) and cloud (AWS/Azure/GCP) automation |
| Documentation Agent | Generates README, architecture docs, API docs, runbooks |
| Troubleshooting Agent | Root-cause analysis and fix generation from logs |
| Security Agent | Secret detection, dependency scanning, pipeline and env file checks |
| Cost Optimization Agent | Cloud cost analysis (AWS/Azure/GCP) and right-sizing recommendations |
๐ ๏ธ Tech Stack
| Category | Libraries |
|---|---|
| CLI Framework | typer, rich |
| Interactive Shell | prompt_toolkit (REPL with autocomplete + history) |
| Data Validation | pydantic, pydantic-settings |
| AI / LLM | openai, anthropic, google-generativeai + Ollama (local) |
| Git / GitHub | gitpython, PyGithub |
| Containers | docker (Docker SDK) |
| Cloud (Optional) | boto3 (AWS), azure-mgmt-* + azure-identity, google-cloud-run |
| Kubernetes (Optional) | kubernetes |
| Templating | jinja2 (CI/CD pipeline templates) |
| Storage | tinydb (project memory/history) |
| HTTP | httpx, requests |
| File Analysis | pathspec |
| Token Counting | tiktoken |
| Secret Storage | keyring (OS keychain) |
| Config | python-dotenv |
| Testing | pytest, pytest-cov, pytest-asyncio |
| Packaging | setuptools, build, twine |
๐ฆ Installation
# Install globally from PyPI
pip install autodevops-ai
# Verify installation
autodevops --version
# Run the first-time setup wizard
autodevops setup
# Initialize in your project
autodevops init
โ๏ธ Initial Configuration
After installing, run the setup wizard or configure manually:
1. First-Time Setup Wizard (Recommended)
autodevops setup
Interactive wizard that configures AI provider keys, GitHub authentication, and project settings in one guided flow.
2. Set AI Provider API Key Manually
# 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
# Local Ollama (no API key needed)
autodevops config set default_provider ollama
autodevops config set ollama_model llama3
3. Connect GitHub
autodevops github connect
# Prompts for your GitHub Personal Access Token (PAT)
# Required scopes: repo, workflow, admin:repo_hook
๐ป CLI Commands
Core Commands
autodevops # Launch the interactive REPL shell (default)
autodevops setup # First-time setup wizard
autodevops init [--name <n>] # Initialize AutoDevOps in current project
autodevops scan [--output table|json|file] [--save] # Scan project stack
autodevops ask "<question>" # Ask AI about your project
autodevops explain [architecture|code|deployment] # Explain project via AI
autodevops diagnose # AI root-cause analysis of failures
autodevops docs [--type all|readme|api|runbook|architecture|deployment] # Generate docs
autodevops config <show|set|reset> [key] [value] # Manage configuration
autodevops status [--env local|aws|azure|gcp|all] # Check deployment status
autodevops doctor # Project health score report
autodevops roadmap # AI-generated improvement roadmap
autodevops security [--checks all|secrets|dependencies|pipeline|env_files] # Security scan
autodevops cost [--cloud aws|azure|gcp|all] [--days 30] # Cloud cost analysis
autodevops run "<goal>" # Multi-agent planner for natural-language goals
autodevops undo # Restore files from last backup session
autodevops shell # Explicitly launch interactive shell
autodevops --version # Show version
GitHub Sub-Commands
autodevops github connect [--token <pat>] # Connect to GitHub
autodevops github status # Enhanced git status + AI tip
autodevops github commit [-m "<msg>"] [--no-push] [-b <branch>] # AI smart commit
autodevops github push [-b <branch>] [--force] [-u] # Push to remote
autodevops github pull [-b <branch>] [--rebase] # Pull from remote
autodevops github pr [--title "<t>"] [--base main] [--draft] # Create pull request
autodevops github branch [description] # AI branch name generator
autodevops github secrets <list|set|delete> [name] [value] # Manage GitHub secrets
autodevops github release [--tag v1.2.0] # AI release notes + CHANGELOG
autodevops github review-pr [<number>] # AI code review of a PR
Deploy Sub-Commands
autodevops deploy local [--env development] [--docker] # Deploy locally
autodevops deploy [--cloud aws|azure|gcp] [--service <svc>] [--dry-run] # Cloud deploy
Generate Sub-Commands
autodevops generate pipeline [--platform github-actions|gitlab|jenkins|azure-devops|circleci|bitbucket]
autodevops generate dockerfile
autodevops generate code "<description>" [--lang <language>] [-o <output>]
autodevops run Examples (Multi-Agent Planner)
autodevops run "deploy my FastAPI app to AWS ECS"
autodevops run "generate a GitHub Actions pipeline and create a PR"
autodevops run "scan project, fix security issues, and generate documentation"
autodevops run "create a release v1.0.0 with changelog" --dry-run
๐ฅ๏ธ Interactive Shell (REPL)
Run autodevops (no arguments) or autodevops shell to enter the interactive REPL โ a Claude CLI/Gemini CLI-style session.
Features:
- Slash command execution with tab-completion
- Persistent command history across sessions (
~/.autodevops/shell_history) - Plain text โ streamed AI answer with full project context
- AI session memory (multi-turn conversation within the session)
- Arrow key history navigation
Ctrl+Ccancels the current line (does NOT exit)Ctrl+Dor/exitexits cleanly
Available slash commands:
| Command | Description |
|---|---|
/help |
Show all available commands |
/init |
Initialize AutoDevOps in this project |
/scan |
Scan project stack |
/doctor |
Project health score report |
/roadmap |
Generate improvement roadmap |
/undo |
Restore files from last backup |
/ask <question> |
Ask AI (same as plain text) |
/commit |
AI smart commit + push |
/push |
Push to remote |
/pull |
Pull from remote |
/pr |
Create a pull request |
/branch [description] |
AI branch name generator |
/release [--tag v1.0.0] |
AI release notes + CHANGELOG |
/review-pr [number] |
AI code review of a PR |
/git-status |
Enhanced git status with AI recommendation |
/secrets |
Manage GitHub secrets |
/security |
Run security scan |
/docs |
Generate documentation |
/deploy |
Deploy project |
/diagnose |
Diagnose failures |
/cost |
Analyze cloud costs |
/generate |
Generate files (pipeline, dockerfile, code) |
/run <goal> |
Multi-agent planner goal |
/connect |
Connect to GitHub |
/status |
Check deployment status |
/config |
Manage configuration |
/history |
Show recent shell history |
/session clear |
Clear AI conversation session |
/clear |
Clear the screen |
/exit or /quit |
Exit the AutoDevOps shell |
๐ Project Structure
autodevops-ai/
โโโ src/
โ โโโ autodevops/
โ โโโ __init__.py # Package version (0.1.0)
โ โโโ cli.py # Main Typer CLI entry point (578 lines)
โ โโโ config.py # ConfigManager โ keys, keychain, dotenv
โ โโโ agents/
โ โ โโโ planner.py # Multi-agent orchestrator + intent classifier
โ โ โโโ scanner.py # Rule-based project scanner (29 KB)
โ โ โโโ cicd.py # CI/CD pipeline generator
โ โ โโโ deployment.py # Local + cloud deployment agent
โ โ โโโ documentation.py # Documentation generator agent
โ โ โโโ troubleshoot.py # Root-cause analysis agent
โ โ โโโ security.py # Security scanning agent (22 KB)
โ โ โโโ cost.py # Cloud cost analysis agent
โ โโโ commands/
โ โ โโโ ask.py # `autodevops ask` handler
โ โ โโโ config.py # `autodevops config` handler
โ โ โโโ deploy.py # `autodevops deploy` handler
โ โ โโโ diagnose.py # `autodevops diagnose` handler
โ โ โโโ docs.py # `autodevops docs` handler
โ โ โโโ doctor.py # `autodevops doctor` health check
โ โ โโโ explain.py # `autodevops explain` handler
โ โ โโโ generate.py # `autodevops generate` handler
โ โ โโโ github.py # GitHub sub-command handlers
โ โ โโโ handlers.py # Shared command handler utilities
โ โ โโโ init.py # `autodevops init` handler
โ โ โโโ roadmap.py # `autodevops roadmap` handler
โ โ โโโ scan.py # `autodevops scan` handler
โ โ โโโ setup.py # `autodevops setup` wizard
โ โ โโโ status.py # `autodevops status` handler
โ โ โโโ undo.py # `autodevops undo` handler
โ โโโ core/
โ โ โโโ chunker.py # LLM-safe file chunking engine
โ โ โโโ context.py # Context building + token budget management
โ โ โโโ memory.py # AI conversation memory (TinyDB)
โ โ โโโ models.py # Pydantic data models
โ โ โโโ next_actions.py # Next-action recommendation engine
โ โ โโโ repl.py # Interactive REPL shell (734 lines)
โ โ โโโ streaming.py # Streaming AI response helper
โ โ โโโ audit.py # Operation audit trail
โ โ โโโ backup.py # File backup + restore for undo
โ โโโ providers/
โ โ โโโ base.py # Unified AI provider (OpenAI/Anthropic/Gemini/Ollama)
โ โโโ integrations/
โ โ โโโ github.py # Deep GitHub integration (45 KB, PyGithub + gitpython)
โ โโโ templates/
โ โโโ github_actions/ # GitHub Actions pipeline templates
โ โโโ gitlab_ci/ # GitLab CI templates
โ โโโ jenkins/ # Jenkinsfile templates
โ โโโ azure_devops/ # Azure Pipelines templates
โ โโโ circleci/ # CircleCI config templates
โ โโโ bitbucket/ # Bitbucket Pipelines templates
โ โโโ docs/ # Documentation templates
โโโ tests/
โ โโโ unit/
โ โ โโโ test_scanner.py
โ โ โโโ test_chunker.py
โ โ โโโ test_planner.py
โ โ โโโ test_security.py
โ โโโ integration/ # (planned)
โ โโโ conftest.py
โโโ docs/ # (planned โ MkDocs)
โโโ pyproject.toml # Package metadata + build config
โโโ README.md
โโโ USER_GUIDE.md # Detailed user guide
๐ค Contributing
Contributions are welcome! Please read CONTRIBUTING.md for guidelines.
git clone https://github.com/akashhugar2015/AutoDevOps_AI.git
cd AutoDevOps_AI
pip install -e ".[dev]"
pytest tests/
ruff check src/
๐ License
This project is licensed under the MIT License โ see LICENSE for details.
Built with โค๏ธ 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.1.tar.gz.
File metadata
- Download URL: autodevops_ai-0.1.1.tar.gz
- Upload date:
- Size: 109.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8295e2e76749b9ab5d3c7dac30487b246b031c7733895f780efd56c78528673
|
|
| MD5 |
d5965ac12f57428588515422d303150c
|
|
| BLAKE2b-256 |
e88879a19a5aacdaf772fb84667e32d51ec31bdcfa1723231d6d3bf3588a0868
|
File details
Details for the file autodevops_ai-0.1.1-py3-none-any.whl.
File metadata
- Download URL: autodevops_ai-0.1.1-py3-none-any.whl
- Upload date:
- Size: 118.3 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 |
81749c5109be83c3dd7262701d743b003a3c0a84dbbe0eb97fdf1cc752ef048a
|
|
| MD5 |
f911fe9ef4b42a5baa5f8c7baa95144f
|
|
| BLAKE2b-256 |
b0fe24f3a2014d36dfcd3450d07c5cefc66c44617c20e04e77c3af7b9b662c6a
|