⚠️ BETA NOTICE: This project is currently in beta. Do not use in production environments. Breaking changes may occur without notice. Use at your own risk.
OpsAgents is a production-ready suite of 10 intelligent AI agents (5 Cloud + 5 DevOps) built with LangGraph and Python. It provides cloud and DevOps engineers with automated assistance for daily tasks under a Human-in-the-Loop model.
It runs locally as a command-line interface (CLI) or integrates directly into coding agents (such as Claude Code, Cursor, Antigravity, Codex, or OpenCode) via the Model Context Protocol (MCP).
- Infrastructure Provisioner: Generates, validates, and provisions Terraform/CloudFormation templates.
- Security & Compliance: Scans S3 bucket properties, EC2 security groups, IAM policy definitions, and CIS controls.
- Cost Optimizer: Audits unused EC2 resources, rightsizes configurations, and optimizes cost structures.
- Incident Response: Diagnoses active CloudWatch metric/log alerts and runs auto-remediations.
- Architecture Review: Discovers inventory configurations, audits reliability metrics, and generates Mermaid architectural layouts.
- CI/CD Pipeline: Audits repository language setups and structures optimized pipeline workflows.
- Kubernetes Operations: Checks cluster statuses, logs, scales replicas, and troubleshoots failing pods.
- Monitoring & Observability: Configures Prometheus alert rules, Alertmanager routing, and Grafana dashboards.
- GitOps & Release: Configures ArgoCD Application CRDs, Canary rollout sequences, and semver tag bumps.
- Container & Image Security: Runs Trivy image vulnerability assessments, scans lockfiles, and audits Dockerfile security.
-
Clone the repository:
git clone https://github.com/opsagents/opsagents.git cd opsagents -
Create virtual environment and install package dependencies:
python3 -m venv .venv source .venv/bin/activate pip install -e ".[dev]"
-
Configure environment credentials:
cp .env.example .env # Edit .env with your LLM provider keys and AWS credentials
# Run Infrastructure Provisioner
opsagents infra "Create a VPC with public and private subnets in us-east-1"
# Run Kubernetes Operations
opsagents k8s "Troubleshoot pod backend-service-abcd in namespace default"
# Run Security & Compliance
opsagents security "Scan all security groups for public SSH access"Start the MCP server to connect with Cursor, Claude Code, etc.:
opsagents mcpRefer to the MCP Integration Guide to register tools in your IDE settings.
Convenient lifecycle commands are provided via the Makefile:
# Run style and format checks
make lint
make format-check
# Run static type checks
make typecheck
# Run test suite
make testLicensed under the Apache License, Version 2.0.