Natural Language Kubernetes Management Platform
Transform complex kubectl operations into intuitive conversations with your cluster while maintaining enterprise-grade security and compliance.
KubeChat is an open-source Natural Language Kubernetes Management Platform that bridges the gap between Kubernetes complexity and operational efficiency. Instead of memorizing kubectl commands, simply chat with your cluster:
"Show me all pods with high memory usage in production"
"Scale the payment-service deployment to handle weekend traffic"
"What's causing the API gateway to be unhealthy?"
π― Perfect for: DevOps teams, SREs, and platform engineers who need simplified Kubernetes management without compromising security or compliance standards.
- Chat with your cluster using plain English
- No more memorizing complex kubectl syntax
- Contextual suggestions and intelligent command translation
- Air-gapped deployment with Ollama (runs completely offline)
- Built-in RBAC integration and audit logging
- Zero external API calls required for AI processing
- Complete compliance-ready audit trails
- Beautiful, responsive dashboard with real-time cluster monitoring
- Multi-user collaborative troubleshooting
- Progressive disclosure for beginners to experts
- WebSocket-powered live updates
- Ollama (default) - Local, air-gapped AI processing
- OpenAI - Cloud-powered enhanced capabilities
- Intelligent fallback between providers
- No vendor lock-in
- Kubernetes-native deployment with Helm charts
- Supports all major K8s distributions (EKS, GKE, AKS, OpenShift, Rancher)
- Horizontal scaling and high availability
- Built-in monitoring and observability
The control plane is a single Go binary that embeds the React frontend and exposes REST + SSE endpoints. It shards cleanly into API, streaming, AI-provider, and Kubernetes adapter layers and can run either per cluster or as a hub pointing at multiple kubeconfigs. A Helm chart packages the same binary for in-cluster installs with TLS, persistent volume mounts, and optional ingress.
graph TD
subgraph Browser
UI[React + Tailwind UI<br/>kcAI chat, tables, YAML editor]
end
subgraph Backend Go Service
API[Echo REST API<br/>/api/v1/...]
Stream[SSE/WebSocket Gateway]
Planner[internal/plan<br/>intent β command plan]
MCP[internal/api/prompts<br/>AI SDK MCP client]
K8S[internal/k8s handlers<br/>pods, nodes, port-forward, logs]
Telemetry[Prometheus metrics<br/>structured logging]
end
subgraph Integrations
Ollama[(Ollama / Local LLM)]
OptionalLLM[(OpenAI / Anthropic / Azure)]
Cluster[(Target Kubernetes Clusters)]
end
UI <-->|REST + SSE| API
UI <-->|plan_update, logs, events| Stream
API --> Planner
API --> MCP
Planner --> MCP
MCP --> Ollama
MCP --> OptionalLLM
API --> K8S
Stream --> K8S
K8S --> Cluster
Telemetry --> API
Telemetry --> Cluster
More detail (service boundaries, data flows, and architectural decisions) lives in:
- Architecture Overview
- Architecture Decision Records
- Epic β Architecture Mapping
- Implementation Readiness Report
| Area | Status | Description |
|---|---|---|
| Conversational AI & planning | β | kcAI chat uses the AI SDK MCP transport to Ollama/OpenAI and internal/plan to generate risk-tagged kubectl plans with editable parameters and SSE plan updates. |
| Plan preview & incident context | β | React drawer renders clusters/namespaces, blast radius summaries, recommended diagnostics, and lets operators follow along via real-time plan_update events. |
| Multi-cluster resource explorer | β | Tables and detail panes stream pods, nodes, events, deployments, CRDs, and YAML using the shared SSE server; cluster and kubeconfig context switching is first-class. |
| Streaming diagnostics | β | Built-in log tailing, YAML viewer (Monaco), live events, and port-forwarding handlers surface diagnostics without leaving the UI (/api/v1/.../logs, /portforward). |
| Guardrail foundations | β | Dry-run/apply scaffolding, plan risk annotations, Prometheus metrics, and structured audit logging stubs are implemented; approvals & rollback automation land next. |
| Packaging & deployment | β | Single binary embeds the UI (go:embed backend/routes/static) and Helm chart values support TLS, PVCs, image overrides, and Rancher Desktop/kind workflows. |
These capabilities cover the MVP slice for Epics E1 and E3 in the Epic breakdown and align with functional requirements FR-1, FR-3, and parts of FR-4 in the PRD.
| Epic / FR | Description | Status |
|---|---|---|
| E1 / FR-1 AI-Assisted Command Planning | Natural-language intents β explainable kubectl plan | β MVP shipped (kcAI chat, plan builder, risk annotations); advanced editing/approvals queued |
| E2 / FR-2 Guarded Execution & Approvals | Dry-run enforcement, approvals, RBAC, rollback | π§ Dry-run plumbing & metrics landed; policy evaluation + approval UX next |
| E3 / FR-3 Multi-Cluster Visibility | Aggregated diagnostics, scoped actions | β Core resource explorer, context banner, streamed diagnostics live |
| E4 / FR-4 Streaming Observability | Live logs, rollout status, AI summaries | β SSE-powered logs/events/plan updates in UI; exec session replay forthcoming |
| E5 / FR-5 Audit & Reporting | Tamper-evident audit trails, exports | β³ PostgreSQL-backed audit store & export flow scheduled |
| E6 / FR-6 Packaging & AI Abstraction | Single binary, Helm chart, provider plugins | β Go binary embeds UI, Helm chart + MCP provider abstraction delivered |
| FR-7 Workflow Governance | Guardrailed recipes, post-incident notes | β³ Design underway per docs/stories/ backlog |
For full requirements and design principles, see:
ββββββββββββββββββββββββββ REST + SSE ββββββββββββββββββββββββββ
β React UI (Plan Drawer) β ββββββββββββββββΊβ Go API (internal/api) β
ββββββββββββββββββββββββββ β - PromptController β
β - PlanRepository β
β - Telemetry exposure β
ββββββββββββββ¬ββββββββββββ
βΌ
ββββββββββββββββββββββ
β Plan Builder β
β (internal/plan) β
ββββββββββββββββββββββ
- Backend: Go 1.24 module (
backend/) with Echo router, SSE server, and Prometheus metrics. - Frontend: React + TypeScript + Tailwind drawer rendered within the shell layout (
client/). - Telemetrics: Histogram and structured logging keyed by
request_id. - Persistence: In-memory repository (future stories will wire PostgreSQL per PRD).
# Backend
cd backend
Go env GOWORK=off go mod tidy
Go env GOWORK=off go test ./internal/...
# Frontend
cd ../client
pnpm install
pnpm run lint # Note: legacy warnings remain; see eslint output for backlog items
pnpm run dev # Starts Vite dev server with the React plan drawer
β οΈ Runninggo test ./...in restricted environments may fail when the MCP handler attempts to bind to localhost. Usego test ./internal/...for targeted coverage.
- Need endβtoβend steps (UI build, Docker image, Helm deployment)? See
docs/local-development.md.
backend/ # Go services (API, plan builder, telemetry)
client/ # React application (plan drawer, chat integration)
charts/ # Helm assets (placeholder, upcoming stories)
docs/ # PRD, epics, architecture, and sprint docs
- Fork the repository at github.com/pramodksahoo/kubechat
- Create a feature branch:
git checkout -b feature/plan-editor - Run Go and frontend unit tests relevant to your change
- Submit a pull request referencing the story / acceptance criteria
Please review the code of conduct before contributing.
- Issues & feature requests: GitHub Issues
- Discussions & design questions: GitHub Discussions
- Documentation hub:
docs/
Kubechat aims to make Kubernetes safer and more approachable by combining conversational interfaces with governed execution. The current milestone proves out plan generation; upcoming stories will layer in approvals, audit trails, and packaging aligned with the PRD roadmap.
Key Features:
- π€ Conversational AI & Plan Preview β kcAI chat, risk-tagged kubectl plans, and editable parameters.
- π‘ Live Cluster Diagnostics β streaming tables, YAML viewer, log tailing, and port-forward controls per cluster.
- π Guardrail Foundations β dry-run defaults, risk scoring, Prometheus metrics, and structured audit hooks ready for approvals.
- π§ Pluggable AI Providers β offline-first Ollama with optional OpenAI/Anthropic/Azure connectors via the MCP interface.
- π’ Batteries-Included Packaging β single Go binary embeds the UI; Helm chart supports TLS, storage, and image pinning.
- π PRD-Aligned Roadmap β documented epics, architecture decisions, and UX specifications tracked in
docs/.
Built with β€οΈ for the Kubernetes community
Making Kubernetes accessible through the power of natural language AI while maintaining enterprise-grade security and compliance.