AI-powered Kubernetes management — local server and CLI
Project description
KubeIntellect V2
AI-powered Kubernetes management. Natural-language interface to diagnose faults, query cluster state, and execute remediation — with human approval gating all destructive actions.
Quickstart
Fastest — pip install (no repo clone needed)
pip install kubeintellect
pipx install kube-q # or: pip install kube-q
kubeintellect init # interactive wizard: LLM, database, kubeconfig
kubeintellect serve # auto-detects database; starts on http://localhost:8000
kubeintellect serve handles the database automatically:
- Postgres running locally → uses it
- Docker available, no Postgres → offers to start a container
- No Docker → falls back to SQLite (no extra setup needed)
Connect:
KUBE_Q_API_KEY=<admin-key> kq --url http://localhost:8000
If
kubeintellect/kqare not found after install, add~/.local/binto PATH:echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc && source ~/.bashrc
Other deployment options
| Option | When to use |
|---|---|
| Docker Compose | Laptop, no K8s cluster, full stack via Docker |
| Kind cluster | Local K8s dev with monitoring + Langfuse |
| Cloud / VM (Helm) | Production, AKS, or company cluster |
Full guide: docs/quickstart.md
Architecture
kq (CLI) ──► KubeIntellect API (FastAPI + LangGraph)
│
├── Coordinator (GPT-4o)
│ ├── simple query → direct tool use → answer
│ └── complex fault → fan-out to 4 parallel subagents
│ ├── Pod subagent (kubectl)
│ ├── Metrics subagent (Prometheus / PromQL)
│ ├── Logs subagent (Loki / LogQL)
│ └── Events subagent (kubectl events)
│
├── HITL gate — destructive ops pause for approval
└── Role check — admin / operator / readonly enforced
Checkpointing: conversation state persists to PostgreSQL (production) or SQLite (local).
Authentication
Optional — if no keys are set, all requests are accepted.
# ~/.kubeintellect/.env (written by kubeintellect init)
KUBEINTELLECT_ADMIN_KEYS=ki-admin-abc123
KUBEINTELLECT_OPERATOR_KEYS=ki-op-def456
KUBEINTELLECT_READONLY_KEYS=ki-ro-xyz789
Generate keys: openssl rand -hex 20
Repo layout
app/ # core Python source (shared by all deployments)
deploy/
docker-compose/ # monitoring configs (prometheus.yml, loki-config.yml, grafana)
helm/
kubeintellect/ # Helm chart + values for all environments
langfuse/ # Langfuse LLM tracing chart
kind/ # Kind cluster configs
docker-compose.yaml # laptop deployment entry point
scripts/
kind/create-kind-cluster.sh
vm/setup-nginx.sh, setup-tls.sh
tests/
docs/
kubeintellect kind-setup vs make kind-cluster-create
Two ways to get a local Kind cluster — pick based on who you are:
kubeintellect kind-setup |
make kind-cluster-create |
|
|---|---|---|
| Requires repo clone | No | Yes |
| Cluster config | Single-node | 2-node, hot-reload mounts |
| Ingress | Basic nginx | Tuned for Kind dev |
| Cluster DNS auto-config | Yes — svc.cluster.local works from host |
No |
| Monitoring / Langfuse | Via make targets (after cloning) |
make monitoring-install / make langfuse-install |
| Who it's for | End users, ops teams | KubeIntellect developers |
Docs
| Topic | File |
|---|---|
| All install options | docs/quickstart.md |
| pip — no cluster (quick try) | docs/install-pip-no-cluster.md |
| pip — existing cluster | docs/install-pip-existing-cluster.md |
| pip — local Kind cluster | docs/install-pip-kind.md |
| Docker Compose | docs/deploy-docker-compose.md |
| Kind dev environment (repo) | docs/deploy-kind.md |
| VM / AKS / cloud (Helm) | docs/deploy-cloud.md |
| All config options | docs/configuration.md |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kubeintellect-2.0.0a1.tar.gz.
File metadata
- Download URL: kubeintellect-2.0.0a1.tar.gz
- Upload date:
- Size: 55.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4785138c15cb3295f3fb9d1d1dd3eae6678226afe4129ab9fdfbdbb9e3cfb125
|
|
| MD5 |
72fdcf3a4fafa7ddf8091354c4381478
|
|
| BLAKE2b-256 |
c9011d2393888822eb19c671257fa197d78d97b2040ceb959d7aa96489f62536
|
Provenance
The following attestation bundles were made for kubeintellect-2.0.0a1.tar.gz:
Publisher:
publish.yml on MSKazemi/KubeIntellectV2-dev
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kubeintellect-2.0.0a1.tar.gz -
Subject digest:
4785138c15cb3295f3fb9d1d1dd3eae6678226afe4129ab9fdfbdbb9e3cfb125 - Sigstore transparency entry: 1363597719
- Sigstore integration time:
-
Permalink:
MSKazemi/KubeIntellectV2-dev@841aa27df5c569dd18b2edad841a2a34500b7877 -
Branch / Tag:
refs/tags/v2.0.0a1 - Owner: https://github.com/MSKazemi
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@841aa27df5c569dd18b2edad841a2a34500b7877 -
Trigger Event:
push
-
Statement type:
File details
Details for the file kubeintellect-2.0.0a1-py3-none-any.whl.
File metadata
- Download URL: kubeintellect-2.0.0a1-py3-none-any.whl
- Upload date:
- Size: 67.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5b82f05b6ccfff82d462bc94307d330652cdb9d78ca0f62f9ee385de84e1425
|
|
| MD5 |
332d1ee3ed7bb373aaefedf81d332687
|
|
| BLAKE2b-256 |
87b5ebd995f6598ed61a07294ebc6d8a7189dbcfa887e50a12869962198ebfaf
|
Provenance
The following attestation bundles were made for kubeintellect-2.0.0a1-py3-none-any.whl:
Publisher:
publish.yml on MSKazemi/KubeIntellectV2-dev
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kubeintellect-2.0.0a1-py3-none-any.whl -
Subject digest:
f5b82f05b6ccfff82d462bc94307d330652cdb9d78ca0f62f9ee385de84e1425 - Sigstore transparency entry: 1363597834
- Sigstore integration time:
-
Permalink:
MSKazemi/KubeIntellectV2-dev@841aa27df5c569dd18b2edad841a2a34500b7877 -
Branch / Tag:
refs/tags/v2.0.0a1 - Owner: https://github.com/MSKazemi
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@841aa27df5c569dd18b2edad841a2a34500b7877 -
Trigger Event:
push
-
Statement type: