AI-powered CLI tool for building, maintaining, and troubleshooting Kubernetes and OpenShift clusters
npm install @cluster-code/cluster-code  [![Cluster Code]](https://github.com/kcns008/cluster-code)
[Cluster Code]: https://img.shields.io/badge/Cluster%20Code-v1.0.0-brightgreen.svg?style=flat-square
AI-powered CLI tool for Kubernetes and OpenShift cluster management with intelligent diagnostics, multi-cloud support, and GitOps workflows.
``sh`
npm install -g cluster-code
`shOption 1: Auto-detect from Claude Code (if ~/.claude/settings.json exists)
cluster-code will automatically use your Claude API key
$3
`sh
cluster-code init
cluster-code
`That's it! Start chatting with your cluster in plain English.
✨ Key Features
- 💬 Natural Language Interface - Control your cluster using plain English
- 🔍 AI-Powered Diagnostics - Intelligent troubleshooting with K8sGPT
- ☁️ Multi-Cloud Support - AWS EKS, Azure AKS/ARO, GCP GKE
- 🚀 GitOps Ready - Helm, Kustomize, ArgoCD, Flux integration
- 🔒 Local LLM Support - Use Ollama for complete data privacy
- 🎯 OpenShift Native - Routes, Operators, BuildConfigs support
- 🤖 RL-Based Management - Optional PufferLib integration for training AI agents
📚 Documentation
- Installation Guide - Detailed setup instructions
- LLM Provider Setup - Configure Anthropic, OpenAI, Google, or local models
- Getting Started - First steps and tutorials
- PufferLib RL Guide - Reinforcement learning for cluster management
- API Reference - Complete command reference
💡 Usage Examples
$3
`bash
$ cluster-codeYou: Show me all pods that are failing
You: Why is my deployment crashing?
You: Scale my app to 5 replicas
`$3
`bash
Run cluster diagnostics
cluster-code diagnoseAnalyze specific resources
cluster-code analyze pod my-podDeploy with Helm
cluster-code helm-deploy --chart ./my-chart --release my-appCreate cloud cluster
cluster-code azure-cluster-create --type aks --name prod-aks
`$3
Train AI agents to automatically manage your cluster using PufferLib:
`bash
Set up RL environment (optional during init)
cluster-code rl setupTrain an agent
cluster-code rl train --episodes 500Run RL-based diagnostics
cluster-code rl diagnose
``See the PufferLib RL Guide for details.
- cluster-core - Core Kubernetes operations
- k8sgpt-analyzers - AI-powered diagnostics
- cluster-openshift - OpenShift-specific features
- cloud-providers - Multi-cloud provisioning
- gitops - Deployment automation
We welcome contributions! Check out our contributing guide to get started.
MIT License - see LICENSE for details
- Documentation
- GitHub Issues
- Changelog
---
Ready to get started? Install cluster-code and check out our Quick Start Guide →