AI Assistance
Kubeterm includes built-in AI chat designed around real Kubernetes workflows. The AI can read your cluster state directly and surface results as interactive views inside the conversation.
Supported AI Providers
Use your own API key for any of the supported providers, or an AI CLI already signed in on your computer. The AI settings let you configure multiple providers and switch between them:
- OpenAI (GPT models via
/v1/chat/completions) - Anthropic (Claude models, including Opus, Sonnet, and Haiku)
- Google Gemini
- DeepSeek
- Local CLI (Claude Code or Codex already signed in on your computer, no API key needed; desktop only)
API provider settings include a custom base URL and model name. Temperature and token limits depend on the provider and model. Use Refresh available models in provider settings to fetch the models available to your account. Provider credentials are stored in secure storage. On Apple devices, AI provider settings can be synced via iCloud.
Model selection and chat history
Use the model picker in the chat composer to choose a model for that conversation, including models available through your local Codex or Claude Code setup. Each chat has its own selection, and your default stays set in AI settings.
To save conversations on this device, turn on Save AI chat history under Settings → AI agent. Saving is off by default. Open Chat history in the chat toolbar to resume or delete a saved chat. Reopening a chat restores its model selection and cluster context.
Chat Capabilities
- Cluster-Aware Context: Select which cluster to work in from the chat panel. When you open AI chat from inside a resource view (logs, resource list, etc.), the cluster and resource context are passed automatically so you don't need to re-specify what you're looking at.
- Embedded Results: AI responses can include live resource lists, describe output, YAML, and logs directly inside the conversation — no need to switch screens.
- Tool Use / kubectl Operations: The AI can perform read operations against the cluster API (listing resources, describing objects, fetching logs) to answer your questions with actual cluster data. Tool calls and their results are rendered inline in the order they happen, so you can follow exactly what the assistant did.
- Codex cluster tools. When using a signed-in Codex CLI, Kubeterm runs cluster tool calls through its own cluster connection and applies the configured AI tool policy.
- Web Search: The assistant can search the web mid-conversation to pull in current documentation, changelogs, and error explanations alongside what it reads from your cluster.
- Cluster Events & Version: Ask what recently happened in a namespace, or which Kubernetes version a cluster runs, and get the answer from the live cluster rather than a guess.
- File Transfers: Ask the assistant to copy a file out of a pod for inspection, or push one in — the same transfer as
kubectl cp, driven from the conversation. - Explain & Health Check: Every resource page has an action that hands the resource to the assistant for an explanation or a health assessment, without composing a prompt yourself.
- Tool Policy: You control which kubectl operations the AI is allowed to perform. Restrict it to read-only or allow specific write actions.
- Streaming Responses: Responses stream in token by token. Models that support reasoning (thinking) show the reasoning steps before the final answer.
- Context Compression: Long conversations are automatically compressed to stay within model context limits while preserving the key details.
- Failure Analysis: Analyze a failing resource directly from the resource detail view — the AI receives the resource manifest and recent events to help diagnose the issue.