Skip to content
@kprompt

kprompt

Talk to Your Cluster.
kprompt — Talk to Your Cluster
kprompt logo

kprompt

💬 Talk to Your Cluster.

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.

Release License: Apache-2.0 Go Website


curl -fsSL https://kprompt.ai/install | bash

🌐 Website · 📦 CLI · 🚀 Releases · 📖 Usage


✨ What you can say

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/N on a TTY — or pass --approve.


⚙️ How it works

🗣️ 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. 🎯


🚀 What’s in v0.2

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


🏁 Quick start

1️⃣ Install

curl -fsSL https://kprompt.ai/install | bash
# fallback 🛟
curl -fsSL https://cdn.jsdelivr.net/gh/kprompt/kprompt@v0.2.0/install/install.sh | bash

2️⃣ Connect your cluster ☸️

Point kubeconfig at a cluster (~/.kube/config or KUBECONFIG).

3️⃣ Set an LLM API key 🔑

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 "..."

4️⃣ Optional defaults 💾

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.

5️⃣ Run a prompt 🎉

kprompt "list deployments"
kprompt "deploy redis"

💡 Why kprompt

❌ 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

📚 Repositories

Repo Role
🖥️ kprompt CLI product — Go, Apache-2.0
🌐 kprompt-website Product site + /install endpoint

kprompt logo mark


🔗 Links

Website · CLI docs · Providers · v0.2.0 · Issues

⭐ Star the CLI · 🛠️ PRs welcome · 💬 Talk to Your Cluster.

Popular repositories Loading

  1. kprompt kprompt Public

    Open-source AI CLI to control Kubernetes with natural language

    Go 25

  2. kprompt-website kprompt-website Public

    TypeScript 2

  3. .github .github Public

    Organization profile for github.com/kprompt

    2

  4. homebrew-tap homebrew-tap Public

    Homebrew tap for kprompt CLI

    Ruby 1

  5. kprompt-dash kprompt-dash Public

    Simple localhost read-only Kubernetes inventory for kprompt (not a Lens clone)

    Go 1

Repositories

Showing 5 of 5 repositories

Top languages

Loading…

Most used topics

Loading…