Installation¶
Requires Python 3.12+.
pip (recommended)¶
Installs the kq command globally. Use a virtual environment or pipx to keep it isolated:
Homebrew¶
From source¶
Install with dev dependencies:
Docker (web terminal)¶
The Docker image bundles the full kq CLI and a browser-based terminal (Next.js + xterm.js). No local Python or Node.js install needed.
docker pull ghcr.io/mskazemi/kube_q:latest
docker run -p 3000:3000 \
-e KUBE_Q_URL=https://kube-q.example.com \
-e KUBE_Q_API_KEY=your-key \
ghcr.io/mskazemi/kube_q:latest
Open http://localhost:3000 to get a full kq terminal in the browser.
See Web UI for the complete Docker setup guide.
Verify¶
Dependencies¶
kube-q installs only lightweight, pure-Python dependencies:
| Package | Purpose |
|---|---|
httpx |
HTTP client (streaming SSE, TLS, proxy support) |
rich |
Terminal rendering (markdown, syntax highlighting, tables) |
prompt_toolkit |
REPL input (Tab completion, history, multi-line) |
pygments |
Syntax highlighting for code blocks |
pydantic |
Event model validation |