Open-source AI CLI to control Kubernetes with natural language.
Describe what you want — deploy, scale, rollback, inspect, or explain — and kprompt turns it into a plan you can review before anything touches the cluster.
curl -fsSL https://kprompt.ai/install | bash🌐 Website · 📦 CLI · 🚀 Releases · 📖 Usage
kprompt "list deployments" # 👀 inspect
kprompt "show pods" -n default # 📋 read-only
kprompt "deploy redis" # 🧩 plan first
kprompt "deploy nginx" --approve # ✅ apply
kprompt "scale api to 10" # 📈 plan
kprompt "scale api to 10" --approve # ⚡ apply
kprompt "rollback payment-api" --approve # ⏪ undo
kprompt "explain why payment-api is crashing" # 🔍 debug💡 Reads run immediately. Mutations show a plan first, then ask
y/Non a TTY — or pass--approve.
🗣️ Prompt → 🧠 Intent → 📝 Plan → 🛡️ Safety → ✅ Approval → ⚙️ Executor → ⎈ Kubernetes
| Step | What happens |
|---|---|
| 1️⃣ Prompt | Describe the change in plain English |
| 2️⃣ Plan | Intent is parsed into concrete cluster actions |
| 3️⃣ Safety | Wipe / delete-everything style prompts are hard-denied |
| 4️⃣ Apply | Review, then execute against your live kubeconfig |
Same kubeconfig as kubectl. No separate agent or control plane to install. 🎯
| Capability | Status | |
|---|---|---|
| 🧩 | Deploy (redis / nginx shortcuts) | Plan → safety → apply |
| 📈 | Scale | Plan → safety → apply |
| ⏪ | Rollback | Plan → safety → apply |
| 👀 | Get / list (pods, deployments, services) | Read-only |
| 🔍 | Explain-lite (status + events) | Read-only |
| ⚙️ | kprompt config show / set |
~/.kprompt/config.yaml |
| 🤖 | Multi-LLM providers | OpenAI, Anthropic, Gemini, Groq, Ollama… |
| ✅ | Interactive approval | TTY y/N, or --approve |
Apache-2.0 licensed · Kind E2E under go test -tags=e2e
curl -fsSL https://kprompt.ai/install | bash
# fallback 🛟
curl -fsSL https://cdn.jsdelivr.net/gh/kprompt/kprompt@v0.2.0/install/install.sh | bashPoint kubeconfig at a cluster (~/.kube/config or KUBECONFIG).
export KPROMPT_OPENAI_API_KEY=sk-... # openai (default)
export KPROMPT_ANTHROPIC_API_KEY=sk-ant-... # anthropic
export KPROMPT_GEMINI_API_KEY=... # gemini
export KPROMPT_GROQ_API_KEY=... # groq
# local 🦙: kprompt --provider ollama --model llama3.2 "..."kprompt config set provider gemini
kprompt config set model gemini-2.0-flash
kprompt config set namespace default
kprompt config🔐 API keys stay in your environment — never written to
config.yaml.
kprompt "list deployments"
kprompt "deploy redis"| ❌ Traditional Kubernetes | ✅ With kprompt |
|---|---|
| Write YAML & memorize kubectl flags | Describe what you want |
| Copy manifests & hunt docs | AI plans the change |
| Manual debugging loops | Explain from live status + events |
| Apply first, hope later | Review plan, then approve |
| Repo | Role | |
|---|---|---|
| 🖥️ | kprompt | CLI product — Go, Apache-2.0 |
| 🌐 | kprompt-website | Product site + /install endpoint |
