Quick Start¶
Get kube-q running and talk to your first cluster in under 5 minutes.
Prerequisites¶
Before you begin, make sure you have:
- Python 3.12 or later
- A running kube-q backend (the server your cluster is connected to)
- The backend URL and API key (if auth is enabled)
Don't have a backend yet?
kube-q is a client. It connects to a kube-q server that has access to your Kubernetes cluster. If you're setting up your own server, see Deployment & Hosting.
Step 1 — Install¶
pipx installs kq in an isolated virtualenv and puts it on your PATH — no pollution of your system Python. Works on Linux, macOS, and Windows.
pip install pipx # skip if you already have pipx
pipx ensurepath # adds pipx and installed tools to PATH (all platforms)
Then restart your shell (or open a new terminal), and:
macOS alternative
On macOS, prefer brew install pipx && pipx ensurepath — Homebrew keeps pipx itself updated.
You should see something like:
Step 2 — Configure your backend URL¶
Save your connection settings once so you never need to type them on every run.
Option A — from inside the REPL (easiest, settings take effect immediately):
Option B — before launching (edit the file directly):
mkdir -p ~/.kube-q
cat > ~/.kube-q/.env << 'EOF'
KUBE_Q_URL=https://kube-q.example.com
KUBE_Q_API_KEY=your-api-key-here
EOF
Multiple clusters?
Use per-directory .env files — see Configuration → Multiple clusters.
Step 3 — Start the REPL¶
On first run, kube-q checks your backend is reachable, then drops you into the interactive REPL:
_ _
| | ___ _| |__ ___ __ _
| |/ / | | | '_ \ / _ \ / _` |
| <| |_| | |_) | __/ | (_| |
|_|\_\\__,_|_.__/ \___| \__, |
|___/
kube-q v1.4.0 | session d4e91c | Connected to kube-q.example.com
You>
Step 4 — Ask your first question¶
Just type naturally. No special syntax.
kube-q streams the response in real time as tokens arrive from the backend.
Step 5 — Try the key commands¶
Set a namespace context¶
Instead of mentioning the namespace in every message, set it once:
Now all your questions are scoped to production automatically.
Attach a file¶
Reference a YAML manifest or log file by prefixing with @:
Search past sessions¶
Or from the terminal:
See token usage¶
Save the conversation¶
Saves a Markdown file of the full session to your current directory.
Step 6 — Exit¶
Or press Ctrl+D.
What's next?¶
-
Configuration
.envfiles, environment variables, multi-cluster setups. -
All slash commands
Complete reference for every
/commandavailable in the REPL. -
Human-in-the-Loop
How kube-q handles destructive actions and asks for approval.
-
Browser Terminal
Run kube-q in any browser — no local install needed.