DevOps AI Toolkit discovers your cluster's capabilities and uses AI to recommend the optimal way to deploy your applications. Works with any Kubernetes cluster, from basic setups to clusters with advanced operators like Crossplane or ArgoCD.
- Developers: Deploy applications without needing deep Kubernetes expertise
- AI Agents: Integrate with Claude Code, Cursor, or VS Code for conversational deployments
- Platform Engineers: (Coming Soon) Governance, policy enforcement, and organizational compliance features
π Smart Discovery: Automatically finds all available resources and operators in your cluster
π€ AI Recommendations: Get deployment suggestions tailored to your specific cluster setup
β‘ Two Usage Modes: Use directly via CLI or integrate with AI development tools
π§ Operator-Aware: Leverages custom operators and CRDs when available
π Complete Workflow: From discovery to deployment with automated Kubernetes integration
- Node.js 18+ and kubectl configured with cluster access
- Claude API key (required for AI recommendations)
For CLI usage:
# Install globally for command-line usage
npm install -g @vfarcic/dot-ai
# Required: Set up Claude API key
export ANTHROPIC_API_KEY=your_api_key_here
# Verify installation
dot-ai --versionFor MCP/AI Agent usage: No installation needed - uses npx automatically
Perfect for conversational deployments with AI agents:
- Create
.mcp.jsonin your project:
{
"mcpServers": {
"dot-ai": {
"command": "npx",
"args": ["-y", "--package=@vfarcic/dot-ai@latest", "dot-ai-mcp"],
"env": {
"ANTHROPIC_API_KEY": "your_key_here",
"DOT_AI_SESSION_DIR": "./tmp/sessions",
"KUBECONFIG": "./configs/my-cluster.yaml"
}
}
}
}Environment Variables:
ANTHROPIC_API_KEY: Required for AI recommendationsDOT_AI_SESSION_DIR: Required session directory (supports relative paths)KUBECONFIG: Optional kubeconfig path (supports relative paths, defaults to~/.kube/config)
- Start Claude Code with MCP enabled:
# Create session directory (relative to dot-ai cwd)
mkdir -p tmp/sessions
claude- Use conversational workflow:
Example conversation with AI agent:
User: I want to deploy a web application to my cluster
Agent: I'll help you deploy a web application. Let me get recommendations based on your cluster.
[Uses recommend tool]
Agent: I found 3 options. Let's use Kubernetes Deployment + Service.
What's your application name and container image?
User: App name is "myapp" and image is "nginx:latest"
Agent: Perfect! Generating manifests and deploying now...
[Uses chooseSolution, answerQuestion, generateManifests, deployManifests]
Agent: β
Successfully deployed! Your application is running.
π Complete MCP Setup Guide β - Detailed configuration, troubleshooting, and examples
For scripting and direct usage (requires global installation):
# 0. Create session directory (required)
mkdir -p tmp/sessions
# 1. Get AI recommendations (includes cluster discovery)
dot-ai recommend --intent "deploy a web application" --session-dir tmp/sessions
# 2. Choose a solution
dot-ai choose-solution --solution-id sol_xxx --session-dir tmp/sessions
# 3. Configure step-by-step (all stages required)
dot-ai answer-question --solution-id sol_xxx --stage required --answers {...} --session-dir tmp/sessions
dot-ai answer-question --solution-id sol_xxx --stage basic --answers {} --session-dir tmp/sessions
dot-ai answer-question --solution-id sol_xxx --stage advanced --answers {} --session-dir tmp/sessions
dot-ai answer-question --solution-id sol_xxx --stage open --answers {"open":"N/A"} --session-dir tmp/sessions
# 4. Generate manifests
dot-ai generate-manifests --solution-id sol_xxx --session-dir tmp/sessions
# 5. Deploy to cluster
dot-ai deploy-manifests --solution-id sol_xxx --session-dir tmp/sessionsπ Complete CLI Guide β - Detailed command-line interface documentation
Package not found:
# If you get "package not found" errors:
npm cache clean --force
npm install -g @vfarcic/dot-aiPermission errors on global install:
# Use npm's recommended approach for global packages:
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
npm install -g @vfarcic/dot-ai"dot-ai: command not found":
- Ensure global installation:
npm install -g @vfarcic/dot-ai - Check PATH includes npm global bin:
npm config get prefix - Verify installation:
npm list -g @vfarcic/dot-ai
MCP server won't start:
- Verify environment variables are set in
.mcp.json - Check session directory exists and is writable
- Ensure
ANTHROPIC_API_KEYis valid
"No active cluster" errors:
- Verify kubectl connectivity:
kubectl cluster-info - Check KUBECONFIG path in environment variables
- Test cluster access:
kubectl get nodes
- CLI Guide - Complete command-line usage and examples
- MCP Integration Guide - AI tools integration (Claude Code, Cursor)
- API Reference - TypeScript interfaces and programmatic usage
- Development Guide - Contributing, setup, and testing
- Design Overview - Technical design and principles
- Stage-Based API - Workflow stages and API design
- Discovery Engine - Cluster resource discovery
- Error Handling - Error management and debugging
- Function Registration - Tool and function management
- Context & Background - Project context and inspiration
- Next Steps & Roadmap - Planned features and future vision
Quick Navigation:
- New to DevOps AI Toolkit? β Start with CLI Guide or MCP Guide
- Building integrations? β See API Reference
- Contributing code? β Read Development Guide
- Understanding architecture? β Check Design Overview
- Issues: GitHub Issues
We welcome contributions! See the Development Guide for details on:
- Setting up the development environment
- Running tests
- Code style and conventions
- Submitting pull requests
MIT License - see LICENSE file for details.
DevOps AI Toolkit - Making Kubernetes deployment intelligent and accessible for everyone.