Resume a previous session by ID — loads history from the local store and replays the stored transcript on launch (user turns in green, assistant turns as markdown). For interactive picking use /sessions or /resume inside the REPL.
--list
—
List recent sessions and exit
--search QUERY
—
Full-text search across session history and exit
--user-id ID
auto
Persistent user ID (saved to ~/.kube-q/user-id)
--api-key KEY
—
Bearer token for auth-enabled servers (env: KUBE_Q_API_KEY)
--ca-cert PATH
—
Custom CA certificate bundle for TLS verification
--output {rich,plain}
rich
rich for markdown rendering; plain for pipe-friendly raw text
--model NAME
kubeintellect-v2
Model name sent in requests (env: KUBE_Q_MODEL)
--user-name NAME
You
Your display name in the prompt (env: KUBE_Q_USER_NAME)
--agent-name NAME
kube-q
Assistant name in saved conversations (env: KUBE_Q_AGENT_NAME)
--no-banner / --quiet
off
Suppress logo and header (useful for screen recordings)
# Connect to local backend (default)kq
# Connect to remote backendkq--urlhttps://kube-q.example.com
# With API keykq--urlhttps://kube-q.example.com--api-keymy-secret-key
# Custom display nameskq--user-nameAlice--agent-nameKubeBot
# Skip the startup health check (faster start when server is known-good)kq--no-health-check
# Direct OpenAI — bypass the kube-q server entirelykq--backendopenai--openai-api-keysk-...
# Azure OpenAI — supply key, endpoint, and deployment namekq--backendazure\--azure-openai-api-key"$AZ_KEY"\--azure-openai-endpointhttps://my-resource.openai.azure.com\--azure-openai-deploymentgpt-4o
The selected backend is fixed for the lifetime of the REPL — re-launch to switch. /state shows the active backend; the plain-HTTP warning is suppressed for openai/azure.
# Create a profile that bundles backend + keys + kubectl contextkqconfigprofilenewprod
# edit ~/.kube-q/profiles/prod.env, then:kq--profileprod
# Pick a kubectl context at launch or flip it live inside the REPLkq--contextprod-cluster
# …or inside the REPL:/contextstaging-cluster
/context# clear
# Print response and exitkq--query"show all pods in the default namespace"# Pipe-friendly plain textkq--query"list failing deployments"--outputplain
# Combine with jq or other toolskq--query"show pod names"--outputplain|grep"crash"
# List the 20 most recent sessionskq--list
# Resume a session by ID (shown in --list output)kq--session-idabc123
# Search across all past sessionskq--search"deployment rollback"kq--search"pods AND crash AND NOT staging"